Class SectionObjectNodeImpl
java.lang.Object
net.officefloor.compile.impl.structure.SectionObjectNodeImpl
- All Implemented Interfaces:
DependentObjectNode,LinkObjectNode,Node,SectionObjectNode,OfficeDependencyRequireNode,OfficeSectionObject,SectionDependencyObjectNode,SectionDependencyRequireNode,SectionObject,SubSectionObject
SectionObjectNode implementation.- Author:
- Daniel Sagenschneider
-
Field Summary
Fields inherited from interface net.officefloor.compile.internal.structure.SectionObjectNode
TYPE -
Constructor Summary
ConstructorsConstructorDescriptionSectionObjectNodeImpl(String objectName, SectionNode section, NodeContext context) Instantiate. -
Method Summary
Modifier and TypeMethodDescriptionvoidaddAnnotation(Object annotation) Adds an annotation.Node[]Obtains the childNodeinstances.Obtains theLinkObjectNodelinked to thisLinkObjectNode.Obtains the location of theNode.Obtains the name of theNode.Obtains theNodetype.Obtains theOfficeSectioncontaining thisOfficeSectionOutput.Obtains the name of thisOfficeSectionObject.ObtainsSectionNodecontaining thisSectionObjectNode.Obtains the name of thisSectionObject.Obtains the name of thisSubSectionObject.voidinitialise(String objectType) Initialises thisSectionObjectType.booleanIndicates if theNodehas been initialised.booleanlinkObjectNode(LinkObjectNode node) Links the inputLinkObjectNodeto thisLinkObjectNode.loadDependentObjectType(CompileContext compileContext) Loads theDependentObjectType.loadOfficeSectionObjectType(CompileContext compileContext) Loads theOfficeSectionObjectType.loadSectionObjectType(CompileContext compileContext) Loads theSectionObjectType.booleanRemovesSectionObjectand further outer links, should theSectionObjectnot be used.voidsetTypeQualifier(String qualifier) Specifies the type qualifier.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface net.officefloor.compile.internal.structure.Node
getQualifiedName, getQualifiedName
-
Constructor Details
-
SectionObjectNodeImpl
Instantiate.- Parameters:
objectName- Name of theSectionObject.section-SectionNodecontaining thisSectionObjectNode.context-NodeContext.
-
-
Method Details
-
getNodeName
Description copied from interface:NodeObtains the name of theNode.- Specified by:
getNodeNamein interfaceNode- Returns:
- Name of the
Node.
-
getNodeType
Description copied from interface:NodeObtains theNodetype.- Specified by:
getNodeTypein interfaceNode- Returns:
Nodetype.
-
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
Description copied from interface:Node- Specified by:
getParentNodein interfaceNode- Returns:
Nodecontaining thisNode.
-
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
Description copied from interface:SectionObjectNodeInitialises thisSectionObjectType.- Specified by:
initialisein interfaceSectionObjectNode- Parameters:
objectType- Object type.
-
setTypeQualifier
Description copied from interface:SectionObjectSpecifies the type qualifier.- Specified by:
setTypeQualifierin interfaceSectionObject- Parameters:
qualifier- Type qualifier.
-
getSectionNode
Description copied from interface:SectionObjectNodeObtainsSectionNodecontaining thisSectionObjectNode.- Specified by:
getSectionNodein interfaceSectionObjectNode- Returns:
SectionNodecontaining thisSectionObjectNode.
-
pruneIfUnused
public boolean pruneIfUnused()Description copied from interface:SectionObjectNodeRemovesSectionObjectand further outer links, should theSectionObjectnot be used.- Specified by:
pruneIfUnusedin interfaceSectionObjectNode- Returns:
trueif removed.
-
loadSectionObjectType
Description copied from interface:SectionObjectNodeLoads theSectionObjectType.- Specified by:
loadSectionObjectTypein interfaceSectionObjectNode- Parameters:
compileContext-CompileContext.- Returns:
SectionObjectTypeornullwith issue reported to theCompilerIssues.
-
loadOfficeSectionObjectType
Description copied from interface:SectionObjectNodeLoads theOfficeSectionObjectType.- Specified by:
loadOfficeSectionObjectTypein interfaceSectionObjectNode- Parameters:
compileContext-CompileContext.- Returns:
OfficeSectionObjectTypeornullwith issue reported to theCompilerIssues.
-
loadDependentObjectType
Description copied from interface:DependentObjectNodeLoads theDependentObjectType.- Specified by:
loadDependentObjectTypein interfaceDependentObjectNode- Parameters:
compileContext-CompileContext.- Returns:
DependentObjectTypeornullwith issue reported to theCompilerIssues.
-
getSectionObjectName
Description copied from interface:SectionObjectObtains the name of thisSectionObject.- Specified by:
getSectionObjectNamein interfaceSectionObject- Returns:
- Name of this
SectionObject.
-
addAnnotation
Description copied from interface:SectionObjectAdds an annotation.- Specified by:
addAnnotationin interfaceSectionObject- Parameters:
annotation- Annotation.
-
getSubSectionObjectName
Description copied from interface:SubSectionObjectObtains the name of thisSubSectionObject.- Specified by:
getSubSectionObjectNamein interfaceSubSectionObject- Returns:
- Name of this
SubSectionObject.
-
getOfficeSection
Description copied from interface:OfficeSectionObjectObtains theOfficeSectioncontaining thisOfficeSectionOutput.- Specified by:
getOfficeSectionin interfaceOfficeSectionObject- Returns:
OfficeSectioncontaining thisOfficeSectionOutput.
-
getOfficeSectionObjectName
Description copied from interface:OfficeSectionObjectObtains the name of thisOfficeSectionObject.- Specified by:
getOfficeSectionObjectNamein interfaceOfficeSectionObject- Returns:
- Name of this
OfficeSectionObject.
-
linkObjectNode
Description copied from interface:LinkObjectNodeLinks the inputLinkObjectNodeto thisLinkObjectNode.- Specified by:
linkObjectNodein interfaceLinkObjectNode- Parameters:
node-LinkObjectNodeto link to thisLinkObjectNode.- Returns:
trueif linked.
-
getLinkedObjectNode
Description copied from interface:LinkObjectNodeObtains theLinkObjectNodelinked to thisLinkObjectNode.- Specified by:
getLinkedObjectNodein interfaceLinkObjectNode- Returns:
LinkObjectNodelinked to thisLinkObjectNode.
-