Class ExecutiveNodeImpl
java.lang.Object
net.officefloor.compile.impl.structure.ExecutiveNodeImpl
- All Implemented Interfaces:
ExecutiveNode,Node,PropertyConfigurable,OfficeFloorExecutive
ExecutiveNode implementation.- Author:
- Daniel Sagenschneider
-
Field Summary
Fields inherited from interface net.officefloor.compile.internal.structure.ExecutiveNode
TYPE -
Constructor Summary
ConstructorsConstructorDescriptionExecutiveNodeImpl(OfficeFloorNode officeFloor, NodeContext context) Initiate. -
Method Summary
Modifier and TypeMethodDescriptionvoidaddProperty(String name, String value) Adds aPropertyto configure the item.voidbuildExecutive(OfficeFloorBuilder builder, CompileContext compileContext) Builds theExecutivefor thisExecutiveNode.Node[]Obtains the childNodeinstances.Obtains the location of theNode.Obtains the name of theNode.Obtains theNodetype.getOfficeFloorExecutionStrategy(String executionStrategyName) Obtains theOfficeFloorExecutionStrategyforExecutionStrategyType.Obtains the name of thisOfficeFloorExecutive.voidinitialise(String executiveSourceClassName, ExecutiveSource executiveSource) Initialises theExecutiveNode.booleanIndicates if theNodehas been initialised.Loads theExecutiveTypefor theExecutiveSource.booleansourceExecutive(CompileContext compileContext) Sources theExecutive.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
-
ExecutiveNodeImpl
Initiate.- Parameters:
officeFloor-OfficeFloorNodecontaining thisExecutiveNode.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.
-
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.
-
getChildNodes
Description copied from interface:NodeObtains the childNodeinstances.- Specified by:
getChildNodesin interfaceNode- Returns:
- Child
Nodeinstances.
-
initialise
Description copied from interface:ExecutiveNodeInitialises theExecutiveNode.- Specified by:
initialisein interfaceExecutiveNode- Parameters:
executiveSourceClassName- Class name of theExecutiveSource.executiveSource- Optional instantiatedExecutiveSource. May benull.
-
loadExecutiveType
Description copied from interface:ExecutiveNodeLoads theExecutiveTypefor theExecutiveSource.- Specified by:
loadExecutiveTypein interfaceExecutiveNode- Returns:
ExecutiveTypeornullwith issues reported to theCompilerIssues.
-
sourceExecutive
Description copied from interface:ExecutiveNodeSources theExecutive.- Specified by:
sourceExecutivein interfaceExecutiveNode- Parameters:
compileContext-CompileContext.- Returns:
trueif successfully sourced. Otherwise,falsewith issues reported to theCompilerIssues.
-
buildExecutive
Description copied from interface:ExecutiveNodeBuilds theExecutivefor thisExecutiveNode.- Specified by:
buildExecutivein interfaceExecutiveNode- Parameters:
builder-OfficeFloorBuilder.compileContext-CompileContext.
-
getOfficeFloorExecutiveName
Description copied from interface:OfficeFloorExecutiveObtains the name of thisOfficeFloorExecutive.- Specified by:
getOfficeFloorExecutiveNamein interfaceOfficeFloorExecutive- Returns:
- Name of this
OfficeFloorExecutive.
-
addProperty
Description copied from interface:PropertyConfigurableAdds aPropertyto configure the item.- Specified by:
addPropertyin interfacePropertyConfigurable- Parameters:
name- Name ofProperty.value- Value ofProperty.
-
getOfficeFloorExecutionStrategy
Description copied from interface:OfficeFloorExecutiveObtains theOfficeFloorExecutionStrategyforExecutionStrategyType.- Specified by:
getOfficeFloorExecutionStrategyin interfaceOfficeFloorExecutive- Parameters:
executionStrategyName- Name ofExecutionStrategyType.- Returns:
OfficeFloorExecutionStrategy.
-