public abstract class AbstractToolContext extends java.lang.Object implements IToolContext
IToolContext. Handles
IToolParameters to be created and added to the context depending of
isPartOfContext(RToolParameter).| Constructor and Description |
|---|
AbstractToolContext(ToolDescriptor pToolDescriptor,
IExecutionContext pContext)
Creates a tool context.
|
| 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.
|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetAttributes, getAttributeValue, getComplexAttributespublic AbstractToolContext(ToolDescriptor pToolDescriptor, IExecutionContext pContext)
Note: createParameters(ToolDescriptor, IExecutionContext)
must be called manually after initializing the abstract tool context.
pToolDescriptor - the tool descriptorpContext - execution contextpublic IFunctionPackage getFunctionPackage()
IToolContextToolDescriptor type.getFunctionPackage in interface IToolContextnull if it doesn't
exist in the modelpublic ToolDescriptor getModelObject()
IDynamicObjectgetModelObject in interface IDynamicObjectgetModelObject in interface IToolContextpublic IExecutionContext getExecutionContext()
IToolContextIExecutionContext of the currently executed action.getExecutionContext in interface IToolContextpublic java.util.Collection<IToolInputParameter> getInputParameters(java.lang.String pName)
IToolContext
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.
getInputParameters in interface IToolContextpName - name of the desired parameter(s)public java.util.List<IToolInputParameter> getInputParameters()
IToolContext
See ToolUtility for more methods to obtain specific input
parameters.
getInputParameters in interface IToolContextIToolInputParameterpublic java.util.List<IModeledToolOutputParameter> getOutputParameters()
IToolContext
See ToolUtility for more methods to obtain specific output
parameters.
getOutputParameters in interface IToolContextIModeledToolOutputParameterpublic java.util.Collection<IModeledToolOutputParameter> getOutputParameters(java.lang.String pName)
IToolContext
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.
getOutputParameters in interface IToolContextpName - name of the desired parameter(s)Copyright © 2015 Micro Focus GmbH. All rights reserved.