Class OfficeInputNodeImpl
- java.lang.Object
 - 
- net.officefloor.compile.impl.structure.OfficeInputNodeImpl
 
 
- 
- All Implemented Interfaces:
 LinkFlowNode,Node,OfficeInputNode,OfficeFlowSourceNode,OfficeInput
public class OfficeInputNodeImpl extends java.lang.Object implements OfficeInputNode
Implementation of theOfficeInputNode.- Author:
 - Daniel Sagenschneider
 
 
- 
- 
Field Summary
- 
Fields inherited from interface net.officefloor.compile.internal.structure.OfficeInputNode
TYPE 
 - 
 
- 
Constructor Summary
Constructors Constructor Description OfficeInputNodeImpl(java.lang.String name, OfficeNode officeNode, NodeContext context)Initialise. 
- 
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Node[]getChildNodes()Obtains the childNodeinstances.LinkFlowNodegetLinkedFlowNode()Obtains theLinkFlowNodelinked to thisLinkFlowNode.java.lang.StringgetLocation()Obtains the location of theNode.java.lang.StringgetNodeName()Obtains the name of theNode.java.lang.StringgetNodeType()Obtains theNodetype.java.lang.StringgetOfficeInputName()Obtains the name of thisOfficeInput.NodegetParentNode()voidinitialise(java.lang.String parameterType)Initialises theOfficeInputNode.booleanisInitialised()Indicates if theNodehas been initialised.booleanlinkFlowNode(LinkFlowNode node)Links the inputLinkFlowNodeto thisLinkFlowNode.OfficeInputTypeloadOfficeInputType(CompileContext compileContext)Obtains theOfficeInputType.- 
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
- 
OfficeInputNodeImpl
public OfficeInputNodeImpl(java.lang.String name, OfficeNode officeNode, NodeContext context)Initialise.- Parameters:
 name- Name ofOfficeInput.officeNode- ParentOfficeNode.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.
 
- 
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(java.lang.String parameterType)
Description copied from interface:OfficeInputNodeInitialises theOfficeInputNode.- Specified by:
 initialisein interfaceOfficeInputNode- Parameters:
 parameterType- Parameter type ofOfficeInput.
 
- 
loadOfficeInputType
public OfficeInputType loadOfficeInputType(CompileContext compileContext)
Description copied from interface:OfficeInputNodeObtains theOfficeInputType.- Specified by:
 loadOfficeInputTypein interfaceOfficeInputNode- Parameters:
 compileContext-CompileContext.- Returns:
 OfficeInputTypeornullif can not determine.
 
- 
linkFlowNode
public boolean linkFlowNode(LinkFlowNode node)
Description copied from interface:LinkFlowNodeLinks the inputLinkFlowNodeto thisLinkFlowNode.- Specified by:
 linkFlowNodein interfaceLinkFlowNode- Parameters:
 node-LinkFlowNodeto link to thisLinkFlowNode.- Returns:
 trueif linked.
 
- 
getLinkedFlowNode
public LinkFlowNode getLinkedFlowNode()
Description copied from interface:LinkFlowNodeObtains theLinkFlowNodelinked to thisLinkFlowNode.- Specified by:
 getLinkedFlowNodein interfaceLinkFlowNode- Returns:
 LinkFlowNodelinked to thisLinkFlowNode.
 
- 
getOfficeInputName
public java.lang.String getOfficeInputName()
Description copied from interface:OfficeInputObtains the name of thisOfficeInput.- Specified by:
 getOfficeInputNamein interfaceOfficeInput- Returns:
 - Name of this 
OfficeInput. 
 
 - 
 
 -