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
SectionOutputNode
implementation.- 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 void
addAnnotation(java.lang.Object annotation)
Adds the annotation for thisSectionOutput
.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.OfficeSection
getOfficeSection()
Obtains theOfficeSection
containing thisOfficeSectionOutput
.java.lang.String
getOfficeSectionOutputName()
Obtains the name of thisOfficeSectionOutput
.Node
getParentNode()
SectionNode
getSectionNode()
ObtainsSectionNode
containing thisSectionOutputNode
.java.lang.String
getSectionOutputName()
Obtains the name of thisSectionOutput
.java.lang.String
getSubSectionOutputName()
Obtains the name of thisSubSectionOutput
.void
initialise(java.lang.String argumentType, boolean isEscalationOnly)
Initialises thisSectionOutputType
.boolean
isInitialised()
Indicates if theNode
has been initialised.boolean
linkFlowNode(LinkFlowNode node)
Links the inputLinkFlowNode
to thisLinkFlowNode
.OfficeSectionOutputType
loadOfficeSectionOutputType(CompileContext compileContext)
Loads theOfficeSectionOutputType
.SectionOutputType
loadSectionOutputType(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
-SectionNode
containing thisSectionOutputNode
.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, boolean isEscalationOnly)
Description copied from interface:SectionOutputNode
Initialises thisSectionOutputType
.- Specified by:
initialise
in interfaceSectionOutputNode
- Parameters:
argumentType
- Argument type.isEscalationOnly
- Flag indicating if escalation only.
-
getSectionNode
public SectionNode getSectionNode()
Description copied from interface:SectionOutputNode
ObtainsSectionNode
containing thisSectionOutputNode
.- Specified by:
getSectionNode
in interfaceSectionOutputNode
- Returns:
SectionNode
containing thisSectionOutputNode
.
-
loadSectionOutputType
public SectionOutputType loadSectionOutputType(CompileContext compileContext)
Description copied from interface:SectionOutputNode
Loads theSectionOutputType
.- Specified by:
loadSectionOutputType
in interfaceSectionOutputNode
- Parameters:
compileContext
-CompileContext
.- Returns:
SectionOutputType
ornull
with issues reported to theCompilerIssues
.
-
loadOfficeSectionOutputType
public OfficeSectionOutputType loadOfficeSectionOutputType(CompileContext compileContext)
Description copied from interface:SectionOutputNode
Loads theOfficeSectionOutputType
.- Specified by:
loadOfficeSectionOutputType
in interfaceSectionOutputNode
- Parameters:
compileContext
-CompileContext
.- Returns:
OfficeSectionOutputType
ornull
with issues reported to theCompilerIssues
.
-
getSectionOutputName
public java.lang.String getSectionOutputName()
Description copied from interface:SectionOutput
Obtains the name of thisSectionOutput
.- Specified by:
getSectionOutputName
in interfaceSectionOutput
- Returns:
- Name of this
SectionOutput
.
-
addAnnotation
public void addAnnotation(java.lang.Object annotation)
Description copied from interface:SectionOutput
Adds the annotation for this
SectionOutput
.This is exposed as is on the
SectionOutputType
interface for thisSectionOutput
.- Specified by:
addAnnotation
in interfaceSectionOutput
- Parameters:
annotation
- Annotation.
-
getSubSectionOutputName
public java.lang.String getSubSectionOutputName()
Description copied from interface:SubSectionOutput
Obtains the name of thisSubSectionOutput
.- Specified by:
getSubSectionOutputName
in interfaceSubSectionOutput
- Returns:
- Name of this
SubSectionOutput
.
-
getOfficeSection
public OfficeSection getOfficeSection()
Description copied from interface:OfficeSectionOutput
Obtains theOfficeSection
containing thisOfficeSectionOutput
.- Specified by:
getOfficeSection
in interfaceOfficeSectionOutput
- Returns:
OfficeSection
containing thisOfficeSectionOutput
.
-
getOfficeSectionOutputName
public java.lang.String getOfficeSectionOutputName()
Description copied from interface:OfficeSectionOutput
Obtains the name of thisOfficeSectionOutput
.- Specified by:
getOfficeSectionOutputName
in interfaceOfficeSectionOutput
- Returns:
- Name of this
OfficeSectionOutput
.
-
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
.
-
-