Class TeamNodeImpl
- java.lang.Object
- 
- net.officefloor.compile.impl.structure.TeamNodeImpl
 
- 
- All Implemented Interfaces:
- LinkTeamNode,- Node,- TeamNode,- PropertyConfigurable,- OfficeFloorTeam
 
 public class TeamNodeImpl extends java.lang.Object implements TeamNode TeamNodeimplementation.- Author:
- Daniel Sagenschneider
 
- 
- 
Constructor SummaryConstructors Constructor Description TeamNodeImpl(java.lang.String teamName, OfficeFloorNode officeFloor, NodeContext context)Initiate.
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddProperty(java.lang.String name, java.lang.String value)Adds aPropertyto configure the item.voidaddTypeQualification(java.lang.String qualifier, java.lang.String type)Adds anTypeQualificationfor thisOfficeFloorTeam.voidbuildTeam(OfficeFloorBuilder builder, CompileContext compileContext)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.StringgetOfficeFloorTeamName()Obtains the name of thisOfficeFloorTeam.NodegetParentNode()TypeQualification[]getTypeQualifications()Obtains theTypeQualificationinstances for theOfficeFloorTeam.voidinitialise(java.lang.String teamSourceClassName, TeamSource teamSource)Initialises theTeamNode.booleanisInitialised()Indicates if theNodehas been initialised.booleanlinkTeamNode(LinkTeamNode node)Links the inputLinkTeamNodeto thisLinkTeamNode.OfficeFloorTeamSourceTypeloadOfficeFloorTeamSourceType(CompileContext compileContext)Loads theOfficeFloorTeamSourceType.TeamTypeloadTeamType()Loads theTeamTypefor theTeamSource.voidrequestNoTeamOversight()Requests for noTeamOversighton thisTeam.voidsetTeamSize(int teamSize)Specifies the size of theTeam.booleansourceTeam(TeamVisitor visitor, CompileContext compileContext)Sources theTeam.- 
Methods inherited from class java.lang.Objectclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 - 
Methods inherited from interface net.officefloor.compile.internal.structure.NodegetQualifiedName, getQualifiedName
 
- 
 
- 
- 
- 
Constructor Detail- 
TeamNodeImplpublic TeamNodeImpl(java.lang.String teamName, OfficeFloorNode officeFloor, NodeContext context)Initiate.- Parameters:
- teamName- Name of this- OfficeFloorTeam.
- officeFloor-- OfficeFloorNodecontaining this- TeamNode.
- context-- NodeContext.
 
 
- 
 - 
Method Detail- 
getNodeNamepublic java.lang.String getNodeName() Description copied from interface:NodeObtains the name of theNode.- Specified by:
- getNodeNamein interface- Node
- Returns:
- Name of the Node.
 
 - 
getNodeTypepublic java.lang.String getNodeType() Description copied from interface:NodeObtains theNodetype.- Specified by:
- getNodeTypein interface- Node
- Returns:
- Nodetype.
 
 - 
getLocationpublic java.lang.String getLocation() Description copied from interface:NodeObtains the location of theNode.- Specified by:
- getLocationin interface- Node
- Returns:
- Location of the Node. May benullifNodedoes not support a location.
 
 - 
getParentNodepublic Node getParentNode() Description copied from interface:Node- Specified by:
- getParentNodein interface- Node
- Returns:
- Nodecontaining this- Node.
 
 - 
getChildNodespublic Node[] getChildNodes() Description copied from interface:NodeObtains the childNodeinstances.- Specified by:
- getChildNodesin interface- Node
- Returns:
- Child Nodeinstances.
 
 - 
isInitialisedpublic 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 interface- Node
- Returns:
- trueif initialised.
 
 - 
initialisepublic void initialise(java.lang.String teamSourceClassName, TeamSource teamSource)Description copied from interface:TeamNodeInitialises theTeamNode.- Specified by:
- initialisein interface- TeamNode
- Parameters:
- teamSourceClassName- Class name of the- TeamSource.
- teamSource- Optional instantiated- TeamSource. May be- null.
 
 - 
sourceTeampublic boolean sourceTeam(TeamVisitor visitor, CompileContext compileContext) Description copied from interface:TeamNodeSources theTeam.- Specified by:
- sourceTeamin interface- TeamNode
- Parameters:
- visitor-- TeamVisitor.
- compileContext-- CompileContext.
- Returns:
- trueif successfully sourced the- Team.- falseif failed to source, with issues reported to the- CompilerIssues.
 
 - 
loadTeamTypepublic TeamType loadTeamType() Description copied from interface:TeamNodeLoads theTeamTypefor theTeamSource.- Specified by:
- loadTeamTypein interface- TeamNode
- Returns:
- TeamTypeor- nullwith issues reported to the- CompilerIssues.
 
 - 
loadOfficeFloorTeamSourceTypepublic OfficeFloorTeamSourceType loadOfficeFloorTeamSourceType(CompileContext compileContext) Description copied from interface:TeamNodeLoads theOfficeFloorTeamSourceType.- Specified by:
- loadOfficeFloorTeamSourceTypein interface- TeamNode
- Parameters:
- compileContext-- CompileContext.
- Returns:
- OfficeFloorTeamSourceTypeor- nullwith issues reported to the- CompilerIssues.
 
 - 
getTypeQualificationspublic TypeQualification[] getTypeQualifications() Description copied from interface:TeamNodeObtains theTypeQualificationinstances for theOfficeFloorTeam.- Specified by:
- getTypeQualificationsin interface- TeamNode
- Returns:
- TypeQualificationinstances for the- OfficeFloorTeam.
 
 - 
buildTeampublic void buildTeam(OfficeFloorBuilder builder, CompileContext compileContext) Description copied from interface:TeamNode- Specified by:
- buildTeamin interface- TeamNode
- Parameters:
- builder-- OfficeFloorBuilder.
- compileContext-- CompileContext.
 
 - 
getOfficeFloorTeamNamepublic java.lang.String getOfficeFloorTeamName() Description copied from interface:OfficeFloorTeamObtains the name of thisOfficeFloorTeam.- Specified by:
- getOfficeFloorTeamNamein interface- OfficeFloorTeam
- Returns:
- Name of this OfficeFloorTeam.
 
 - 
setTeamSizepublic void setTeamSize(int teamSize) Description copied from interface:OfficeFloorTeamSpecifies the size of theTeam.- Specified by:
- setTeamSizein interface- OfficeFloorTeam
- Parameters:
- teamSize- Size of the- Team.
 
 - 
requestNoTeamOversightpublic void requestNoTeamOversight() Description copied from interface:OfficeFloorTeamRequests for noTeamOversighton thisTeam.- Specified by:
- requestNoTeamOversightin interface- OfficeFloorTeam
 
 - 
addPropertypublic void addProperty(java.lang.String name, java.lang.String value)Description copied from interface:PropertyConfigurableAdds aPropertyto configure the item.- Specified by:
- addPropertyin interface- PropertyConfigurable
- Parameters:
- name- Name of- Property.
- value- Value of- Property.
 
 - 
addTypeQualificationpublic void addTypeQualification(java.lang.String qualifier, java.lang.String type)Description copied from interface:OfficeFloorTeamAdds an TypeQualificationfor thisOfficeFloorTeam.This enables distinguishing OfficeFloorTeaminstances to enable, for example, dynamicTeamassignment.- Specified by:
- addTypeQualificationin interface- OfficeFloorTeam
- Parameters:
- qualifier- Qualifier. May be- nullif no qualification.
- type- Type (typically the fully qualified type).
 
 - 
linkTeamNodepublic boolean linkTeamNode(LinkTeamNode node) Description copied from interface:LinkTeamNodeLinks the inputLinkTeamNodeto thisLinkTeamNode.- Specified by:
- linkTeamNodein interface- LinkTeamNode
- Parameters:
- node-- LinkTeamNodeto link to this- LinkTeamNode.
- Returns:
- trueif linked.
 
 - 
getLinkedTeamNodepublic LinkTeamNode getLinkedTeamNode() Description copied from interface:LinkTeamNodeObtains theLinkTeamNodelinked to thisLinkTeamNode.- Specified by:
- getLinkedTeamNodein interface- LinkTeamNode
- Returns:
- LinkTeamNodelinked to this- LinkTeamNode.
 
 
- 
 
-