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
ResponsibleTeamNode
implementation.- 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 void
addTypeQualification(java.lang.String qualifier, java.lang.String type)
Adds anTypeQualification
for thisManagedObjectTeam
.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
getManagedObjectTeamName()
Obtains the name of thisManagedObjectTeam
.java.lang.String
getNodeName()
Obtains the name of theNode
.java.lang.String
getNodeType()
Obtains theNode
type.Node
getParentNode()
void
initialise()
Initialises theManagedObjectTeamNode
.boolean
isInitialised()
Indicates if theNode
has been initialised.boolean
isLinked()
Indicates if theManagedObjectTeam
is already linked.boolean
linkTeamNode(LinkTeamNode node)
Links the inputLinkTeamNode
to thisLinkTeamNode
.OfficeSectionManagedObjectTeamType
loadOfficeSectionManagedObjectTeamType(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
-ManagedObjectSourceNode
containing thisManagedObjectTeamNode
.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:ManagedObjectTeamNode
Initialises theManagedObjectTeamNode
.- Specified by:
initialise
in interfaceManagedObjectTeamNode
-
loadOfficeSectionManagedObjectTeamType
public OfficeSectionManagedObjectTeamType loadOfficeSectionManagedObjectTeamType(CompileContext compileContext)
Description copied from interface:ManagedObjectTeamNode
Loads theOfficeSectionManagedObjectTeamType
.- Specified by:
loadOfficeSectionManagedObjectTeamType
in interfaceManagedObjectTeamNode
- Parameters:
compileContext
-CompileContext
.- Returns:
OfficeSectionManagedObjectTeamType
ornull
with issues reported to theCompilerIssues
.
-
getManagedObjectTeamName
public java.lang.String getManagedObjectTeamName()
Description copied from interface:AugmentedManagedObjectTeam
Obtains the name of thisManagedObjectTeam
.- Specified by:
getManagedObjectTeamName
in interfaceAugmentedManagedObjectTeam
- Specified by:
getManagedObjectTeamName
in interfaceManagedObjectTeam
- Returns:
- Name of this
ManagedObjectTeam
.
-
addTypeQualification
public void addTypeQualification(java.lang.String qualifier, java.lang.String type)
Description copied from interface:ManagedObjectTeam
Adds an
TypeQualification
for thisManagedObjectTeam
.This enables distinguishing
ManagedObjectTeam
instances to enable dynamicTeam
assignment.- Specified by:
addTypeQualification
in interfaceManagedObjectTeam
- Parameters:
qualifier
- Qualifier. May benull
if no qualification.type
- Type (typically the fully qualified type).
-
isLinked
public boolean isLinked()
Description copied from interface:AugmentedManagedObjectTeam
Indicates if theManagedObjectTeam
is already linked.- Specified by:
isLinked
in interfaceAugmentedManagedObjectTeam
- Returns:
true
if already linked.
-
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
.
-
-