Class ManagedObjectTeamNodeImpl
- java.lang.Object
-
- net.officefloor.compile.impl.structure.ManagedObjectTeamNodeImpl
-
- All Implemented Interfaces:
LinkTeamNode,ManagedObjectTeamNode,Node,ManagedObjectTeam,OfficeManagedObjectTeam,OfficeResponsibility,OfficeSectionManagedObjectTeam,AugmentedManagedObjectTeam,OfficeFloorManagedObjectTeam,OfficeFloorResponsibility
public class ManagedObjectTeamNodeImpl extends java.lang.Object implements ManagedObjectTeamNode
ResponsibleTeamNodeimplementation.- Author:
- Daniel Sagenschneider
-
-
Field Summary
-
Fields inherited from interface net.officefloor.compile.internal.structure.ManagedObjectTeamNode
TYPE
-
-
Constructor Summary
Constructors Constructor Description ManagedObjectTeamNodeImpl(java.lang.String teamName, ManagedObjectSourceNode managedObjectSource, NodeContext context)Initiate.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddTypeQualification(java.lang.String qualifier, java.lang.String type)Adds anTypeQualificationfor thisManagedObjectTeam.Node[]getChildNodes()Obtains the childNodeinstances.LinkTeamNodegetLinkedTeamNode()Obtains theLinkTeamNodelinked to thisLinkTeamNode.java.lang.StringgetLocation()Obtains the location of theNode.java.lang.StringgetManagedObjectTeamName()Obtains the name of thisManagedObjectTeam.java.lang.StringgetNodeName()Obtains the name of theNode.java.lang.StringgetNodeType()Obtains theNodetype.NodegetParentNode()voidinitialise()Initialises theManagedObjectTeamNode.booleanisInitialised()Indicates if theNodehas been initialised.booleanisLinked()Indicates if theManagedObjectTeamis already linked.booleanlinkTeamNode(LinkTeamNode node)Links the inputLinkTeamNodeto thisLinkTeamNode.OfficeSectionManagedObjectTeamTypeloadOfficeSectionManagedObjectTeamType(CompileContext compileContext)Loads theOfficeSectionManagedObjectTeamType.-
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
-
ManagedObjectTeamNodeImpl
public ManagedObjectTeamNodeImpl(java.lang.String teamName, ManagedObjectSourceNode managedObjectSource, NodeContext context)Initiate.- Parameters:
teamName- Name of thisOfficeTeam.managedObjectSource-ManagedObjectSourceNodecontaining thisManagedObjectTeamNode.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:ManagedObjectTeamNodeInitialises theManagedObjectTeamNode.- Specified by:
initialisein interfaceManagedObjectTeamNode
-
loadOfficeSectionManagedObjectTeamType
public OfficeSectionManagedObjectTeamType loadOfficeSectionManagedObjectTeamType(CompileContext compileContext)
Description copied from interface:ManagedObjectTeamNodeLoads theOfficeSectionManagedObjectTeamType.- Specified by:
loadOfficeSectionManagedObjectTeamTypein interfaceManagedObjectTeamNode- Parameters:
compileContext-CompileContext.- Returns:
OfficeSectionManagedObjectTeamTypeornullwith issues reported to theCompilerIssues.
-
getManagedObjectTeamName
public java.lang.String getManagedObjectTeamName()
Description copied from interface:AugmentedManagedObjectTeamObtains the name of thisManagedObjectTeam.- Specified by:
getManagedObjectTeamNamein interfaceAugmentedManagedObjectTeam- Specified by:
getManagedObjectTeamNamein interfaceManagedObjectTeam- Returns:
- Name of this
ManagedObjectTeam.
-
addTypeQualification
public void addTypeQualification(java.lang.String qualifier, java.lang.String type)Description copied from interface:ManagedObjectTeamAdds an
TypeQualificationfor thisManagedObjectTeam.This enables distinguishing
ManagedObjectTeaminstances to enable dynamicTeamassignment.- Specified by:
addTypeQualificationin interfaceManagedObjectTeam- Parameters:
qualifier- Qualifier. May benullif no qualification.type- Type (typically the fully qualified type).
-
isLinked
public boolean isLinked()
Description copied from interface:AugmentedManagedObjectTeamIndicates if theManagedObjectTeamis already linked.- Specified by:
isLinkedin interfaceAugmentedManagedObjectTeam- Returns:
trueif already linked.
-
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.
-
-