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