Class ManagingOfficeNodeImpl
- java.lang.Object
-
- net.officefloor.compile.impl.structure.ManagingOfficeNodeImpl
-
- All Implemented Interfaces:
LinkOfficeNode,ManagingOfficeNode,Node,ManagingOffice
public class ManagingOfficeNodeImpl extends java.lang.Object implements ManagingOfficeNode
ManagingOfficeNodeimplementation.- Author:
- Daniel Sagenschneider
-
-
Field Summary
-
Fields inherited from interface net.officefloor.compile.internal.structure.ManagingOfficeNode
TYPE
-
-
Constructor Summary
Constructors Constructor Description ManagingOfficeNodeImpl(ManagedObjectSourceNode managedObjectSource, NodeContext context)Initiate.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Node[]getChildNodes()Obtains the childNodeinstances.LinkOfficeNodegetLinkedOfficeNode()Obtains theLinkOfficeNodelinked to thisLinkOfficeNode.java.lang.StringgetLocation()Obtains the location of theNode.java.lang.StringgetNodeName()Obtains the name of theNode.java.lang.StringgetNodeType()Obtains theNodetype.NodegetParentNode()voidinitialise()Initialises theManagingOfficeNode.booleanisInitialised()Indicates if theNodehas been initialised.booleanlinkOfficeNode(LinkOfficeNode node)Links the inputLinkOfficeNodeto thisLinkOfficeNode.-
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
-
ManagingOfficeNodeImpl
public ManagingOfficeNodeImpl(ManagedObjectSourceNode managedObjectSource, NodeContext context)
Initiate.- Parameters:
managedObjectSource- ParentManagedObjectSourceNode.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:ManagingOfficeNodeInitialises theManagingOfficeNode.- Specified by:
initialisein interfaceManagingOfficeNode
-
linkOfficeNode
public boolean linkOfficeNode(LinkOfficeNode node)
Description copied from interface:LinkOfficeNodeLinks the inputLinkOfficeNodeto thisLinkOfficeNode.- Specified by:
linkOfficeNodein interfaceLinkOfficeNode- Parameters:
node-LinkOfficeNodeto link to thisLinkOfficeNode.- Returns:
trueif linked.
-
getLinkedOfficeNode
public LinkOfficeNode getLinkedOfficeNode()
Description copied from interface:LinkOfficeNodeObtains theLinkOfficeNodelinked to thisLinkOfficeNode.- Specified by:
getLinkedOfficeNodein interfaceLinkOfficeNode- Returns:
LinkOfficeNodelinked to thisLinkOfficeNode.
-
-