Class SectionInputNodeImpl
java.lang.Object
net.officefloor.compile.impl.structure.SectionInputNodeImpl
- All Implemented Interfaces:
LinkFlowNode,Node,SectionInputNode,OfficeFlowSinkNode,OfficeSectionInput,DeployedOfficeInput,OfficeFloorFlowSinkNode,SectionFlowSinkNode,SectionFlowSourceNode,SectionInput,SubSectionInput
SectionInputNode node.- Author:
- Daniel Sagenschneider
-
Field Summary
Fields inherited from interface net.officefloor.compile.internal.structure.SectionInputNode
TYPE -
Constructor Summary
ConstructorsConstructorDescriptionSectionInputNodeImpl(String inputName, SectionNode section, NodeContext context) Instantiate. -
Method Summary
Modifier and TypeMethodDescriptionvoidaddAnnotation(Object annotation) Adds the annotation for thisSectionInput.voidaddExecutionExplorer(ExecutionExplorer executionExplorer) Adds anExecutionExplorerfor the execution tree from thisOfficeSectionInput.<O,M extends InputManagedObject>
ExternalServiceInput<O,M> addExternalServiceInput(Class<O> objectType, Class<M> managedObjectType) SeeDeployedOfficeInputas allowsOfficeSourceto configure inputs.<O,M extends InputManagedObject>
ExternalServiceInput<O,M> addExternalServiceInput(Class<O> objectType, String typeQualifier, Class<M> managedObjectType) Adds qualifiedExternalServiceInput.Node[]Obtains the childNodeinstances.Obtains theDeployedOfficecontaining thisDeployedOfficeInput.Obtains the name of theDeployedOfficeInput.Obtains the name of theOfficeSectioncontaining theDeployedOfficeInput.Obtains theFunctionManagerto externally trigger thisDeployedOfficeInput.Obtains theLinkFlowNodelinked to thisLinkFlowNode.Obtains the location of theNode.Obtains the name of theNode.Obtains theNodetype.Obtains theOfficeSectioncontaining thisOfficeSectionInput.Obtains the name of thisOfficeSectionInput.Obtains the name of thisSectionInput.Obtains the name of thisSubSectionInput.voidinitialise(String parameterType) Initialises thisSectionInputType.booleanIndicates if theNodehas been initialised.booleanlinkFlowNode(LinkFlowNode node) Links the inputLinkFlowNodeto thisLinkFlowNode.voidloadExternalServicing(Office office) Loads theFunctionManagerinstances to externally trigger thisSectionInputNode.loadOfficeSectionInputType(CompileContext compileContext) Loads theOfficeSectionInputType.loadSectionInputType(CompileContext compileContext) Loads theSectionInputType.booleanrunExecutionExplorers(Map<String, ManagedFunctionNode> managedFunctions, CompileContext compileContext) Runs theExecutionExplorerinstances.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
-
SectionInputNodeImpl
Instantiate.- Parameters:
inputName- Name of theSubSectionInput(which is the name of theSectionInputType).section-SectionNodecontaining thisSectionInputNode.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
Description copied from interface:SectionInputNodeInitialises thisSectionInputType.- Specified by:
initialisein interfaceSectionInputNode- Parameters:
parameterType- Parameter type.
-
loadExternalServicing
Description copied from interface:SectionInputNodeLoads theFunctionManagerinstances to externally trigger thisSectionInputNode.- Specified by:
loadExternalServicingin interfaceSectionInputNode- Parameters:
office-Officecontaining thisSectionInputNode.- Throws:
UnknownFunctionException-UnknownFunctionException.
-
loadSectionInputType
Description copied from interface:SectionInputNodeLoads theSectionInputType.- Specified by:
loadSectionInputTypein interfaceSectionInputNode- Parameters:
compileContext-CompileContext.- Returns:
SectionInputTypeornullwith issues reported to theCompilerIssues.
-
loadOfficeSectionInputType
Description copied from interface:SectionInputNodeLoads theOfficeSectionInputType.- Specified by:
loadOfficeSectionInputTypein interfaceSectionInputNode- Parameters:
compileContext-CompileContext.- Returns:
OfficeSectionInputTypeornullwith issues reported to theCompilerIssues.
-
runExecutionExplorers
public boolean runExecutionExplorers(Map<String, ManagedFunctionNode> managedFunctions, CompileContext compileContext) Description copied from interface:SectionInputNodeRuns theExecutionExplorerinstances.- Specified by:
runExecutionExplorersin interfaceSectionInputNode- Parameters:
managedFunctions-ManagedFunctionNodeinstances by their qualified name.compileContext-CompileContext.- Returns:
trueif successfully explored execution.
-
getSectionInputName
Description copied from interface:SectionInputObtains the name of thisSectionInput.- Specified by:
getSectionInputNamein interfaceSectionInput- Returns:
- Name of this
SectionInput.
-
addAnnotation
Description copied from interface:SectionInputAdds the annotation for this
SectionInput.This is exposed as is on the
SectionInputTypeinterface for thisSectionInput.- Specified by:
addAnnotationin interfaceSectionInput- Parameters:
annotation- Annotation.
-
getSubSectionInputName
Description copied from interface:SubSectionInputObtains the name of thisSubSectionInput.- Specified by:
getSubSectionInputNamein interfaceSubSectionInput- Returns:
- Name of this
SubSectionInput.
-
getOfficeSection
Description copied from interface:OfficeSectionInputObtains theOfficeSectioncontaining thisOfficeSectionInput.- Specified by:
getOfficeSectionin interfaceOfficeSectionInput- Returns:
OfficeSectioncontaining thisOfficeSectionInput.
-
getOfficeSectionInputName
Description copied from interface:OfficeSectionInputObtains the name of thisOfficeSectionInput.- Specified by:
getOfficeSectionInputNamein interfaceOfficeSectionInput- Returns:
- Name of this
OfficeSectionInput.
-
addExecutionExplorer
Description copied from interface:OfficeSectionInputAdds anExecutionExplorerfor the execution tree from thisOfficeSectionInput.- Specified by:
addExecutionExplorerin interfaceOfficeSectionInput- Parameters:
executionExplorer-ExecutionExplorer.
-
getDeployedOfficeSectionName
Description copied from interface:DeployedOfficeInputObtains the name of theOfficeSectioncontaining theDeployedOfficeInput.- Specified by:
getDeployedOfficeSectionNamein interfaceDeployedOfficeInput- Returns:
- Name of the
OfficeSectioncontaining theDeployedOfficeInput.
-
getDeployedOfficeInputName
Description copied from interface:DeployedOfficeInputObtains the name of theDeployedOfficeInput.- Specified by:
getDeployedOfficeInputNamein interfaceDeployedOfficeInput- Returns:
- Name of the
DeployedOfficeInput.
-
getDeployedOffice
Description copied from interface:DeployedOfficeInputObtains theDeployedOfficecontaining thisDeployedOfficeInput.- Specified by:
getDeployedOfficein interfaceDeployedOfficeInput- Returns:
DeployedOfficecontaining thisDeployedOfficeInput.
-
getFunctionManager
Description copied from interface:DeployedOfficeInputObtains the
FunctionManagerto externally trigger thisDeployedOfficeInput.This allows
OfficeFloorExtensionServiceinstances to obtain theFunctionManagerfor external triggering of service handling.- Specified by:
getFunctionManagerin interfaceDeployedOfficeInput- Returns:
FunctionManagerto externally trigger thisDeployedOfficeInput.
-
addExternalServiceInput
public <O,M extends InputManagedObject> ExternalServiceInput<O,M> addExternalServiceInput(Class<O> objectType, Class<M> managedObjectType) Description copied from interface:OfficeSectionInputSeeDeployedOfficeInputas allowsOfficeSourceto configure inputs.- Specified by:
addExternalServiceInputin interfaceDeployedOfficeInput- Specified by:
addExternalServiceInputin interfaceOfficeSectionInput- Type Parameters:
O- Object type.M-ManagedObjecttype.- Parameters:
objectType- Type of object provided to theExternalServiceInput.managedObjectType- Type of theManagedObjectto theExternalServiceInput.- Returns:
ExternalServiceInput.
-
addExternalServiceInput
public <O,M extends InputManagedObject> ExternalServiceInput<O,M> addExternalServiceInput(Class<O> objectType, String typeQualifier, Class<M> managedObjectType) Description copied from interface:OfficeSectionInputAdds qualifiedExternalServiceInput.- Specified by:
addExternalServiceInputin interfaceDeployedOfficeInput- Specified by:
addExternalServiceInputin interfaceOfficeSectionInput- Type Parameters:
O- Object type.M-ManagedObjecttype.- Parameters:
objectType- Type of object provided to theExternalServiceInput.typeQualifier- Type qualifier for theExternalServiceInput.managedObjectType- Type of theManagedObjectto theExternalServiceInput.- Returns:
ExternalServiceInput.
-
linkFlowNode
Description copied from interface:LinkFlowNodeLinks the inputLinkFlowNodeto thisLinkFlowNode.- Specified by:
linkFlowNodein interfaceLinkFlowNode- Parameters:
node-LinkFlowNodeto link to thisLinkFlowNode.- Returns:
trueif linked.
-
getLinkedFlowNode
Description copied from interface:LinkFlowNodeObtains theLinkFlowNodelinked to thisLinkFlowNode.- Specified by:
getLinkedFlowNodein interfaceLinkFlowNode- Returns:
LinkFlowNodelinked to thisLinkFlowNode.
-