Class SuppliedManagedObjectSourceNodeImpl
- java.lang.Object
-
- net.officefloor.compile.impl.structure.SuppliedManagedObjectSourceNodeImpl
-
- All Implemented Interfaces:
Node,SuppliedManagedObjectSourceNode
public class SuppliedManagedObjectSourceNodeImpl extends java.lang.Object implements SuppliedManagedObjectSourceNode
- Author:
- Daniel Sagenschneider
-
-
Field Summary
-
Fields inherited from interface net.officefloor.compile.internal.structure.SuppliedManagedObjectSourceNode
TYPE
-
-
Constructor Summary
Constructors Constructor Description SuppliedManagedObjectSourceNodeImpl(java.lang.String qualifier, java.lang.String type, SupplierNode supplierNode, NodeContext context)Initiate.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description 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.NodegetParentNode()static java.lang.StringgetSuppliedManagedObjectSourceName(java.lang.String qualifier, java.lang.String type)Generates the name for theSuppliedManagedObjectSource.SupplierNodegetSupplierNode()Obtains theSupplierNodecontaining thisSuppliedManagedObjectSource.voidinitialise()Initialises theSuppliedManagedObjectSourceNode.booleanisInitialised()Indicates if theNodehas been initialised.SuppliedManagedObjectSourceTypeloadSuppliedManagedObjectSourceType(CompileContext compileContext)Loads theSuppliedManagedObjectSourceType.-
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
-
SuppliedManagedObjectSourceNodeImpl
public SuppliedManagedObjectSourceNodeImpl(java.lang.String qualifier, java.lang.String type, SupplierNode supplierNode, NodeContext context)Initiate.- Parameters:
qualifier- Qualifier. May benull.type- Type.supplierNode-SupplierNode.context-NodeContext.
-
-
Method Detail
-
getSuppliedManagedObjectSourceName
public static java.lang.String getSuppliedManagedObjectSourceName(java.lang.String qualifier, java.lang.String type)Generates the name for theSuppliedManagedObjectSource.- Parameters:
qualifier- Qualifier. May benull.type- Type.- Returns:
SuppliedManagedObjectSourcename.
-
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.
-
getChildNodes
public Node[] 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
public void initialise()
Description copied from interface:SuppliedManagedObjectSourceNodeInitialises theSuppliedManagedObjectSourceNode.- Specified by:
initialisein interfaceSuppliedManagedObjectSourceNode
-
getSupplierNode
public SupplierNode getSupplierNode()
Description copied from interface:SuppliedManagedObjectSourceNodeObtains theSupplierNodecontaining thisSuppliedManagedObjectSource.- Specified by:
getSupplierNodein interfaceSuppliedManagedObjectSourceNode- Returns:
- Parent
SupplierNode.
-
loadSuppliedManagedObjectSourceType
public SuppliedManagedObjectSourceType loadSuppliedManagedObjectSourceType(CompileContext compileContext)
Description copied from interface:SuppliedManagedObjectSourceNodeLoads theSuppliedManagedObjectSourceType.- Specified by:
loadSuppliedManagedObjectSourceTypein interfaceSuppliedManagedObjectSourceNode- Parameters:
compileContext-CompileContext.- Returns:
SuppliedManagedObjectSourceType. May benullif issue in loading theSuppliedManagedObjectSourceType.
-
-