Class FunctionNamespaceNodeImpl
java.lang.Object
net.officefloor.compile.impl.structure.FunctionNamespaceNodeImpl
- All Implemented Interfaces:
FunctionNamespaceNode,Node,PropertyConfigurable,SectionFunctionNamespace
FunctionNamespaceNode implementation.- Author:
- Daniel Sagenschneider
-
Field Summary
Fields inherited from interface net.officefloor.compile.internal.structure.FunctionNamespaceNode
TYPE -
Constructor Summary
ConstructorsConstructorDescriptionFunctionNamespaceNodeImpl(String namespaceName, SectionNode section, NodeContext context) Instantiate. -
Method Summary
Modifier and TypeMethodDescriptionvoidaddProperty(String name, String value) Adds aPropertyto configure the item.addSectionFunction(String functionName, String functionTypeName) Adds aSectionFunction.Node[]Obtains the childNodeinstances.Obtains the location of theNode.Obtains the name of theNode.Obtains theNodetype.Obtains the name of thisSectionFunctionNamespace.Obtains theSectionNodecontaining thisFunctionNamespaceNode.voidinitialise(String managedFunctionSourceClassName, ManagedFunctionSource managedFunctionSource) Initialises theFunctionNamespaceNode.booleanIndicates if theNodehas been initialised.loadFunctionNamespaceType(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, waitMethods inherited from interface net.officefloor.compile.internal.structure.Node
getQualifiedName, getQualifiedName
-
Constructor Details
-
FunctionNamespaceNodeImpl
Instantiate.- Parameters:
namespaceName- Name of thisSectionFunctionNamespace.section-OfficeSectioncontaining thisFunctionNamespaceNode.context-NodeContext.
-
-
Method Details
-
getNodeName
Description copied from interface:NodeObtains the name of theNode.- Specified by:
getNodeNamein interfaceNode- Returns:
- Name of the
Node.
-
getNodeType
Description copied from interface:NodeObtains theNodetype.- Specified by:
getNodeTypein interfaceNode- Returns:
Nodetype.
-
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
Description copied from interface:Node- Specified by:
getParentNodein interfaceNode- Returns:
Nodecontaining thisNode.
-
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(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
Description copied from interface:SectionFunctionNamespaceObtains the name of thisSectionFunctionNamespace.- Specified by:
getSectionFunctionNamespaceNamein interfaceSectionFunctionNamespace- Returns:
- Name of this
SectionFunctionNamespace.
-
addProperty
Description copied from interface:PropertyConfigurableAdds aPropertyto configure the item.- Specified by:
addPropertyin interfacePropertyConfigurable- Parameters:
name- Name ofProperty.value- Value ofProperty.
-
addSectionFunction
Description copied from interface:SectionFunctionNamespaceAdds aSectionFunction.- Specified by:
addSectionFunctionin interfaceSectionFunctionNamespace- Parameters:
functionName- Name of theSectionFunction.functionTypeName- Name of theManagedFunctionTypeon theFunctionNamespaceType.- Returns:
SectionFunction.
-
getSectionNode
Description copied from interface:FunctionNamespaceNodeObtains theSectionNodecontaining thisFunctionNamespaceNode.- Specified by:
getSectionNodein interfaceFunctionNamespaceNode- Returns:
SectionNodecontaining thisFunctionNamespaceNode.
-
loadFunctionNamespaceType
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
Description copied from interface:FunctionNamespaceNodeRegisters theManagedFunctionSourceas a possible MBean.- Specified by:
registerAsPossibleMbeanin interfaceFunctionNamespaceNode- Parameters:
compileContext-CompileContext.
-