public interface IToolContext extends IDynamicObject
ToolDescriptor processed by AWM using the
current IExecutionContext. It provides access to information a tool
executor needs at execution time.
The tool context offers easy access to:
FunctionPackage.
A tool context does not necessarily contain all modeled input parameters and
output parameters. This is dependent of the context type, tool executor mass
processing support, and mass processing flags in the model
(ActionDescriptor and RToolParameter).
More specific getter methods for parameters are provided by
ToolUtility.
| Modifier and Type | Method and Description |
|---|---|
IExecutionContext |
getExecutionContext()
Gets the
IExecutionContext of the currently executed action. |
IFunctionPackage |
getFunctionPackage()
Gets the function package instance which defines the
ToolDescriptor type. |
java.util.List<IToolInputParameter> |
getInputParameters()
Gets all input parameters of the tool context.
|
java.util.Collection<IToolInputParameter> |
getInputParameters(java.lang.String pName)
Gets all input parameters of the tool context with the specified name.
|
ToolDescriptor |
getModelObject()
Gets the model object.
|
java.util.List<IModeledToolOutputParameter> |
getOutputParameters()
Gets all output parameters of the tool context.
|
java.util.Collection<IModeledToolOutputParameter> |
getOutputParameters(java.lang.String pName)
Gets all output parameters of the tool context with the specified name.
|
getAttributes, getAttributeValue, getComplexAttributesIExecutionContext getExecutionContext()
IExecutionContext of the currently executed action.IFunctionPackage getFunctionPackage()
ToolDescriptor type.null if it doesn't
exist in the modeljava.util.List<IToolInputParameter> getInputParameters()
See ToolUtility for more methods to obtain specific input
parameters.
IToolInputParameterjava.util.Collection<IToolInputParameter> getInputParameters(java.lang.String pName)
The name can either be the parameter's id attribute of the
toolType extension or the fully qualified id,
starting with the function package ID and ending with the parameter
id.
See ToolUtility for more methods to obtain specific input
parameters.
pName - name of the desired parameter(s)java.util.List<IModeledToolOutputParameter> getOutputParameters()
See ToolUtility for more methods to obtain specific output
parameters.
IModeledToolOutputParameterjava.util.Collection<IModeledToolOutputParameter> getOutputParameters(java.lang.String pName)
The name can either be the parameter's id attribute of the
toolType extension or the fully qualified id,
starting with the function package ID and ending with the parameter
id.
See ToolUtility for more methods to obtain specific output
parameters.
pName - name of the desired parameter(s)ToolDescriptor getModelObject()
IDynamicObjectgetModelObject in interface IDynamicObjectCopyright © 2015 Micro Focus GmbH. All rights reserved.