Class OfficeObjectNodeImpl
java.lang.Object
net.officefloor.compile.impl.structure.OfficeObjectNodeImpl
- All Implemented Interfaces:
LinkObjectNode,Node,OfficeObjectNode,AdministerableManagedObject,DependentManagedObject,GovernerableManagedObject,OfficeDependencyObjectNode,OfficeObject,OfficeFloorDependencyRequireNode
OfficeObjectNode implementation.- Author:
- Daniel Sagenschneider
-
Field Summary
Fields inherited from interface net.officefloor.compile.internal.structure.OfficeObjectNode
TYPE -
Constructor Summary
ConstructorsConstructorDescriptionOfficeObjectNodeImpl(String objectName, OfficeNode office, NodeContext context) Allow adding aOfficeObjectvia theOfficeArchitect. -
Method Summary
Modifier and TypeMethodDescriptionvoidaddAdministrator(AdministrationNode administrator) Adds anAdministrationNodefor thisOfficeManagedObjectType.voidaddGovernance(GovernanceNode governance) voidaddPreLoadAdministration(OfficeAdministration administration) Adds anOfficeAdministrationto be done before attempting load thisManagedObject.Obtains the name of thisAdministerableManagedObject.Node[]Obtains the childNodeinstances.Obtains the name of thisDependentManagedObject.Obtains theGovernanceNodeinstances to provideGovernanceoverBoundManagedObjectNodelinked to thisOfficeObjectNode.Obtains the name of thisGovernerableManagedObject.Obtains theLinkObjectNodelinked to thisLinkObjectNode.Obtains the location of theNode.Obtains the name of theNode.Obtains theNodetype.Obtains the name that theOfficeSourcerefers to thisObject.Obtains the type of theOfficeObject.Obtains theAdministrationNodeinstances to provide pre-loadAdministrationoverBoundManagedObjectNodelinked to thisOfficeObjectNode.Obtains the type qualifier for theOfficeObject.voidinitialise(String objectType) Initialises thisOfficeManagedObjectType.booleanIndicates if theNodehas been initialised.booleanlinkObjectNode(LinkObjectNode node) Links the inputLinkObjectNodeto thisLinkObjectNode.loadOfficeManagedObjectType(CompileContext compileContext) Loads theOfficeManagedObjectTypefor thisOfficeObjectNode.voidsetTypeQualifier(String qualifier) Specifies the type qualifier.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface net.officefloor.compile.internal.structure.Node
getQualifiedName, getQualifiedName
-
Constructor Details
-
OfficeObjectNodeImpl
Allow adding aOfficeObjectvia theOfficeArchitect.- Parameters:
objectName- Name of theOfficeObject.office- ParentOfficeNode.context-NodeContext.
-
-
Method Details
-
getNodeName
Description copied from interface:NodeObtains the name of theNode.- Specified by:
getNodeNamein interfaceNode- Returns:
- Name of the
Node.
-
getNodeType
Description copied from interface:NodeObtains theNodetype.- Specified by:
getNodeTypein interfaceNode- Returns:
Nodetype.
-
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
Description copied from interface:Node- Specified by:
getParentNodein interfaceNode- Returns:
Nodecontaining thisNode.
-
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
Description copied from interface:OfficeObjectNodeInitialises thisOfficeManagedObjectType.- Specified by:
initialisein interfaceOfficeObjectNode- Parameters:
objectType- Object type.
-
addAdministrator
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 interfaceOfficeObjectNode- Parameters:
administrator-AdministrationNode.
-
addGovernance
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 interfaceOfficeObjectNode- Parameters:
governance-GovernanceNode.
-
getGovernances
Description copied from interface:OfficeObjectNodeObtains theGovernanceNodeinstances to provideGovernanceoverBoundManagedObjectNodelinked to thisOfficeObjectNode.- Specified by:
getGovernancesin interfaceOfficeObjectNode- Returns:
GovernanceNodeinstances.
-
getPreLoadAdministrations
Description copied from interface:OfficeObjectNodeObtains theAdministrationNodeinstances to provide pre-loadAdministrationoverBoundManagedObjectNodelinked to thisOfficeObjectNode.- Specified by:
getPreLoadAdministrationsin interfaceOfficeObjectNode- Returns:
AdministrationNodeinstances.
-
getTypeQualifier
Description copied from interface:OfficeObjectNodeObtains the type qualifier for theOfficeObject.- Specified by:
getTypeQualifierin interfaceOfficeObjectNode- Returns:
- Type qualifier for the
OfficeObject.
-
getOfficeObjectType
Description copied from interface:OfficeObjectNodeObtains the type of theOfficeObject.- Specified by:
getOfficeObjectTypein interfaceOfficeObjectNode- Returns:
- Type of the
OfficeObject.
-
loadOfficeManagedObjectType
Description copied from interface:OfficeObjectNodeLoads theOfficeManagedObjectTypefor thisOfficeObjectNode.- Specified by:
loadOfficeManagedObjectTypein interfaceOfficeObjectNode- Parameters:
compileContext-CompileContext.- Returns:
OfficeManagedObjectTypeornullwith issues reported to theCompilerIssues.
-
getOfficeObjectName
Description copied from interface:OfficeObjectObtains the name that theOfficeSourcerefers to thisObject.- Specified by:
getOfficeObjectNamein interfaceOfficeObject- Returns:
- Name that the
OfficeSourcerefers to thisObject.
-
setTypeQualifier
Description copied from interface:OfficeObjectSpecifies the type qualifier.- Specified by:
setTypeQualifierin interfaceOfficeObject- Parameters:
qualifier- Type qualifier.
-
addPreLoadAdministration
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 interfaceOfficeObject- Parameters:
administration-OfficeAdministrationto be done before attempting load thisManagedObject.
-
getDependentManagedObjectName
Description copied from interface:DependentManagedObjectObtains the name of thisDependentManagedObject.- Specified by:
getDependentManagedObjectNamein interfaceDependentManagedObject- Returns:
- Name of this
DependentManagedObject.
-
getAdministerableManagedObjectName
Description copied from interface:AdministerableManagedObjectObtains the name of thisAdministerableManagedObject.- Specified by:
getAdministerableManagedObjectNamein interfaceAdministerableManagedObject- Returns:
- Name of this
AdministerableManagedObject.
-
getGovernerableManagedObjectName
Description copied from interface:GovernerableManagedObjectObtains the name of thisGovernerableManagedObject.- Specified by:
getGovernerableManagedObjectNamein interfaceGovernerableManagedObject- Returns:
- Name of this
GovernerableManagedObject.
-
linkObjectNode
Description copied from interface:LinkObjectNodeLinks the inputLinkObjectNodeto thisLinkObjectNode.- Specified by:
linkObjectNodein interfaceLinkObjectNode- Parameters:
node-LinkObjectNodeto link to thisLinkObjectNode.- Returns:
trueif linked.
-
getLinkedObjectNode
Description copied from interface:LinkObjectNodeObtains theLinkObjectNodelinked to thisLinkObjectNode.- Specified by:
getLinkedObjectNodein interfaceLinkObjectNode- Returns:
LinkObjectNodelinked to thisLinkObjectNode.
-