Class OfficeOutputNodeImpl
- java.lang.Object
-
- net.officefloor.compile.impl.structure.OfficeOutputNodeImpl
-
- All Implemented Interfaces:
LinkFlowNode
,Node
,OfficeOutputNode
,OfficeFlowSinkNode
,OfficeOutput
public class OfficeOutputNodeImpl extends java.lang.Object implements OfficeOutputNode
Implementation of theOfficeOutputNode
.- Author:
- Daniel Sagenschneider
-
-
Field Summary
-
Fields inherited from interface net.officefloor.compile.internal.structure.OfficeOutputNode
TYPE
-
-
Constructor Summary
Constructors Constructor Description OfficeOutputNodeImpl(java.lang.String name, OfficeNode office, NodeContext context)
Instantiate.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Node[]
getChildNodes()
Obtains the childNode
instances.LinkFlowNode
getLinkedFlowNode()
Obtains theLinkFlowNode
linked to thisLinkFlowNode
.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.java.lang.String
getOfficeOutputName()
Obtains the name of thisOfficeOutput
.Node
getParentNode()
void
initialise(java.lang.String argumentType)
Initialises theOfficeOutputNode
.boolean
isInitialised()
Indicates if theNode
has been initialised.boolean
linkFlowNode(LinkFlowNode node)
Links the inputLinkFlowNode
to thisLinkFlowNode
.OfficeOutputType
loadOfficeOutputType(CompileContext compileContext)
Loads theOfficeOutputType
.-
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
-
OfficeOutputNodeImpl
public OfficeOutputNodeImpl(java.lang.String name, OfficeNode office, NodeContext context)
Instantiate.- Parameters:
name
- Name of thisOfficeOutput
.office
- ParentOfficeNode
.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
.
-
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(java.lang.String argumentType)
Description copied from interface:OfficeOutputNode
Initialises theOfficeOutputNode
.- Specified by:
initialise
in interfaceOfficeOutputNode
- Parameters:
argumentType
- Argument type from thisOfficeOutput
.
-
getOfficeOutputName
public java.lang.String getOfficeOutputName()
Description copied from interface:OfficeOutput
Obtains the name of thisOfficeOutput
.- Specified by:
getOfficeOutputName
in interfaceOfficeOutput
- Returns:
- Name of this
OfficeOutput
.
-
loadOfficeOutputType
public OfficeOutputType loadOfficeOutputType(CompileContext compileContext)
Description copied from interface:OfficeOutputNode
Loads theOfficeOutputType
.- Specified by:
loadOfficeOutputType
in interfaceOfficeOutputNode
- Parameters:
compileContext
-CompileContext
.- Returns:
OfficeOutputType
ornull
if can not determine.
-
linkFlowNode
public boolean linkFlowNode(LinkFlowNode node)
Description copied from interface:LinkFlowNode
Links the inputLinkFlowNode
to thisLinkFlowNode
.- Specified by:
linkFlowNode
in interfaceLinkFlowNode
- Parameters:
node
-LinkFlowNode
to link to thisLinkFlowNode
.- Returns:
true
if linked.
-
getLinkedFlowNode
public LinkFlowNode getLinkedFlowNode()
Description copied from interface:LinkFlowNode
Obtains theLinkFlowNode
linked to thisLinkFlowNode
.- Specified by:
getLinkedFlowNode
in interfaceLinkFlowNode
- Returns:
LinkFlowNode
linked to thisLinkFlowNode
.
-
-