|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.esri.arcgis.interop.Dispatch com.esri.arcgis.geoprocessing.IGPToolProxy
public class IGPToolProxy
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.
Field Summary | |
---|---|
boolean |
noncastable
|
Fields inherited from class com.esri.arcgis.interop.Dispatch |
---|
DISPATCH_METHOD, DISPATCH_PROPERTYGET, DISPATCH_PROPERTYPUT, DISPATCH_PROPERTYPUTREF, objRef |
Constructor Summary | |
---|---|
|
IGPToolProxy()
|
|
IGPToolProxy(Object obj)
|
protected |
IGPToolProxy(Object obj,
String iid)
|
Method Summary | |
---|---|
void |
addListener(String iidStr,
Object theListener,
Object theSource)
|
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 |
removeListener(String iidStr,
Object theListener)
|
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. |
Methods inherited from class com.esri.arcgis.interop.Dispatch |
---|
bindUsingMoniker, constructVtblPosTable, convertToNative, cookieForListener, createDispatch, createObjrefMonikerDisplayName, equals, getActiveObject, getActiveObject, getDefaultProperty, getDispatchIdOfName, getLastErrorCode, getMtsObjectContext, getObjRef, getPropertyByName, getPropertyByName, getVtblPos, hashCode, initDispatch, invoke, invokeMethodByName, invokeMethodByName, invokeMethodByName, invokePropertyGetByName, invokePropertyPutByName, invokePropertyPutByRefByName, isNativeMode, isObjRef, optimizedVtblInvoke, queryInterface, readExternal, release, setNativeMode, setPropertyByName, toString, vtblInvoke, writeExternal |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public boolean noncastable
Constructor Detail |
---|
public IGPToolProxy()
public IGPToolProxy(Object obj) throws IOException
IOException
protected IGPToolProxy(Object obj, String iid) throws IOException
IOException
Method Detail |
---|
public void addListener(String iidStr, Object theListener, Object theSource) throws IOException
addListener
in class com.esri.arcgis.interop.Dispatch
IOException
public void removeListener(String iidStr, Object theListener) throws IOException
removeListener
in class com.esri.arcgis.interop.Dispatch
IOException
public String getName() throws IOException, AutomationException
getName
in interface IGPTool
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void setName(String displayName) throws IOException, AutomationException
setName
in interface IGPTool
displayName
- The displayName (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public String getDisplayName() throws IOException, AutomationException
getDisplayName
in interface IGPTool
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void setDisplayName(String displayName) throws IOException, AutomationException
setDisplayName
in interface IGPTool
displayName
- The displayName (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public String getDescription() throws IOException, AutomationException
getDescription
in interface IGPTool
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void setDescription(String description) throws IOException, AutomationException
setDescription
in interface IGPTool
description
- The description (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public String getToolCategory() throws IOException, AutomationException
getToolCategory
in interface IGPTool
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void setToolCategory(String category) throws IOException, AutomationException
setToolCategory
in interface IGPTool
category
- The category (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public IGPToolbox getToolbox() throws IOException, AutomationException
getToolbox
in interface IGPTool
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public int getToolType() throws IOException, AutomationException
getToolType
in interface IGPTool
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public boolean isValid() throws IOException, AutomationException
isValid
in interface IGPTool
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public boolean isLicensedForProduct() throws IOException, AutomationException
isLicensedForProduct
in interface IGPTool
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public boolean isLicensed() throws IOException, AutomationException
isLicensed
in interface IGPTool
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public boolean isDeleted() throws IOException, AutomationException
isDeleted
in interface IGPTool
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public boolean canAlter() throws IOException, AutomationException
canAlter
in interface IGPTool
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public boolean canEditSource() throws IOException, AutomationException
canEditSource
in interface IGPTool
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public IArray getParameterInfo() throws IOException, AutomationException
getParameterInfo
in interface IGPTool
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public IUID getDialogCLSID() throws IOException, AutomationException
getDialogCLSID
in interface IGPTool
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void store() throws IOException, AutomationException
store
in interface IGPTool
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public IGPMessages validate(IArray paramvalues, boolean updateValues, IGPEnvironmentManager pEnvMgr) throws IOException, AutomationException
validate
in interface IGPTool
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.public void execute(IArray paramvalues, ITrackCancel trackCancel, IGPEnvironmentManager pEnvMgr, IGPMessages messages) throws IOException, AutomationException
execute
in interface IGPTool
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.public boolean editProperties(int hParent, IGPEnvironmentManager gPEnvMgr) throws IOException, AutomationException
editProperties
in interface IGPTool
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.public Object getRenderer(IGPParameter pParam) throws IOException, AutomationException
getRenderer
in interface IGPTool
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.public String getPathName() throws IOException, AutomationException
getPathName
in interface IGPTool
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public boolean isRelativePaths() throws IOException, AutomationException
isRelativePaths
in interface IGPTool
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void setRelativePaths(boolean relPaths) throws IOException, AutomationException
setRelativePaths
in interface IGPTool
relPaths
- The relPaths (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public String getHelpFile() throws IOException, AutomationException
getHelpFile
in interface IGPTool
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void setHelpFile(String file) throws IOException, AutomationException
setHelpFile
in interface IGPTool
file
- The file (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public int getHelpContext() throws IOException, AutomationException
getHelpContext
in interface IGPTool
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void setHelpContext(int context) throws IOException, AutomationException
setHelpContext
in interface IGPTool
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 |