|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
public interface IGPTool
Provides access to methods on a geoprocessing tool object.
There are three types of geoprocessing tools: a GPModelTool, a GPScriptTool, and a GPFunctionTool. Geoprocessing tools will take a set of inputs and generate one or more outputs. A generic GPTool object is obtained from a toolbox, with OpenTool method of IGPToolbox interface.
The GPTool object contains properties that provide access to a tool's name, its help file, and license status. The arguments to the tool are made up of an array of parameter (IGPParameter) or value (IGPValue) objects . The array of parameter objects is created by using the parameterInfo property.
The GPTool object also contains methods for validating the parameters and executing the tool.
| Method Summary | |
|---|---|
boolean |
canAlter()
Returns whether or not the properties of the tool can be modified. |
boolean |
canEditSource()
Returns whether or not the source (i.e., definition) of the tool can be modified. |
boolean |
editProperties(int hParent,
IGPEnvironmentManager gPEnvMgr)
Presents a modal dialog to edit the tool's properties. |
void |
execute(IArray paramvalues,
ITrackCancel trackCancel,
IGPEnvironmentManager pEnvMgr,
IGPMessages messages)
Executes the tool with the given set of values. |
String |
getDescription()
The description of the tool. |
IUID |
getDialogCLSID()
The class identifier of the custom dialog to use for this tool. |
String |
getDisplayName()
The display name of the tool. |
int |
getHelpContext()
The context identifier of the topic within the help file for this tool. |
String |
getHelpFile()
Name of the (CHM) file containing help information for this tool. |
String |
getName()
The name of the tool. |
IArray |
getParameterInfo()
The set of parameters required to execute the tool. |
String |
getPathName()
The path of the tool object. |
Object |
getRenderer(IGPParameter pParam)
Returns the renderer associated with the specified parameter. |
IGPToolbox |
getToolbox()
The toolbox of the tool. |
String |
getToolCategory()
The tool category. |
int |
getToolType()
The type of tool. |
boolean |
isDeleted()
Indicates if the tool has been deleted. |
boolean |
isLicensed()
Returns whether the tool is licensed to be executed. |
boolean |
isLicensedForProduct()
Returns whether the tool is part of the current product. |
boolean |
isRelativePaths()
Indicates if path names are stored relative to the tool/toolbox. |
boolean |
isValid()
Returns whether the tool is capable of being executed/edited. |
void |
setDescription(String description)
The description of the tool. |
void |
setDisplayName(String displayName)
The display name of the tool. |
void |
setHelpContext(int context)
The context identifier of the topic within the help file for this tool. |
void |
setHelpFile(String file)
Name of the (CHM) file containing help information for this tool. |
void |
setName(String displayName)
The name of the tool. |
void |
setRelativePaths(boolean relPaths)
Indicates if path names are stored relative to the tool/toolbox. |
void |
setToolCategory(String category)
The tool category. |
void |
store()
Stores the current state of the tool to the toolbox. |
IGPMessages |
validate(IArray paramvalues,
boolean updateValues,
IGPEnvironmentManager pEnvMgr)
Validates the given set of values. |
| Method Detail |
|---|
String getName()
throws IOException,
AutomationException
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
void setName(String displayName)
throws IOException,
AutomationException
displayName - The displayName (in)
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
String getDisplayName()
throws IOException,
AutomationException
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
void setDisplayName(String displayName)
throws IOException,
AutomationException
displayName - The displayName (in)
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
String getDescription()
throws IOException,
AutomationException
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
void setDescription(String description)
throws IOException,
AutomationException
description - The description (in)
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
String getToolCategory()
throws IOException,
AutomationException
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
void setToolCategory(String category)
throws IOException,
AutomationException
category - The category (in)
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
IGPToolbox getToolbox()
throws IOException,
AutomationException
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
int getToolType()
throws IOException,
AutomationException
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
boolean isValid()
throws IOException,
AutomationException
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
boolean isLicensedForProduct()
throws IOException,
AutomationException
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
boolean isLicensed()
throws IOException,
AutomationException
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
boolean isDeleted()
throws IOException,
AutomationException
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
boolean canAlter()
throws IOException,
AutomationException
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
boolean canEditSource()
throws IOException,
AutomationException
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
IArray getParameterInfo()
throws IOException,
AutomationException
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
IUID getDialogCLSID()
throws IOException,
AutomationException
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
void store()
throws IOException,
AutomationException
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
IGPMessages validate(IArray paramvalues,
boolean updateValues,
IGPEnvironmentManager pEnvMgr)
throws IOException,
AutomationException
paramvalues - A reference to a com.esri.arcgis.system.IArray (in)updateValues - The updateValues (in)pEnvMgr - A reference to a com.esri.arcgis.geoprocessing.IGPEnvironmentManager (in)
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
void execute(IArray paramvalues,
ITrackCancel trackCancel,
IGPEnvironmentManager pEnvMgr,
IGPMessages messages)
throws IOException,
AutomationException
paramvalues - A reference to a com.esri.arcgis.system.IArray (in)trackCancel - A reference to a com.esri.arcgis.system.ITrackCancel (in)pEnvMgr - A reference to a com.esri.arcgis.geoprocessing.IGPEnvironmentManager (in)messages - A reference to a com.esri.arcgis.geodatabase.IGPMessages (in)
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
boolean editProperties(int hParent,
IGPEnvironmentManager gPEnvMgr)
throws IOException,
AutomationException
hParent - The hParent (A COM typedef) (in)gPEnvMgr - A reference to a com.esri.arcgis.geoprocessing.IGPEnvironmentManager (in)
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
Object getRenderer(IGPParameter pParam)
throws IOException,
AutomationException
pParam - A reference to a com.esri.arcgis.geoprocessing.IGPParameter (in)
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
String getPathName()
throws IOException,
AutomationException
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
boolean isRelativePaths()
throws IOException,
AutomationException
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
void setRelativePaths(boolean relPaths)
throws IOException,
AutomationException
relPaths - The relPaths (in)
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
String getHelpFile()
throws IOException,
AutomationException
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
void setHelpFile(String file)
throws IOException,
AutomationException
file - The file (in)
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
int getHelpContext()
throws IOException,
AutomationException
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
void setHelpContext(int context)
throws IOException,
AutomationException
context - The context (in)
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||