Class SectionOutputNodeImpl
- java.lang.Object
-
- net.officefloor.compile.impl.structure.SectionOutputNodeImpl
-
- All Implemented Interfaces:
LinkFlowNode,Node,SectionOutputNode,OfficeFlowSourceNode,OfficeSectionOutput,SectionFlowSinkNode,SectionFlowSourceNode,SectionOutput,SubSectionOutput
public class SectionOutputNodeImpl extends java.lang.Object implements SectionOutputNode
SectionOutputNodeimplementation.- Author:
- Daniel Sagenschneider
-
-
Field Summary
-
Fields inherited from interface net.officefloor.compile.internal.structure.SectionOutputNode
TYPE
-
-
Constructor Summary
Constructors Constructor Description SectionOutputNodeImpl(java.lang.String outputName, SectionNode section, NodeContext context)Instantiate.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddAnnotation(java.lang.Object annotation)Adds the annotation for thisSectionOutput.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.OfficeSectiongetOfficeSection()Obtains theOfficeSectioncontaining thisOfficeSectionOutput.java.lang.StringgetOfficeSectionOutputName()Obtains the name of thisOfficeSectionOutput.NodegetParentNode()SectionNodegetSectionNode()ObtainsSectionNodecontaining thisSectionOutputNode.java.lang.StringgetSectionOutputName()Obtains the name of thisSectionOutput.java.lang.StringgetSubSectionOutputName()Obtains the name of thisSubSectionOutput.voidinitialise(java.lang.String argumentType, boolean isEscalationOnly)Initialises thisSectionOutputType.booleanisInitialised()Indicates if theNodehas been initialised.booleanlinkFlowNode(LinkFlowNode node)Links the inputLinkFlowNodeto thisLinkFlowNode.OfficeSectionOutputTypeloadOfficeSectionOutputType(CompileContext compileContext)Loads theOfficeSectionOutputType.SectionOutputTypeloadSectionOutputType(CompileContext compileContext)Loads theSectionOutputType.-
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
-
SectionOutputNodeImpl
public SectionOutputNodeImpl(java.lang.String outputName, SectionNode section, NodeContext context)Instantiate.- Parameters:
outputName- Name of theSectionOutputType.section-SectionNodecontaining thisSectionOutputNode.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 argumentType, boolean isEscalationOnly)Description copied from interface:SectionOutputNodeInitialises thisSectionOutputType.- Specified by:
initialisein interfaceSectionOutputNode- Parameters:
argumentType- Argument type.isEscalationOnly- Flag indicating if escalation only.
-
getSectionNode
public SectionNode getSectionNode()
Description copied from interface:SectionOutputNodeObtainsSectionNodecontaining thisSectionOutputNode.- Specified by:
getSectionNodein interfaceSectionOutputNode- Returns:
SectionNodecontaining thisSectionOutputNode.
-
loadSectionOutputType
public SectionOutputType loadSectionOutputType(CompileContext compileContext)
Description copied from interface:SectionOutputNodeLoads theSectionOutputType.- Specified by:
loadSectionOutputTypein interfaceSectionOutputNode- Parameters:
compileContext-CompileContext.- Returns:
SectionOutputTypeornullwith issues reported to theCompilerIssues.
-
loadOfficeSectionOutputType
public OfficeSectionOutputType loadOfficeSectionOutputType(CompileContext compileContext)
Description copied from interface:SectionOutputNodeLoads theOfficeSectionOutputType.- Specified by:
loadOfficeSectionOutputTypein interfaceSectionOutputNode- Parameters:
compileContext-CompileContext.- Returns:
OfficeSectionOutputTypeornullwith issues reported to theCompilerIssues.
-
getSectionOutputName
public java.lang.String getSectionOutputName()
Description copied from interface:SectionOutputObtains the name of thisSectionOutput.- Specified by:
getSectionOutputNamein interfaceSectionOutput- Returns:
- Name of this
SectionOutput.
-
addAnnotation
public void addAnnotation(java.lang.Object annotation)
Description copied from interface:SectionOutputAdds the annotation for this
SectionOutput.This is exposed as is on the
SectionOutputTypeinterface for thisSectionOutput.- Specified by:
addAnnotationin interfaceSectionOutput- Parameters:
annotation- Annotation.
-
getSubSectionOutputName
public java.lang.String getSubSectionOutputName()
Description copied from interface:SubSectionOutputObtains the name of thisSubSectionOutput.- Specified by:
getSubSectionOutputNamein interfaceSubSectionOutput- Returns:
- Name of this
SubSectionOutput.
-
getOfficeSection
public OfficeSection getOfficeSection()
Description copied from interface:OfficeSectionOutputObtains theOfficeSectioncontaining thisOfficeSectionOutput.- Specified by:
getOfficeSectionin interfaceOfficeSectionOutput- Returns:
OfficeSectioncontaining thisOfficeSectionOutput.
-
getOfficeSectionOutputName
public java.lang.String getOfficeSectionOutputName()
Description copied from interface:OfficeSectionOutputObtains the name of thisOfficeSectionOutput.- Specified by:
getOfficeSectionOutputNamein interfaceOfficeSectionOutput- Returns:
- Name of this
OfficeSectionOutput.
-
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.
-
-