Class OfficeObjectNodeImpl
- java.lang.Object
- 
- net.officefloor.compile.impl.structure.OfficeObjectNodeImpl
 
- 
- All Implemented Interfaces:
- LinkObjectNode,- Node,- OfficeObjectNode,- AdministerableManagedObject,- DependentManagedObject,- GovernerableManagedObject,- OfficeDependencyObjectNode,- OfficeObject,- OfficeFloorDependencyRequireNode
 
 public class OfficeObjectNodeImpl extends java.lang.Object implements OfficeObjectNode OfficeObjectNodeimplementation.- Author:
- Daniel Sagenschneider
 
- 
- 
Field Summary- 
Fields inherited from interface net.officefloor.compile.internal.structure.OfficeObjectNodeTYPE
 
- 
 - 
Constructor SummaryConstructors Constructor Description OfficeObjectNodeImpl(java.lang.String objectName, OfficeNode office, NodeContext context)Allow adding aOfficeObjectvia theOfficeArchitect.
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddAdministrator(AdministrationNode administrator)Adds anAdministrationNodefor thisOfficeManagedObjectType.voidaddGovernance(GovernanceNode governance)voidaddPreLoadAdministration(OfficeAdministration administration)Adds anOfficeAdministrationto be done before attempting load thisManagedObject.java.lang.StringgetAdministerableManagedObjectName()Obtains the name of thisAdministerableManagedObject.Node[]getChildNodes()Obtains the childNodeinstances.java.lang.StringgetDependentManagedObjectName()Obtains the name of thisDependentManagedObject.GovernanceNode[]getGovernances()Obtains theGovernanceNodeinstances to provideGovernanceoverBoundManagedObjectNodelinked to thisOfficeObjectNode.java.lang.StringgetGovernerableManagedObjectName()Obtains the name of thisGovernerableManagedObject.LinkObjectNodegetLinkedObjectNode()Obtains theLinkObjectNodelinked to thisLinkObjectNode.java.lang.StringgetLocation()Obtains the location of theNode.java.lang.StringgetNodeName()Obtains the name of theNode.java.lang.StringgetNodeType()Obtains theNodetype.java.lang.StringgetOfficeObjectName()Obtains the name that theOfficeSourcerefers to thisObject.java.lang.StringgetOfficeObjectType()Obtains the type of theOfficeObject.NodegetParentNode()AdministrationNode[]getPreLoadAdministrations()Obtains theAdministrationNodeinstances to provide pre-loadAdministrationoverBoundManagedObjectNodelinked to thisOfficeObjectNode.java.lang.StringgetTypeQualifier()Obtains the type qualifier for theOfficeObject.voidinitialise(java.lang.String objectType)Initialises thisOfficeManagedObjectType.booleanisInitialised()Indicates if theNodehas been initialised.booleanlinkObjectNode(LinkObjectNode node)Links the inputLinkObjectNodeto thisLinkObjectNode.OfficeManagedObjectTypeloadOfficeManagedObjectType(CompileContext compileContext)Loads theOfficeManagedObjectTypefor thisOfficeObjectNode.voidsetTypeQualifier(java.lang.String qualifier)Specifies the type qualifier.- 
Methods inherited from class java.lang.Objectclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 - 
Methods inherited from interface net.officefloor.compile.internal.structure.NodegetQualifiedName, getQualifiedName
 
- 
 
- 
- 
- 
Constructor Detail- 
OfficeObjectNodeImplpublic OfficeObjectNodeImpl(java.lang.String objectName, OfficeNode office, NodeContext context)Allow adding aOfficeObjectvia theOfficeArchitect.- Parameters:
- objectName- Name of the- OfficeObject.
- office- Parent- OfficeNode.
- context-- NodeContext.
 
 
- 
 - 
Method Detail- 
getNodeNamepublic java.lang.String getNodeName() Description copied from interface:NodeObtains the name of theNode.- Specified by:
- getNodeNamein interface- Node
- Returns:
- Name of the Node.
 
 - 
getNodeTypepublic java.lang.String getNodeType() Description copied from interface:NodeObtains theNodetype.- Specified by:
- getNodeTypein interface- Node
- Returns:
- Nodetype.
 
 - 
getLocationpublic java.lang.String getLocation() Description copied from interface:NodeObtains the location of theNode.- Specified by:
- getLocationin interface- Node
- Returns:
- Location of the Node. May benullifNodedoes not support a location.
 
 - 
getParentNodepublic Node getParentNode() Description copied from interface:Node- Specified by:
- getParentNodein interface- Node
- Returns:
- Nodecontaining this- Node.
 
 - 
getChildNodespublic Node[] getChildNodes() Description copied from interface:NodeObtains the childNodeinstances.- Specified by:
- getChildNodesin interface- Node
- Returns:
- Child Nodeinstances.
 
 - 
isInitialisedpublic 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 interface- Node
- Returns:
- trueif initialised.
 
 - 
initialisepublic void initialise(java.lang.String objectType) Description copied from interface:OfficeObjectNodeInitialises thisOfficeManagedObjectType.- Specified by:
- initialisein interface- OfficeObjectNode
- Parameters:
- objectType- Object type.
 
 - 
addAdministratorpublic void addAdministrator(AdministrationNode administrator) Description copied from interface:OfficeObjectNodeAdds an AdministrationNodefor thisOfficeManagedObjectType.This allows the OfficeManagedObjectTypeto report the extension types required to be supported by theOfficeFloorManagedObjectfor theOfficeObject.- Specified by:
- addAdministratorin interface- OfficeObjectNode
- Parameters:
- administrator-- AdministrationNode.
 
 - 
addGovernancepublic void addGovernance(GovernanceNode governance) Description copied from interface:OfficeObjectNodeAdds a GovernanceNodeprovidingGovernancefor thisOfficeObject.This also allows the OfficeManagedObjectTypeto report the extension interfaces required to be supported by theOfficeFloorManagedObjectfor theOfficeObject.- Specified by:
- addGovernancein interface- OfficeObjectNode
- Parameters:
- governance-- GovernanceNode.
 
 - 
getGovernancespublic GovernanceNode[] getGovernances() Description copied from interface:OfficeObjectNodeObtains theGovernanceNodeinstances to provideGovernanceoverBoundManagedObjectNodelinked to thisOfficeObjectNode.- Specified by:
- getGovernancesin interface- OfficeObjectNode
- Returns:
- GovernanceNodeinstances.
 
 - 
getPreLoadAdministrationspublic AdministrationNode[] getPreLoadAdministrations() Description copied from interface:OfficeObjectNodeObtains theAdministrationNodeinstances to provide pre-loadAdministrationoverBoundManagedObjectNodelinked to thisOfficeObjectNode.- Specified by:
- getPreLoadAdministrationsin interface- OfficeObjectNode
- Returns:
- AdministrationNodeinstances.
 
 - 
getTypeQualifierpublic java.lang.String getTypeQualifier() Description copied from interface:OfficeObjectNodeObtains the type qualifier for theOfficeObject.- Specified by:
- getTypeQualifierin interface- OfficeObjectNode
- Returns:
- Type qualifier for the OfficeObject.
 
 - 
getOfficeObjectTypepublic java.lang.String getOfficeObjectType() Description copied from interface:OfficeObjectNodeObtains the type of theOfficeObject.- Specified by:
- getOfficeObjectTypein interface- OfficeObjectNode
- Returns:
- Type of the OfficeObject.
 
 - 
loadOfficeManagedObjectTypepublic OfficeManagedObjectType loadOfficeManagedObjectType(CompileContext compileContext) Description copied from interface:OfficeObjectNodeLoads theOfficeManagedObjectTypefor thisOfficeObjectNode.- Specified by:
- loadOfficeManagedObjectTypein interface- OfficeObjectNode
- Parameters:
- compileContext-- CompileContext.
- Returns:
- OfficeManagedObjectTypeor- nullwith issues reported to the- CompilerIssues.
 
 - 
getOfficeObjectNamepublic java.lang.String getOfficeObjectName() Description copied from interface:OfficeObjectObtains the name that theOfficeSourcerefers to thisObject.- Specified by:
- getOfficeObjectNamein interface- OfficeObject
- Returns:
- Name that the OfficeSourcerefers to thisObject.
 
 - 
setTypeQualifierpublic void setTypeQualifier(java.lang.String qualifier) Description copied from interface:OfficeObjectSpecifies the type qualifier.- Specified by:
- setTypeQualifierin interface- OfficeObject
- Parameters:
- qualifier- Type qualifier.
 
 - 
addPreLoadAdministrationpublic void addPreLoadAdministration(OfficeAdministration administration) Description copied from interface:OfficeObjectAdds an OfficeAdministrationto be done before attempting load thisManagedObject.The order that the OfficeAdministrationinstances are added is the order they will be done.- Specified by:
- addPreLoadAdministrationin interface- OfficeObject
- Parameters:
- administration-- OfficeAdministrationto be done before attempting load this- ManagedObject.
 
 - 
getDependentManagedObjectNamepublic java.lang.String getDependentManagedObjectName() Description copied from interface:DependentManagedObjectObtains the name of thisDependentManagedObject.- Specified by:
- getDependentManagedObjectNamein interface- DependentManagedObject
- Returns:
- Name of this DependentManagedObject.
 
 - 
getAdministerableManagedObjectNamepublic java.lang.String getAdministerableManagedObjectName() Description copied from interface:AdministerableManagedObjectObtains the name of thisAdministerableManagedObject.- Specified by:
- getAdministerableManagedObjectNamein interface- AdministerableManagedObject
- Returns:
- Name of this AdministerableManagedObject.
 
 - 
getGovernerableManagedObjectNamepublic java.lang.String getGovernerableManagedObjectName() Description copied from interface:GovernerableManagedObjectObtains the name of thisGovernerableManagedObject.- Specified by:
- getGovernerableManagedObjectNamein interface- GovernerableManagedObject
- Returns:
- Name of this GovernerableManagedObject.
 
 - 
linkObjectNodepublic boolean linkObjectNode(LinkObjectNode node) Description copied from interface:LinkObjectNodeLinks the inputLinkObjectNodeto thisLinkObjectNode.- Specified by:
- linkObjectNodein interface- LinkObjectNode
- Parameters:
- node-- LinkObjectNodeto link to this- LinkObjectNode.
- Returns:
- trueif linked.
 
 - 
getLinkedObjectNodepublic LinkObjectNode getLinkedObjectNode() Description copied from interface:LinkObjectNodeObtains theLinkObjectNodelinked to thisLinkObjectNode.- Specified by:
- getLinkedObjectNodein interface- LinkObjectNode
- Returns:
- LinkObjectNodelinked to this- LinkObjectNode.
 
 
- 
 
-