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
SectionObjectNodeimplementation.- 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 voidaddAnnotation(java.lang.Object annotation)Adds an annotation.Node[]getChildNodes()Obtains the childNodeinstances.LinkObjectNodegetLinkedObjectNode()Obtains theLinkObjectNodelinked to thisLinkObjectNode.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.StringgetOfficeSectionObjectName()Obtains the name of thisOfficeSectionObject.NodegetParentNode()SectionNodegetSectionNode()ObtainsSectionNodecontaining thisSectionObjectNode.java.lang.StringgetSectionObjectName()Obtains the name of thisSectionObject.java.lang.StringgetSubSectionObjectName()Obtains the name of thisSubSectionObject.voidinitialise(java.lang.String objectType)Initialises thisSectionObjectType.booleanisInitialised()Indicates if theNodehas been initialised.booleanlinkObjectNode(LinkObjectNode node)Links the inputLinkObjectNodeto thisLinkObjectNode.DependentObjectTypeloadDependentObjectType(CompileContext compileContext)Loads theDependentObjectType.OfficeSectionObjectTypeloadOfficeSectionObjectType(CompileContext compileContext)Loads theOfficeSectionObjectType.SectionObjectTypeloadSectionObjectType(CompileContext compileContext)Loads theSectionObjectType.voidsetTypeQualifier(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-SectionNodecontaining thisSectionObjectNode.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 objectType)
Description copied from interface:SectionObjectNodeInitialises thisSectionObjectType.- Specified by:
initialisein interfaceSectionObjectNode- Parameters:
objectType- Object type.
-
setTypeQualifier
public void setTypeQualifier(java.lang.String qualifier)
Description copied from interface:SectionObjectSpecifies the type qualifier.- Specified by:
setTypeQualifierin interfaceSectionObject- Parameters:
qualifier- Type qualifier.
-
getSectionNode
public SectionNode getSectionNode()
Description copied from interface:SectionObjectNodeObtainsSectionNodecontaining thisSectionObjectNode.- Specified by:
getSectionNodein interfaceSectionObjectNode- Returns:
SectionNodecontaining thisSectionObjectNode.
-
loadSectionObjectType
public SectionObjectType loadSectionObjectType(CompileContext compileContext)
Description copied from interface:SectionObjectNodeLoads theSectionObjectType.- Specified by:
loadSectionObjectTypein interfaceSectionObjectNode- Parameters:
compileContext-CompileContext.- Returns:
SectionObjectTypeornullwith issue reported to theCompilerIssues.
-
loadOfficeSectionObjectType
public OfficeSectionObjectType loadOfficeSectionObjectType(CompileContext compileContext)
Description copied from interface:SectionObjectNodeLoads theOfficeSectionObjectType.- Specified by:
loadOfficeSectionObjectTypein interfaceSectionObjectNode- Parameters:
compileContext-CompileContext.- Returns:
OfficeSectionObjectTypeornullwith issue reported to theCompilerIssues.
-
loadDependentObjectType
public DependentObjectType loadDependentObjectType(CompileContext compileContext)
Description copied from interface:DependentObjectNodeLoads theDependentObjectType.- Specified by:
loadDependentObjectTypein interfaceDependentObjectNode- Parameters:
compileContext-CompileContext.- Returns:
DependentObjectTypeornullwith issue reported to theCompilerIssues.
-
getSectionObjectName
public java.lang.String getSectionObjectName()
Description copied from interface:SectionObjectObtains the name of thisSectionObject.- Specified by:
getSectionObjectNamein interfaceSectionObject- Returns:
- Name of this
SectionObject.
-
addAnnotation
public void addAnnotation(java.lang.Object annotation)
Description copied from interface:SectionObjectAdds an annotation.- Specified by:
addAnnotationin interfaceSectionObject- Parameters:
annotation- Annotation.
-
getSubSectionObjectName
public java.lang.String getSubSectionObjectName()
Description copied from interface:SubSectionObjectObtains the name of thisSubSectionObject.- Specified by:
getSubSectionObjectNamein interfaceSubSectionObject- Returns:
- Name of this
SubSectionObject.
-
getOfficeSection
public OfficeSection getOfficeSection()
Description copied from interface:OfficeSectionObjectObtains theOfficeSectioncontaining thisOfficeSectionOutput.- Specified by:
getOfficeSectionin interfaceOfficeSectionObject- Returns:
OfficeSectioncontaining thisOfficeSectionOutput.
-
getOfficeSectionObjectName
public java.lang.String getOfficeSectionObjectName()
Description copied from interface:OfficeSectionObjectObtains the name of thisOfficeSectionObject.- Specified by:
getOfficeSectionObjectNamein interfaceOfficeSectionObject- Returns:
- Name of this
OfficeSectionObject.
-
linkObjectNode
public boolean linkObjectNode(LinkObjectNode node)
Description copied from interface:LinkObjectNodeLinks the inputLinkObjectNodeto thisLinkObjectNode.- Specified by:
linkObjectNodein interfaceLinkObjectNode- Parameters:
node-LinkObjectNodeto link to thisLinkObjectNode.- Returns:
trueif linked.
-
getLinkedObjectNode
public LinkObjectNode getLinkedObjectNode()
Description copied from interface:LinkObjectNodeObtains theLinkObjectNodelinked to thisLinkObjectNode.- Specified by:
getLinkedObjectNodein interfaceLinkObjectNode- Returns:
LinkObjectNodelinked to thisLinkObjectNode.
-
-