Class OfficeTeamNodeImpl
- java.lang.Object
-
- net.officefloor.compile.impl.structure.OfficeTeamNodeImpl
-
- All Implemented Interfaces:
LinkTeamNode,Node,OfficeTeamNode,OfficeTeam,OfficeFloorResponsibility
public class OfficeTeamNodeImpl extends java.lang.Object implements OfficeTeamNode
OfficeTeamNodeimplementation.- Author:
- Daniel Sagenschneider
-
-
Field Summary
-
Fields inherited from interface net.officefloor.compile.internal.structure.OfficeTeamNode
TYPE
-
-
Constructor Summary
Constructors Constructor Description OfficeTeamNodeImpl(java.lang.String teamName, OfficeNode office, NodeContext context)Instantiate.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddTypeQualification(java.lang.String qualifier, java.lang.String type)Adds anTypeQualificationfor thisOfficeTeam.Node[]getChildNodes()Obtains the childNodeinstances.LinkTeamNodegetLinkedTeamNode()Obtains theLinkTeamNodelinked to thisLinkTeamNode.java.lang.StringgetLocation()Obtains the location of theNode.java.lang.StringgetNodeName()Obtains the name of theNode.java.lang.StringgetNodeType()Obtains theNodetype.java.lang.StringgetOfficeTeamName()Obtains the name of thisOfficeTeam.NodegetParentNode()TypeQualification[]getTypeQualifications()Obtains theTypeQualificationinstances for theOfficeTeam.voidinitialise()Initialises theOfficeTeamNode.booleanisInitialised()Indicates if theNodehas been initialised.booleanlinkTeamNode(LinkTeamNode node)Links the inputLinkTeamNodeto thisLinkTeamNode.OfficeTeamTypeloadOfficeTeamType(CompileContext compileContext)Loads theOfficeTeamType.-
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
-
OfficeTeamNodeImpl
public OfficeTeamNodeImpl(java.lang.String teamName, OfficeNode office, NodeContext context)Instantiate.- Parameters:
teamName-OfficeTeamname.office- ParentOfficeNode.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()
Description copied from interface:OfficeTeamNodeInitialises theOfficeTeamNode.- Specified by:
initialisein interfaceOfficeTeamNode
-
getOfficeTeamName
public java.lang.String getOfficeTeamName()
Description copied from interface:OfficeTeamObtains the name of thisOfficeTeam.- Specified by:
getOfficeTeamNamein interfaceOfficeTeam- Returns:
- Name of this
OfficeTeam.
-
addTypeQualification
public void addTypeQualification(java.lang.String qualifier, java.lang.String type)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
public TypeQualification[] getTypeQualifications()
Description copied from interface:OfficeTeamNodeObtains theTypeQualificationinstances for theOfficeTeam.- Specified by:
getTypeQualificationsin interfaceOfficeTeamNode- Returns:
TypeQualificationinstances for theOfficeTeam.
-
loadOfficeTeamType
public OfficeTeamType loadOfficeTeamType(CompileContext compileContext)
Description copied from interface:OfficeTeamNodeLoads theOfficeTeamType.- Specified by:
loadOfficeTeamTypein interfaceOfficeTeamNode- Parameters:
compileContext-CompileContext.- Returns:
OfficeTeamTypeornullwith issues reported to theCompilerIssues.
-
linkTeamNode
public boolean linkTeamNode(LinkTeamNode node)
Description copied from interface:LinkTeamNodeLinks the inputLinkTeamNodeto thisLinkTeamNode.- Specified by:
linkTeamNodein interfaceLinkTeamNode- Parameters:
node-LinkTeamNodeto link to thisLinkTeamNode.- Returns:
trueif linked.
-
getLinkedTeamNode
public LinkTeamNode getLinkedTeamNode()
Description copied from interface:LinkTeamNodeObtains theLinkTeamNodelinked to thisLinkTeamNode.- Specified by:
getLinkedTeamNodein interfaceLinkTeamNode- Returns:
LinkTeamNodelinked to thisLinkTeamNode.
-
-