Class OfficeTeamNodeImpl
java.lang.Object
net.officefloor.compile.impl.structure.OfficeTeamNodeImpl
- All Implemented Interfaces:
LinkTeamNode,Node,OfficeTeamNode,OfficeTeam,OfficeFloorResponsibility
OfficeTeamNode implementation.- Author:
- Daniel Sagenschneider
-
Field Summary
Fields inherited from interface net.officefloor.compile.internal.structure.OfficeTeamNode
TYPE -
Constructor Summary
ConstructorsConstructorDescriptionOfficeTeamNodeImpl(String teamName, OfficeNode office, NodeContext context) Instantiate. -
Method Summary
Modifier and TypeMethodDescriptionvoidaddTypeQualification(String qualifier, String type) Adds anTypeQualificationfor thisOfficeTeam.Node[]Obtains the childNodeinstances.Obtains theLinkTeamNodelinked to thisLinkTeamNode.Obtains the location of theNode.Obtains the name of theNode.Obtains theNodetype.Obtains the name of thisOfficeTeam.Obtains theTypeQualificationinstances for theOfficeTeam.voidInitialises theOfficeTeamNode.booleanIndicates if theNodehas been initialised.booleanlinkTeamNode(LinkTeamNode node) Links the inputLinkTeamNodeto thisLinkTeamNode.loadOfficeTeamType(CompileContext compileContext) Loads theOfficeTeamType.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
-
OfficeTeamNodeImpl
Instantiate.- Parameters:
teamName-OfficeTeamname.office- ParentOfficeNode.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
public void initialise()Description copied from interface:OfficeTeamNodeInitialises theOfficeTeamNode.- Specified by:
initialisein interfaceOfficeTeamNode
-
getOfficeTeamName
Description copied from interface:OfficeTeamObtains the name of thisOfficeTeam.- Specified by:
getOfficeTeamNamein interfaceOfficeTeam- Returns:
- Name of this
OfficeTeam.
-
addTypeQualification
Description copied from interface:OfficeTeamAdds an
TypeQualificationfor thisOfficeTeam.This enables distinguishing
OfficeTeaminstances to enable, for example, dynamicTeamassignment.- Specified by:
addTypeQualificationin interfaceOfficeTeam- Parameters:
qualifier- Qualifier. May benullif no qualification.type- Type (typically the fully qualified type).
-
getTypeQualifications
Description copied from interface:OfficeTeamNodeObtains theTypeQualificationinstances for theOfficeTeam.- Specified by:
getTypeQualificationsin interfaceOfficeTeamNode- Returns:
TypeQualificationinstances for theOfficeTeam.
-
loadOfficeTeamType
Description copied from interface:OfficeTeamNodeLoads theOfficeTeamType.- Specified by:
loadOfficeTeamTypein interfaceOfficeTeamNode- Parameters:
compileContext-CompileContext.- Returns:
OfficeTeamTypeornullwith issues reported to theCompilerIssues.
-
linkTeamNode
Description copied from interface:LinkTeamNodeLinks the inputLinkTeamNodeto thisLinkTeamNode.- Specified by:
linkTeamNodein interfaceLinkTeamNode- Parameters:
node-LinkTeamNodeto link to thisLinkTeamNode.- Returns:
trueif linked.
-
getLinkedTeamNode
Description copied from interface:LinkTeamNodeObtains theLinkTeamNodelinked to thisLinkTeamNode.- Specified by:
getLinkedTeamNodein interfaceLinkTeamNode- Returns:
LinkTeamNodelinked to thisLinkTeamNode.
-