Class InputManagedObjectNodeImpl
- java.lang.Object
-
- net.officefloor.compile.impl.structure.InputManagedObjectNodeImpl
-
- All Implemented Interfaces:
BoundManagedObjectNode,InputManagedObjectNode,LinkObjectNode,Node,OfficeFloorDependencyObjectNode,OfficeFloorInputManagedObject
public class InputManagedObjectNodeImpl extends java.lang.Object implements InputManagedObjectNode
InputManagedObjectNodeimplementation.- Author:
- Daniel Sagenschneider
-
-
Field Summary
-
Fields inherited from interface net.officefloor.compile.internal.structure.InputManagedObjectNode
TYPE
-
-
Constructor Summary
Constructors Constructor Description InputManagedObjectNodeImpl(java.lang.String inputManagedObjectName, java.lang.String inputObjectType, OfficeFloorNode officeFloor, NodeContext context)Initiate.
-
Method Summary
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface net.officefloor.compile.internal.structure.Node
getQualifiedName, getQualifiedName
-
-
-
-
Constructor Detail
-
InputManagedObjectNodeImpl
public InputManagedObjectNodeImpl(java.lang.String inputManagedObjectName, java.lang.String inputObjectType, OfficeFloorNode officeFloor, NodeContext context)Initiate.- Parameters:
inputManagedObjectName- Name of thisInputManagedObjectNode.inputObjectType- Input object type.officeFloor-OfficeFloorNode.context-NodeContext.
-
-
Method Detail
-
getNodeName
public java.lang.String getNodeName()
Description copied from interface:NodeObtains the name of theNode.- Specified by:
getNodeNamein interfaceNode- Returns:
- Name of the
Node.
-
getNodeType
public java.lang.String getNodeType()
Description copied from interface:NodeObtains theNodetype.- Specified by:
getNodeTypein interfaceNode- Returns:
Nodetype.
-
getLocation
public java.lang.String getLocation()
Description copied from interface:NodeObtains the location of theNode.- Specified by:
getLocationin interfaceNode- Returns:
- Location of the
Node. May benullifNodedoes not support a location.
-
getParentNode
public Node getParentNode()
Description copied from interface:Node- Specified by:
getParentNodein interfaceNode- Returns:
Nodecontaining thisNode.
-
getChildNodes
public Node[] getChildNodes()
Description copied from interface:NodeObtains the childNodeinstances.- Specified by:
getChildNodesin interfaceNode- Returns:
- Child
Nodeinstances.
-
isInitialised
public boolean isInitialised()
Description copied from interface:NodeIndicates if theNodehas been initialised.Nodeinstances should only be initialised once. Initialising theNodetwice is an issue.- Specified by:
isInitialisedin interfaceNode- Returns:
trueif initialised.
-
initialise
public void initialise()
Description copied from interface:InputManagedObjectNodeInitialises theInputManagedObjectNode.- Specified by:
initialisein interfaceInputManagedObjectNode
-
getInputObjectType
public java.lang.String getInputObjectType()
Description copied from interface:InputManagedObjectNodeObtains the input object type.- Specified by:
getInputObjectTypein interfaceInputManagedObjectNode- Returns:
- Input object type.
-
getBoundManagedObjectSourceNode
public ManagedObjectSourceNode getBoundManagedObjectSourceNode()
Description copied from interface:InputManagedObjectNodeObtains the boundManagedObjectSourceNodefor thisInputManagedObjectNode.- Specified by:
getBoundManagedObjectSourceNodein interfaceInputManagedObjectNode- Returns:
- Bound
ManagedObjectSourceNodefor thisInputManagedObjectNode.
-
getBoundManagedObjectName
public java.lang.String getBoundManagedObjectName()
Description copied from interface:BoundManagedObjectNodeObtains the name under which thisManagedObjectis made available to theOffice.- Specified by:
getBoundManagedObjectNamein interfaceBoundManagedObjectNode- Returns:
- Name under which this
ManagedObjectis made available to theOffice.
-
addGovernance
public void addGovernance(GovernanceNode governance, OfficeNode office)
Description copied from interface:BoundManagedObjectNodeAdds theGovernanceNodeto provideGovernanceover thisManagedObjectNodewhen used within theOfficeof theOfficeNode.- Specified by:
addGovernancein interfaceBoundManagedObjectNode- Parameters:
governance-GovernanceNode.office-OfficeNodefor which theGovernanceis applicable.
-
addPreLoadAdministration
public void addPreLoadAdministration(AdministrationNode preLoadAdministration, OfficeNode office)
Description copied from interface:BoundManagedObjectNodeAdds theAdministrationNodeto provide pre-loadAdministrationfor thisManagedObjectNodewhen used within theOfficeof theOfficeNode.- Specified by:
addPreLoadAdministrationin interfaceBoundManagedObjectNode- Parameters:
preLoadAdministration- Pre-loadAdministrationNode.office-OfficeNodefor which the pre-loadAdministrationis applicable.
-
getManagedObjectSourceNode
public ManagedObjectSourceNode getManagedObjectSourceNode()
Description copied from interface:BoundManagedObjectNodeObtains theManagedObjectSourceNodefor thisBoundManagedObjectNode.- Specified by:
getManagedObjectSourceNodein interfaceBoundManagedObjectNode- Returns:
ManagedObjectSourceNodefor thisBoundManagedObjectNode.
-
buildOfficeManagedObject
public void buildOfficeManagedObject(OfficeNode office, OfficeBuilder officeBuilder, OfficeBindings officeBindings, CompileContext compileContext)
Description copied from interface:BoundManagedObjectNodeBuilds theManagedObjectinto theOffice.- Specified by:
buildOfficeManagedObjectin interfaceBoundManagedObjectNode- Parameters:
office-OfficeNodeof theOfficethat thisManagedObjectis to build itself into.officeBuilder-OfficeBuilderfor theOffice.officeBindings-OfficeBindings.compileContext-CompileContext.
-
buildSupplierThreadLocal
public void buildSupplierThreadLocal(OptionalThreadLocalReceiver optionalThreadLocalReceiver)
Description copied from interface:BoundManagedObjectNodeBuilds theSupplierThreadLocalfrom the boundManagedObject.- Specified by:
buildSupplierThreadLocalin interfaceBoundManagedObjectNode- Parameters:
optionalThreadLocalReceiver-OptionalThreadLocalReceiverto receive theOptionalThreadLocal.
-
getGovernances
public GovernanceNode[] getGovernances(OfficeNode managingOffice)
Description copied from interface:InputManagedObjectNode- Specified by:
getGovernancesin interfaceInputManagedObjectNode- Parameters:
managingOffice-OfficeNodemanaging theInputManagedObjectNode, which ensures thatGovernancedoes not extend beyond the particularOfficeNode.- Returns:
GovernanceNodeinstances providingGovernanceover thisInputManagedObjectNode.
-
getPreLoadAdministrations
public AdministrationNode[] getPreLoadAdministrations(OfficeNode managingOffice)
Description copied from interface:InputManagedObjectNodeObtains the pre-loadAdministrationNodeinstances providingAdministrationover thisInputManagedObjectNode.- Specified by:
getPreLoadAdministrationsin interfaceInputManagedObjectNode- Parameters:
managingOffice-OfficeNodemanaging theInputManagedObjectNode, which ensures thatAdministrationdoes not extend beyond the particularOfficeNode.- Returns:
AdministrationNodeinstances providing pre-loadAdministrationover thisInputManagedObjectNode.
-
getTypeQualifications
public TypeQualification[] getTypeQualifications(CompileContext compileContext)
Description copied from interface:InputManagedObjectNodeObtains theTypeQualificationinstances for theInputManagedObjectNode.- Specified by:
getTypeQualificationsin interfaceInputManagedObjectNode- Parameters:
compileContext-CompileContext.- Returns:
TypeQualificationinstances for theInputManagedObjectNode.
-
getOfficeFloorInputManagedObjectName
public java.lang.String getOfficeFloorInputManagedObjectName()
Description copied from interface:OfficeFloorInputManagedObjectObtains the name of thisOfficeFloorInputManagedObject.- Specified by:
getOfficeFloorInputManagedObjectNamein interfaceOfficeFloorInputManagedObject- Returns:
- Name of this
OfficeFloorInputManagedObject.
-
addTypeQualification
public void addTypeQualification(java.lang.String qualifier, java.lang.String type)Description copied from interface:OfficeFloorInputManagedObjectAdds an
TypeQualificationfor thisOfficeFloorInputManagedObject.This enables distinguishing
OfficeFloorInputManagedObjectinstances to enable, for example, dynamicTeamassignment.- Specified by:
addTypeQualificationin interfaceOfficeFloorInputManagedObject- Parameters:
qualifier- Qualifier. May benullif no qualification.type- Type (typically the fully qualified type).
-
setBoundOfficeFloorManagedObjectSource
public void setBoundOfficeFloorManagedObjectSource(OfficeFloorManagedObjectSource managedObjectSource)
Description copied from interface:OfficeFloorInputManagedObjectSpecifies the boundOfficeFloorManagedObjectSourcefor thisOfficeFloorInputManagedObject.- Specified by:
setBoundOfficeFloorManagedObjectSourcein interfaceOfficeFloorInputManagedObject- Parameters:
managedObjectSource-OfficeFloorManagedObjectSourceto be bound should this not be input but required.
-
linkObjectNode
public boolean linkObjectNode(LinkObjectNode node)
Description copied from interface:LinkObjectNodeLinks the inputLinkObjectNodeto thisLinkObjectNode.- Specified by:
linkObjectNodein interfaceLinkObjectNode- Parameters:
node-LinkObjectNodeto link to thisLinkObjectNode.- Returns:
trueif linked.
-
getLinkedObjectNode
public LinkObjectNode getLinkedObjectNode()
Description copied from interface:LinkObjectNodeObtains theLinkObjectNodelinked to thisLinkObjectNode.- Specified by:
getLinkedObjectNodein interfaceLinkObjectNode- Returns:
LinkObjectNodelinked to thisLinkObjectNode.
-
-