Class ManagedObjectExecutionStrategyNodeImpl
- java.lang.Object
-
- net.officefloor.compile.impl.structure.ManagedObjectExecutionStrategyNodeImpl
-
- All Implemented Interfaces:
LinkExecutionStrategyNode
,ManagedObjectExecutionStrategyNode
,Node
,ManagedObjectExecutionStrategy
,AugmentedManagedObjectExecutionStrategy
,OfficeFloorManagedObjectExecutionStrategy
public class ManagedObjectExecutionStrategyNodeImpl extends java.lang.Object implements ManagedObjectExecutionStrategyNode
ManagedObjectExecutionStrategyNode
implementation.- Author:
- Daniel Sagenschneider
-
-
Field Summary
-
Fields inherited from interface net.officefloor.compile.internal.structure.ManagedObjectExecutionStrategyNode
TYPE
-
-
Constructor Summary
Constructors Constructor Description ManagedObjectExecutionStrategyNodeImpl(java.lang.String executionStrategyName, ManagedObjectSourceNode managedObjectSourceNode, NodeContext context)
Instantiate.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Node[]
getChildNodes()
Obtains the childNode
instances.LinkExecutionStrategyNode
getLinkedExecutionStrategyNode()
Obtains theLinkExecutionStrategyNode
linked to thisLinkExecutionStrategyNode
.java.lang.String
getLocation()
Obtains the location of theNode
.java.lang.String
getManagedObjectExecutionStrategyName()
Obtains the name of thisManagedObjectExecutionStrategy
.java.lang.String
getNodeName()
Obtains the name of theNode
.java.lang.String
getNodeType()
Obtains theNode
type.Node
getParentNode()
void
initialise()
Initialises theManagedObjectExecutionStrategyNode
.boolean
isInitialised()
Indicates if theNode
has been initialised.boolean
isLinked()
Indicates if theManagedObjectExecutionStrategy
is already linked.boolean
linkExecutionStrategyNode(LinkExecutionStrategyNode node)
Links the inputLinkExecutionStrategyNode
to thisLinkExecutionStrategyNode
.-
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
-
ManagedObjectExecutionStrategyNodeImpl
public ManagedObjectExecutionStrategyNodeImpl(java.lang.String executionStrategyName, ManagedObjectSourceNode managedObjectSourceNode, NodeContext context)
Instantiate.- Parameters:
executionStrategyName
- Name of thisOfficeFloorManagedObjectExecutionStrategy
.managedObjectSourceNode
-ManagedObjectSourceNode
containing thisManagedObjectExecutionStrategyNode
.context
-NodeContext
.
-
-
Method Detail
-
getNodeName
public java.lang.String getNodeName()
Description copied from interface:Node
Obtains the name of theNode
.- Specified by:
getNodeName
in interfaceNode
- Returns:
- Name of the
Node
.
-
getNodeType
public java.lang.String getNodeType()
Description copied from interface:Node
Obtains theNode
type.- Specified by:
getNodeType
in interfaceNode
- Returns:
Node
type.
-
getLocation
public java.lang.String getLocation()
Description copied from interface:Node
Obtains the location of theNode
.- Specified by:
getLocation
in interfaceNode
- Returns:
- Location of the
Node
. May benull
ifNode
does not support a location.
-
getParentNode
public Node getParentNode()
Description copied from interface:Node
- Specified by:
getParentNode
in interfaceNode
- Returns:
Node
containing thisNode
.
-
isInitialised
public boolean isInitialised()
Description copied from interface:Node
Indicates if theNode
has been initialised.Node
instances should only be initialised once. Initialising theNode
twice is an issue.- Specified by:
isInitialised
in interfaceNode
- Returns:
true
if initialised.
-
getChildNodes
public Node[] getChildNodes()
Description copied from interface:Node
Obtains the childNode
instances.- Specified by:
getChildNodes
in interfaceNode
- Returns:
- Child
Node
instances.
-
getManagedObjectExecutionStrategyName
public java.lang.String getManagedObjectExecutionStrategyName()
Description copied from interface:AugmentedManagedObjectExecutionStrategy
Obtains the name of thisManagedObjectExecutionStrategy
.- Specified by:
getManagedObjectExecutionStrategyName
in interfaceAugmentedManagedObjectExecutionStrategy
- Specified by:
getManagedObjectExecutionStrategyName
in interfaceManagedObjectExecutionStrategy
- Returns:
- Name of this
ManagedObjectExecutionStrategy
.
-
isLinked
public boolean isLinked()
Description copied from interface:AugmentedManagedObjectExecutionStrategy
Indicates if theManagedObjectExecutionStrategy
is already linked.- Specified by:
isLinked
in interfaceAugmentedManagedObjectExecutionStrategy
- Returns:
true
if already linked.
-
initialise
public void initialise()
Description copied from interface:ManagedObjectExecutionStrategyNode
Initialises theManagedObjectExecutionStrategyNode
.- Specified by:
initialise
in interfaceManagedObjectExecutionStrategyNode
-
linkExecutionStrategyNode
public boolean linkExecutionStrategyNode(LinkExecutionStrategyNode node)
Description copied from interface:LinkExecutionStrategyNode
Links the inputLinkExecutionStrategyNode
to thisLinkExecutionStrategyNode
.- Specified by:
linkExecutionStrategyNode
in interfaceLinkExecutionStrategyNode
- Parameters:
node
-LinkExecutionStrategyNode
to link to thisLinkExecutionStrategyNode
.- Returns:
true
if linked.
-
getLinkedExecutionStrategyNode
public LinkExecutionStrategyNode getLinkedExecutionStrategyNode()
Description copied from interface:LinkExecutionStrategyNode
Obtains theLinkExecutionStrategyNode
linked to thisLinkExecutionStrategyNode
.- Specified by:
getLinkedExecutionStrategyNode
in interfaceLinkExecutionStrategyNode
- Returns:
LinkExecutionStrategyNode
linked to thisLinkExecutionStrategyNode
.
-
-