| 
 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.esri.arcgis.interop.Dispatch
com.esri.arcgis.geoprocessing.IGPToolboxProxy
public class IGPToolboxProxy
Provides access to methods on the toolbox object.
A toolbox is a persistent entity that can contain toolsets and geoprocessing tools. It takes the form of a .tbx file on disk or a table in a geodatabase.
In a geodatabase, each toolbox must have a unique name. Note that this is different from a file system model, where two folders can contain toolboxes with the same local name within the folder.
The IGPToolbox interface provides access to methods for creating new tools, opening tools, checking existence of tools, as well discovering the names of tools in a given toolbox.
| Field Summary | |
|---|---|
|  boolean | noncastable | 
| Fields inherited from class com.esri.arcgis.interop.Dispatch | 
|---|
| DISPATCH_METHOD, DISPATCH_PROPERTYGET, DISPATCH_PROPERTYPUT, DISPATCH_PROPERTYPUTREF, objRef | 
| Constructor Summary | |
|---|---|
|   | IGPToolboxProxy() | 
|   | IGPToolboxProxy(Object obj) | 
| protected  | IGPToolboxProxy(Object obj,
                String iid) | 
| Method Summary | |
|---|---|
|  void | addListener(String iidStr,
            Object theListener,
            Object theSource) | 
|  void | alterAlias(String newAlias)Changes the alias of the toolbox. | 
|  void | alterHelpInfo(String file,
              int context)Sets the help (CHM) file and help context identifier containing help for this toolbox. | 
|  boolean | canCreateTool()Returns whether or not a new tool can be created in the toolbox. | 
|  IGPTool | createTool(int type,
           String name,
           String displayName,
           String description,
           String toolCategory,
           IGPToolExtension toolExtension)Creates a new tool in the toolbox. | 
|  String | getAlias()The alias of the toolbox, used when referencing a tool: name_alias. | 
|  int | getHelpContext()The context identifier of the topic within the help file for this toolbox. | 
|  String | getHelpFile()The name of the (CHM) file containing help information for this toolbox. | 
|  String | getPathName()The path name to the toolbox. | 
|  IEnumGPToolName | getToolNames()An enumeration of all the geoprocessing tool name objects contained within the toolbox. | 
|  IEnumGPTool | getTools()An enumeration of all the geoprocessing tools contained within the toolbox. | 
|  boolean | isDeleted()Indicates if the toolbox has been deleted. | 
|  IGPTool | openTool(String name)Returns a specific tool (by name) within the toolbox. | 
|  void | removeListener(String iidStr,
               Object theListener) | 
| 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 IGPToolboxProxy()
public IGPToolboxProxy(Object obj)
                throws IOException
IOException
protected IGPToolboxProxy(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.DispatchIOException
public void removeListener(String iidStr,
                           Object theListener)
                    throws IOException
removeListener in class com.esri.arcgis.interop.DispatchIOException
public String getPathName()
                   throws IOException,
                          AutomationException
getPathName in interface IGPToolboxIOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public String getAlias()
                throws IOException,
                       AutomationException
getAlias in interface IGPToolboxIOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public IEnumGPToolName getToolNames()
                             throws IOException,
                                    AutomationException
getToolNames in interface IGPToolboxIOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public IEnumGPTool getTools()
                     throws IOException,
                            AutomationException
getTools in interface IGPToolboxIOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public IGPTool openTool(String name)
                 throws IOException,
                        AutomationException
openTool in interface IGPToolboxname - The name  (in)
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public boolean isDeleted()
                  throws IOException,
                         AutomationException
isDeleted in interface IGPToolboxIOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public boolean canCreateTool()
                      throws IOException,
                             AutomationException
canCreateTool in interface IGPToolboxIOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public IGPTool createTool(int type,
                          String name,
                          String displayName,
                          String description,
                          String toolCategory,
                          IGPToolExtension toolExtension)
                   throws IOException,
                          AutomationException
createTool in interface IGPToolboxtype - A com.esri.arcgis.geoprocessing.esriGPToolType constant  (in)name - The name  (in)displayName - The displayName  (in)description - The description  (in)toolCategory - The toolCategory  (in)toolExtension - A reference to a com.esri.arcgis.geoprocessing.IGPToolExtension  (in)
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public void alterAlias(String newAlias)
                throws IOException,
                       AutomationException
alterAlias in interface IGPToolboxnewAlias - The newAlias  (in)
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public String getHelpFile()
                   throws IOException,
                          AutomationException
getHelpFile in interface IGPToolboxIOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public int getHelpContext()
                   throws IOException,
                          AutomationException
getHelpContext in interface IGPToolboxIOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public void alterHelpInfo(String file,
                          int context)
                   throws IOException,
                          AutomationException
alterHelpInfo in interface IGPToolboxfile - The file  (in)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 | ||||||||