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 childNode
instances.java.lang.String
getLocation()
Obtains the location of theNode
.java.lang.String
getNodeName()
Obtains the name of theNode
.java.lang.String
getNodeType()
Obtains theNode
type.Node
getParentNode()
static java.lang.String
getSuppliedManagedObjectSourceName(java.lang.String qualifier, java.lang.String type)
Generates the name for theSuppliedManagedObjectSource
.SupplierNode
getSupplierNode()
Obtains theSupplierNode
containing thisSuppliedManagedObjectSource
.void
initialise()
Initialises theSuppliedManagedObjectSourceNode
.boolean
isInitialised()
Indicates if theNode
has been initialised.SuppliedManagedObjectSourceType
loadSuppliedManagedObjectSourceType(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:
SuppliedManagedObjectSource
name.
-
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
.
-
getChildNodes
public Node[] getChildNodes()
Description copied from interface:Node
Obtains the childNode
instances.- Specified by:
getChildNodes
in interfaceNode
- Returns:
- Child
Node
instances.
-
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.
-
initialise
public void initialise()
Description copied from interface:SuppliedManagedObjectSourceNode
Initialises theSuppliedManagedObjectSourceNode
.- Specified by:
initialise
in interfaceSuppliedManagedObjectSourceNode
-
getSupplierNode
public SupplierNode getSupplierNode()
Description copied from interface:SuppliedManagedObjectSourceNode
Obtains theSupplierNode
containing thisSuppliedManagedObjectSource
.- Specified by:
getSupplierNode
in interfaceSuppliedManagedObjectSourceNode
- Returns:
- Parent
SupplierNode
.
-
loadSuppliedManagedObjectSourceType
public SuppliedManagedObjectSourceType loadSuppliedManagedObjectSourceType(CompileContext compileContext)
Description copied from interface:SuppliedManagedObjectSourceNode
Loads theSuppliedManagedObjectSourceType
.- Specified by:
loadSuppliedManagedObjectSourceType
in interfaceSuppliedManagedObjectSourceNode
- Parameters:
compileContext
-CompileContext
.- Returns:
SuppliedManagedObjectSourceType
. May benull
if issue in loading theSuppliedManagedObjectSourceType
.
-
-