Class SectionObjectNodeImpl
- java.lang.Object
-
- net.officefloor.compile.impl.structure.SectionObjectNodeImpl
-
- All Implemented Interfaces:
DependentObjectNode
,LinkObjectNode
,Node
,SectionObjectNode
,OfficeDependencyRequireNode
,OfficeSectionObject
,SectionDependencyObjectNode
,SectionDependencyRequireNode
,SectionObject
,SubSectionObject
public class SectionObjectNodeImpl extends java.lang.Object implements SectionObjectNode
SectionObjectNode
implementation.- Author:
- Daniel Sagenschneider
-
-
Field Summary
-
Fields inherited from interface net.officefloor.compile.internal.structure.SectionObjectNode
TYPE
-
-
Constructor Summary
Constructors Constructor Description SectionObjectNodeImpl(java.lang.String objectName, 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 an annotation.Node[]
getChildNodes()
Obtains the childNode
instances.LinkObjectNode
getLinkedObjectNode()
Obtains theLinkObjectNode
linked to thisLinkObjectNode
.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
getOfficeSectionObjectName()
Obtains the name of thisOfficeSectionObject
.Node
getParentNode()
SectionNode
getSectionNode()
ObtainsSectionNode
containing thisSectionObjectNode
.java.lang.String
getSectionObjectName()
Obtains the name of thisSectionObject
.java.lang.String
getSubSectionObjectName()
Obtains the name of thisSubSectionObject
.void
initialise(java.lang.String objectType)
Initialises thisSectionObjectType
.boolean
isInitialised()
Indicates if theNode
has been initialised.boolean
linkObjectNode(LinkObjectNode node)
Links the inputLinkObjectNode
to thisLinkObjectNode
.DependentObjectType
loadDependentObjectType(CompileContext compileContext)
Loads theDependentObjectType
.OfficeSectionObjectType
loadOfficeSectionObjectType(CompileContext compileContext)
Loads theOfficeSectionObjectType
.SectionObjectType
loadSectionObjectType(CompileContext compileContext)
Loads theSectionObjectType
.void
setTypeQualifier(java.lang.String qualifier)
Specifies the type qualifier.-
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
-
SectionObjectNodeImpl
public SectionObjectNodeImpl(java.lang.String objectName, SectionNode section, NodeContext context)
Instantiate.- Parameters:
objectName
- Name of theSectionObject
.section
-SectionNode
containing thisSectionObjectNode
.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 objectType)
Description copied from interface:SectionObjectNode
Initialises thisSectionObjectType
.- Specified by:
initialise
in interfaceSectionObjectNode
- Parameters:
objectType
- Object type.
-
setTypeQualifier
public void setTypeQualifier(java.lang.String qualifier)
Description copied from interface:SectionObject
Specifies the type qualifier.- Specified by:
setTypeQualifier
in interfaceSectionObject
- Parameters:
qualifier
- Type qualifier.
-
getSectionNode
public SectionNode getSectionNode()
Description copied from interface:SectionObjectNode
ObtainsSectionNode
containing thisSectionObjectNode
.- Specified by:
getSectionNode
in interfaceSectionObjectNode
- Returns:
SectionNode
containing thisSectionObjectNode
.
-
loadSectionObjectType
public SectionObjectType loadSectionObjectType(CompileContext compileContext)
Description copied from interface:SectionObjectNode
Loads theSectionObjectType
.- Specified by:
loadSectionObjectType
in interfaceSectionObjectNode
- Parameters:
compileContext
-CompileContext
.- Returns:
SectionObjectType
ornull
with issue reported to theCompilerIssues
.
-
loadOfficeSectionObjectType
public OfficeSectionObjectType loadOfficeSectionObjectType(CompileContext compileContext)
Description copied from interface:SectionObjectNode
Loads theOfficeSectionObjectType
.- Specified by:
loadOfficeSectionObjectType
in interfaceSectionObjectNode
- Parameters:
compileContext
-CompileContext
.- Returns:
OfficeSectionObjectType
ornull
with issue reported to theCompilerIssues
.
-
loadDependentObjectType
public DependentObjectType loadDependentObjectType(CompileContext compileContext)
Description copied from interface:DependentObjectNode
Loads theDependentObjectType
.- Specified by:
loadDependentObjectType
in interfaceDependentObjectNode
- Parameters:
compileContext
-CompileContext
.- Returns:
DependentObjectType
ornull
with issue reported to theCompilerIssues
.
-
getSectionObjectName
public java.lang.String getSectionObjectName()
Description copied from interface:SectionObject
Obtains the name of thisSectionObject
.- Specified by:
getSectionObjectName
in interfaceSectionObject
- Returns:
- Name of this
SectionObject
.
-
addAnnotation
public void addAnnotation(java.lang.Object annotation)
Description copied from interface:SectionObject
Adds an annotation.- Specified by:
addAnnotation
in interfaceSectionObject
- Parameters:
annotation
- Annotation.
-
getSubSectionObjectName
public java.lang.String getSubSectionObjectName()
Description copied from interface:SubSectionObject
Obtains the name of thisSubSectionObject
.- Specified by:
getSubSectionObjectName
in interfaceSubSectionObject
- Returns:
- Name of this
SubSectionObject
.
-
getOfficeSection
public OfficeSection getOfficeSection()
Description copied from interface:OfficeSectionObject
Obtains theOfficeSection
containing thisOfficeSectionOutput
.- Specified by:
getOfficeSection
in interfaceOfficeSectionObject
- Returns:
OfficeSection
containing thisOfficeSectionOutput
.
-
getOfficeSectionObjectName
public java.lang.String getOfficeSectionObjectName()
Description copied from interface:OfficeSectionObject
Obtains the name of thisOfficeSectionObject
.- Specified by:
getOfficeSectionObjectName
in interfaceOfficeSectionObject
- Returns:
- Name of this
OfficeSectionObject
.
-
linkObjectNode
public boolean linkObjectNode(LinkObjectNode node)
Description copied from interface:LinkObjectNode
Links the inputLinkObjectNode
to thisLinkObjectNode
.- Specified by:
linkObjectNode
in interfaceLinkObjectNode
- Parameters:
node
-LinkObjectNode
to link to thisLinkObjectNode
.- Returns:
true
if linked.
-
getLinkedObjectNode
public LinkObjectNode getLinkedObjectNode()
Description copied from interface:LinkObjectNode
Obtains theLinkObjectNode
linked to thisLinkObjectNode
.- Specified by:
getLinkedObjectNode
in interfaceLinkObjectNode
- Returns:
LinkObjectNode
linked to thisLinkObjectNode
.
-
-