Class FunctionNamespaceNodeImpl
- java.lang.Object
-
- net.officefloor.compile.impl.structure.FunctionNamespaceNodeImpl
-
- All Implemented Interfaces:
FunctionNamespaceNode,Node,PropertyConfigurable,SectionFunctionNamespace
public class FunctionNamespaceNodeImpl extends java.lang.Object implements FunctionNamespaceNode
FunctionNamespaceNodeimplementation.- Author:
- Daniel Sagenschneider
-
-
Field Summary
-
Fields inherited from interface net.officefloor.compile.internal.structure.FunctionNamespaceNode
TYPE
-
-
Constructor Summary
Constructors Constructor Description FunctionNamespaceNodeImpl(java.lang.String namespaceName, SectionNode section, NodeContext context)Instantiate.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddProperty(java.lang.String name, java.lang.String value)Adds aPropertyto configure the item.SectionFunctionaddSectionFunction(java.lang.String functionName, java.lang.String functionTypeName)Adds aSectionFunction.Node[]getChildNodes()Obtains the childNodeinstances.java.lang.StringgetLocation()Obtains the location of theNode.java.lang.StringgetNodeName()Obtains the name of theNode.java.lang.StringgetNodeType()Obtains theNodetype.NodegetParentNode()java.lang.StringgetSectionFunctionNamespaceName()Obtains the name of thisSectionFunctionNamespace.SectionNodegetSectionNode()Obtains theSectionNodecontaining thisFunctionNamespaceNode.voidinitialise(java.lang.String managedFunctionSourceClassName, ManagedFunctionSource managedFunctionSource)Initialises theFunctionNamespaceNode.booleanisInitialised()Indicates if theNodehas been initialised.FunctionNamespaceTypeloadFunctionNamespaceType(boolean isLoadingType)Obtains theFunctionNamespaceTypefor thisFunctionNamespaceNode.voidregisterAsPossibleMbean(CompileContext compileContext)Registers theManagedFunctionSourceas a possible MBean.-
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
-
FunctionNamespaceNodeImpl
public FunctionNamespaceNodeImpl(java.lang.String namespaceName, SectionNode section, NodeContext context)Instantiate.- Parameters:
namespaceName- Name of thisSectionFunctionNamespace.section-OfficeSectioncontaining thisFunctionNamespaceNode.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(java.lang.String managedFunctionSourceClassName, ManagedFunctionSource managedFunctionSource)Description copied from interface:FunctionNamespaceNodeInitialises theFunctionNamespaceNode.- Specified by:
initialisein interfaceFunctionNamespaceNode- Parameters:
managedFunctionSourceClassName-Classname of theManagedFunctionSource.managedFunctionSource- Optional instantiatedManagedFunctionSource. May benull.
-
getSectionFunctionNamespaceName
public java.lang.String getSectionFunctionNamespaceName()
Description copied from interface:SectionFunctionNamespaceObtains the name of thisSectionFunctionNamespace.- Specified by:
getSectionFunctionNamespaceNamein interfaceSectionFunctionNamespace- Returns:
- Name of this
SectionFunctionNamespace.
-
addProperty
public void addProperty(java.lang.String name, java.lang.String value)Description copied from interface:PropertyConfigurableAdds aPropertyto configure the item.- Specified by:
addPropertyin interfacePropertyConfigurable- Parameters:
name- Name ofProperty.value- Value ofProperty.
-
addSectionFunction
public SectionFunction addSectionFunction(java.lang.String functionName, java.lang.String functionTypeName)
Description copied from interface:SectionFunctionNamespaceAdds aSectionFunction.- Specified by:
addSectionFunctionin interfaceSectionFunctionNamespace- Parameters:
functionName- Name of theSectionFunction.functionTypeName- Name of theManagedFunctionTypeon theFunctionNamespaceType.- Returns:
SectionFunction.
-
getSectionNode
public SectionNode getSectionNode()
Description copied from interface:FunctionNamespaceNodeObtains theSectionNodecontaining thisFunctionNamespaceNode.- Specified by:
getSectionNodein interfaceFunctionNamespaceNode- Returns:
SectionNodecontaining thisFunctionNamespaceNode.
-
loadFunctionNamespaceType
public FunctionNamespaceType loadFunctionNamespaceType(boolean isLoadingType)
Description copied from interface:FunctionNamespaceNodeObtains theFunctionNamespaceTypefor thisFunctionNamespaceNode.- Specified by:
loadFunctionNamespaceTypein interfaceFunctionNamespaceNode- Parameters:
isLoadingType- Indicates using to load type.- Returns:
FunctionNamespaceTypefor thisFunctionNamespaceNode. May benullif can not load theFunctionNamespaceType.
-
registerAsPossibleMbean
public void registerAsPossibleMbean(CompileContext compileContext)
Description copied from interface:FunctionNamespaceNodeRegisters theManagedFunctionSourceas a possible MBean.- Specified by:
registerAsPossibleMbeanin interfaceFunctionNamespaceNode- Parameters:
compileContext-CompileContext.
-
-