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
OfficeTeamNode
implementation.- 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 void
addTypeQualification(java.lang.String qualifier, java.lang.String type)
Adds anTypeQualification
for thisOfficeTeam
.Node[]
getChildNodes()
Obtains the childNode
instances.LinkTeamNode
getLinkedTeamNode()
Obtains theLinkTeamNode
linked to thisLinkTeamNode
.java.lang.String
getLocation()
Obtains the location of theNode
.java.lang.String
getNodeName()
Obtains the name of theNode
.java.lang.String
getNodeType()
Obtains theNode
type.java.lang.String
getOfficeTeamName()
Obtains the name of thisOfficeTeam
.Node
getParentNode()
TypeQualification[]
getTypeQualifications()
Obtains theTypeQualification
instances for theOfficeTeam
.void
initialise()
Initialises theOfficeTeamNode
.boolean
isInitialised()
Indicates if theNode
has been initialised.boolean
linkTeamNode(LinkTeamNode node)
Links the inputLinkTeamNode
to thisLinkTeamNode
.OfficeTeamType
loadOfficeTeamType(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
-OfficeTeam
name.office
- ParentOfficeNode
.context
-NodeContext
.
-
-
Method Detail
-
getNodeName
public java.lang.String getNodeName()
Description copied from interface:Node
Obtains the name of theNode
.- Specified by:
getNodeName
in interfaceNode
- Returns:
- Name of the
Node
.
-
getNodeType
public java.lang.String getNodeType()
Description copied from interface:Node
Obtains theNode
type.- Specified by:
getNodeType
in interfaceNode
- Returns:
Node
type.
-
getLocation
public java.lang.String getLocation()
Description copied from interface:Node
Obtains the location of theNode
.- Specified by:
getLocation
in interfaceNode
- Returns:
- Location of the
Node
. May benull
ifNode
does not support a location.
-
getParentNode
public Node getParentNode()
Description copied from interface:Node
- Specified by:
getParentNode
in interfaceNode
- Returns:
Node
containing thisNode
.
-
getChildNodes
public Node[] getChildNodes()
Description copied from interface:Node
Obtains the childNode
instances.- Specified by:
getChildNodes
in interfaceNode
- Returns:
- Child
Node
instances.
-
isInitialised
public boolean isInitialised()
Description copied from interface:Node
Indicates if theNode
has been initialised.Node
instances should only be initialised once. Initialising theNode
twice is an issue.- Specified by:
isInitialised
in interfaceNode
- Returns:
true
if initialised.
-
initialise
public void initialise()
Description copied from interface:OfficeTeamNode
Initialises theOfficeTeamNode
.- Specified by:
initialise
in interfaceOfficeTeamNode
-
getOfficeTeamName
public java.lang.String getOfficeTeamName()
Description copied from interface:OfficeTeam
Obtains the name of thisOfficeTeam
.- Specified by:
getOfficeTeamName
in interfaceOfficeTeam
- Returns:
- Name of this
OfficeTeam
.
-
addTypeQualification
public void addTypeQualification(java.lang.String qualifier, java.lang.String type)
Description copied from interface:OfficeTeam
Adds an
TypeQualification
for thisOfficeTeam
.This enables distinguishing
OfficeTeam
instances to enable, for example, dynamicTeam
assignment.- Specified by:
addTypeQualification
in interfaceOfficeTeam
- Parameters:
qualifier
- Qualifier. May benull
if no qualification.type
- Type (typically the fully qualified type).
-
getTypeQualifications
public TypeQualification[] getTypeQualifications()
Description copied from interface:OfficeTeamNode
Obtains theTypeQualification
instances for theOfficeTeam
.- Specified by:
getTypeQualifications
in interfaceOfficeTeamNode
- Returns:
TypeQualification
instances for theOfficeTeam
.
-
loadOfficeTeamType
public OfficeTeamType loadOfficeTeamType(CompileContext compileContext)
Description copied from interface:OfficeTeamNode
Loads theOfficeTeamType
.- Specified by:
loadOfficeTeamType
in interfaceOfficeTeamNode
- Parameters:
compileContext
-CompileContext
.- Returns:
OfficeTeamType
ornull
with issues reported to theCompilerIssues
.
-
linkTeamNode
public boolean linkTeamNode(LinkTeamNode node)
Description copied from interface:LinkTeamNode
Links the inputLinkTeamNode
to thisLinkTeamNode
.- Specified by:
linkTeamNode
in interfaceLinkTeamNode
- Parameters:
node
-LinkTeamNode
to link to thisLinkTeamNode
.- Returns:
true
if linked.
-
getLinkedTeamNode
public LinkTeamNode getLinkedTeamNode()
Description copied from interface:LinkTeamNode
Obtains theLinkTeamNode
linked to thisLinkTeamNode
.- Specified by:
getLinkedTeamNode
in interfaceLinkTeamNode
- Returns:
LinkTeamNode
linked to thisLinkTeamNode
.
-
-