|
|||||||||
| 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.IGpDispatchProxy
public class IGpDispatchProxy
Provides access to the properties and methods of a Geoprocessor object.
The GPDispatch object is a coarse grainded ArcObject that permits geoprocessing tools and environments to be used in a scripting language. This object supports the COM IDispatch object. This object may also be used in COM-compliant languages such as Visual Basic for Applications (VBA), and Visual Basic. With ArcGIS 9.2, you are now recommended to use the new Geoprocessor class.
| Field Summary | |
|---|---|
boolean |
noncastable
|
| Fields inherited from class com.esri.arcgis.interop.Dispatch |
|---|
DISPATCH_METHOD, DISPATCH_PROPERTYGET, DISPATCH_PROPERTYPUT, DISPATCH_PROPERTYPUTREF, objRef |
| Constructor Summary | |
|---|---|
|
IGpDispatchProxy()
|
|
IGpDispatchProxy(Object obj)
|
protected |
IGpDispatchProxy(Object obj,
String iid)
|
| Method Summary | |
|---|---|
void |
addError(String message)
Sets the output error message. |
void |
addListener(String iidStr,
Object theListener,
Object theSource)
|
void |
addMessage(String message)
Sets the output message. |
void |
addReturnMessage(int index)
Sets the return message as an output message by index. |
void |
addToolbox(String toolbox)
Add the toolbox to the current session. |
void |
addWarning(String message)
Sets the output warning message. |
String |
checkExtension(String extension)
Checks the status of a product extension. |
String |
checkInExtension(String extension)
Checks in a product extension. |
String |
checkOutExtension(String extension)
Checks out a product extension. |
String |
checkProduct(String code)
Check the status of a license code. |
void |
clearEnvironment(String env)
Clears the value of a given environment. |
String |
command(String commandLine)
executes the given command line. |
void |
copyParameter(int from,
int to)
Copy given tool parameter to another. |
Object |
createObject(Object pObjectName,
Object pExtraArg)
Creates a geoprocessing object that can be used in a scripting environment. |
Object |
createRandomValueGenerator(int seed,
String distributionType)
Creates a geoprocessing random number generator object that can be used to generate random numbers. |
String |
createScratchName(Object prefix,
Object suffix,
Object dataType,
Object workspace)
Creates a scratch name for the given workspace. |
String |
createUniqueName(String inputTableName,
Object workspace)
Creates a unique name for the given workspace. |
Object |
describe(Object pInputValue,
Object dataType)
Returns a descriptor object describing the properties of the specified data element. |
boolean |
exists(Object pInputValue,
Object dataType)
Checks if a data element exists. |
int |
getMaxSeverity()
The maximum severity of the return messages. |
String |
getMessage(int index)
Gets the return message by index. |
int |
getMessageCount()
The number of returned messages. |
String |
getMessages(Object severity)
Gets all the return messages. |
String |
getParameterAsText(int index)
Gets given tool parameter as text. |
int |
getParameterCount()
The number of input tool parameters. |
int |
getReturnCode(int index)
Gets the return code by index. |
int |
getSeverity(int index)
Gets the return severity by index. |
String |
getSystemEnvironment(String envName)
Gets the given system environment. |
String |
getToolbox()
Sets the current (default) toolbox. |
Object |
insertCursor(Object pInputValue,
Object spRef)
Returns an insert cursor object against the given table/feature class. |
boolean |
isLogHistory()
Indicates whether or not operations are logged or not. |
boolean |
isOverwriteOutput()
Indicates whether or not outputs should be overwritten. |
Object |
listDatasets(Object wildCard,
Object featureType)
Returns a collection of datasets in the current workspace based on a query string and type. |
Object |
listEnvironments(Object pWildcard)
Gets list of GeoProcessor Environments. |
Object |
listFeatureClasses(Object wildCard,
Object featureType,
Object dataset)
Returns a collection of feature classes in the current workspace or optional dataset, based on a query string and type. |
Object |
listFields(Object pInputValue,
Object wildCard,
Object fieldType)
Returns a collection of fields in the given table/feature class based on a query string and type. |
Object |
listIndexes(Object pInputValue,
Object wildCard)
Returns a collection of indexes in the given table/feature class based on a query string and type. |
Object |
listRasters(Object wildCard,
Object rasterType)
Returns a collection of rasters in the current workspace based on a query string and type. |
Object |
listTables(Object wildCard,
Object tableType)
Returns a collection of tables in the current workspace based on a query string and type. |
Object |
listToolboxes(Object pWildcard)
Gets list of GeoProcessor Toolboxes. |
Object |
listTools(Object pWildcard)
Gets list of GeoProcessor Tools. |
Object |
listWorkspaces(Object wildCard,
Object workspaceType)
Returns a collection of workspaces in the current workspace based on a query string and type. |
void |
loadSettings(String fileName)
Loads the current GeoProcessor environment settings. |
String |
parseFieldName(String inputFieldName,
Object workspace)
Parses a field name into its constituent parts. |
String |
parseTableName(String inputTableName,
Object workspace)
Parses a table name into its constituent parts. |
String |
productInfo()
Gets the product license info. |
String |
qualifyFieldName(String inputFieldName,
Object workspace)
Qualifies a field name for the workspace and connected user. |
String |
qualifyTableName(String inputTableName,
Object workspace)
Qualifies a table name for the workspace and connected user. |
void |
refreshCatalog(Object pInputValue)
Refreshes the parent of the specified object in the catalog object associated with the Geoprocessor. |
void |
removeListener(String iidStr,
Object theListener)
|
void |
removeToolbox(String toolbox)
Remove the toolbox from the current session. |
void |
resetEnvironments()
Tests if a given environments value is set or not. |
void |
saveSettings(String fileName)
Saves the current GeoProcessor environment settings. |
Object |
searchCursor(Object pInputValue,
Object whereClause,
Object spRef,
Object fields,
Object sortFields)
Returns a search cursor object against the given table/feature class. |
void |
setLogHistory(boolean logHistory)
Indicates whether or not operations are logged or not. |
void |
setOverwriteOutput(boolean overwriteOutput)
Indicates whether or not outputs should be overwritten. |
void |
setParameterAsText(int index,
String argument)
Sets given tool parameter as text. |
String |
setProduct(String code)
Sets the license level. |
void |
setToolbox(String toolbox)
Sets the current (default) toolbox. |
String |
testSchemaLock(String fileName)
Tests if an exclusive schema lock is set on a dataset. |
Object |
updateCursor(Object pInputValue,
Object whereClause,
Object spRef,
Object fields,
Object sortFields)
Returns an update cursor object against the given table/feature class. |
String |
usage(String method)
Generates the Usage for a given tool. |
String |
validateFieldName(String inputFieldName,
Object workspace)
Checks a field for compatibility with the workspace. |
String |
validateTableName(String inputTableName,
Object workspace)
Checks a table name for compatibility with the workspace. |
| 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 IGpDispatchProxy()
public IGpDispatchProxy(Object obj)
throws IOException
IOException
protected IGpDispatchProxy(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 int getMessageCount()
throws IOException,
AutomationException
getMessageCount in interface IGpDispatchIOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public String getMessage(int index)
throws IOException,
AutomationException
getMessage in interface IGpDispatchindex - The index (in)
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public int getSeverity(int index)
throws IOException,
AutomationException
getSeverity in interface IGpDispatchindex - The index (in)
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public int getReturnCode(int index)
throws IOException,
AutomationException
getReturnCode in interface IGpDispatchindex - The index (in)
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public String getMessages(Object severity)
throws IOException,
AutomationException
getMessages in interface IGpDispatchseverity - A Variant (in, optional, pass null if not required)
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public int getMaxSeverity()
throws IOException,
AutomationException
getMaxSeverity in interface IGpDispatchIOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public void addMessage(String message)
throws IOException,
AutomationException
addMessage in interface IGpDispatchmessage - The message (in)
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public void addError(String message)
throws IOException,
AutomationException
addError in interface IGpDispatchmessage - The message (in)
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public void addWarning(String message)
throws IOException,
AutomationException
addWarning in interface IGpDispatchmessage - The message (in)
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public void addReturnMessage(int index)
throws IOException,
AutomationException
addReturnMessage in interface IGpDispatchindex - The index (in)
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public String setProduct(String code)
throws IOException,
AutomationException
setProduct in interface IGpDispatchcode - The code (in)
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public String checkProduct(String code)
throws IOException,
AutomationException
checkProduct in interface IGpDispatchcode - The code (in)
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public String productInfo()
throws IOException,
AutomationException
productInfo in interface IGpDispatchIOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public String checkOutExtension(String extension)
throws IOException,
AutomationException
checkOutExtension in interface IGpDispatchextension - The extension (in)
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public String checkInExtension(String extension)
throws IOException,
AutomationException
checkInExtension in interface IGpDispatchextension - The extension (in)
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public String checkExtension(String extension)
throws IOException,
AutomationException
checkExtension in interface IGpDispatchextension - The extension (in)
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public int getParameterCount()
throws IOException,
AutomationException
getParameterCount in interface IGpDispatchIOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public String getParameterAsText(int index)
throws IOException,
AutomationException
getParameterAsText in interface IGpDispatchindex - The index (in)
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public void setParameterAsText(int index,
String argument)
throws IOException,
AutomationException
setParameterAsText in interface IGpDispatchindex - The index (in)argument - The argument (in)
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public void copyParameter(int from,
int to)
throws IOException,
AutomationException
copyParameter in interface IGpDispatchfrom - The from (in)to - The to (in)
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public Object listTools(Object pWildcard)
throws IOException,
AutomationException
listTools in interface IGpDispatchpWildcard - A Variant (in, optional, pass null if not required)
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public Object listEnvironments(Object pWildcard)
throws IOException,
AutomationException
listEnvironments in interface IGpDispatchpWildcard - A Variant (in, optional, pass null if not required)
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public Object listToolboxes(Object pWildcard)
throws IOException,
AutomationException
listToolboxes in interface IGpDispatchpWildcard - A Variant (in, optional, pass null if not required)
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public void setToolbox(String toolbox)
throws IOException,
AutomationException
setToolbox in interface IGpDispatchtoolbox - The toolbox (in)
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public String getToolbox()
throws IOException,
AutomationException
getToolbox in interface IGpDispatchIOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public void addToolbox(String toolbox)
throws IOException,
AutomationException
addToolbox in interface IGpDispatchtoolbox - The toolbox (in)
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public void removeToolbox(String toolbox)
throws IOException,
AutomationException
removeToolbox in interface IGpDispatchtoolbox - The toolbox (in)
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public String getSystemEnvironment(String envName)
throws IOException,
AutomationException
getSystemEnvironment in interface IGpDispatchenvName - The envName (in)
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public String command(String commandLine)
throws IOException,
AutomationException
command in interface IGpDispatchcommandLine - The commandLine (in)
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public String usage(String method)
throws IOException,
AutomationException
usage in interface IGpDispatchmethod - The method (in)
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public boolean exists(Object pInputValue,
Object dataType)
throws IOException,
AutomationException
exists in interface IGpDispatchpInputValue - A Variant (in)dataType - A Variant (in, optional, pass null if not required)
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public void refreshCatalog(Object pInputValue)
throws IOException,
AutomationException
refreshCatalog in interface IGpDispatchpInputValue - A Variant (in)
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public Object listFeatureClasses(Object wildCard,
Object featureType,
Object dataset)
throws IOException,
AutomationException
listFeatureClasses in interface IGpDispatchwildCard - A Variant (in, optional, pass null if not required)featureType - A Variant (in, optional, pass null if not required)dataset - A Variant (in, optional, pass null if not required)
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public Object listDatasets(Object wildCard,
Object featureType)
throws IOException,
AutomationException
listDatasets in interface IGpDispatchwildCard - A Variant (in, optional, pass null if not required)featureType - A Variant (in, optional, pass null if not required)
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public Object listTables(Object wildCard,
Object tableType)
throws IOException,
AutomationException
listTables in interface IGpDispatchwildCard - A Variant (in, optional, pass null if not required)tableType - A Variant (in, optional, pass null if not required)
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public Object listRasters(Object wildCard,
Object rasterType)
throws IOException,
AutomationException
listRasters in interface IGpDispatchwildCard - A Variant (in, optional, pass null if not required)rasterType - A Variant (in, optional, pass null if not required)
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public Object listWorkspaces(Object wildCard,
Object workspaceType)
throws IOException,
AutomationException
listWorkspaces in interface IGpDispatchwildCard - A Variant (in, optional, pass null if not required)workspaceType - A Variant (in, optional, pass null if not required)
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public Object listFields(Object pInputValue,
Object wildCard,
Object fieldType)
throws IOException,
AutomationException
listFields in interface IGpDispatchpInputValue - A Variant (in)wildCard - A Variant (in, optional, pass null if not required)fieldType - A Variant (in, optional, pass null if not required)
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public Object listIndexes(Object pInputValue,
Object wildCard)
throws IOException,
AutomationException
listIndexes in interface IGpDispatchpInputValue - A Variant (in)wildCard - A Variant (in, optional, pass null if not required)
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public Object searchCursor(Object pInputValue,
Object whereClause,
Object spRef,
Object fields,
Object sortFields)
throws IOException,
AutomationException
searchCursor in interface IGpDispatchpInputValue - A Variant (in)whereClause - A Variant (in, optional, pass null if not required)spRef - A Variant (in, optional, pass null if not required)fields - A Variant (in, optional, pass null if not required)sortFields - A Variant (in, optional, pass null if not required)
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public Object updateCursor(Object pInputValue,
Object whereClause,
Object spRef,
Object fields,
Object sortFields)
throws IOException,
AutomationException
updateCursor in interface IGpDispatchpInputValue - A Variant (in)whereClause - A Variant (in, optional, pass null if not required)spRef - A Variant (in, optional, pass null if not required)fields - A Variant (in, optional, pass null if not required)sortFields - A Variant (in, optional, pass null if not required)
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public Object insertCursor(Object pInputValue,
Object spRef)
throws IOException,
AutomationException
insertCursor in interface IGpDispatchpInputValue - A Variant (in)spRef - A Variant (in, optional, pass null if not required)
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public Object describe(Object pInputValue,
Object dataType)
throws IOException,
AutomationException
describe in interface IGpDispatchpInputValue - A Variant (in)dataType - A Variant (in, optional, pass null if not required)
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public Object createObject(Object pObjectName,
Object pExtraArg)
throws IOException,
AutomationException
createObject in interface IGpDispatchpObjectName - A Variant (in)pExtraArg - A Variant (in, optional, pass null if not required)
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public Object createRandomValueGenerator(int seed,
String distributionType)
throws IOException,
AutomationException
createRandomValueGenerator in interface IGpDispatchseed - The seed (in)distributionType - The distributionType (in)
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public void setOverwriteOutput(boolean overwriteOutput)
throws IOException,
AutomationException
setOverwriteOutput in interface IGpDispatchoverwriteOutput - The overwriteOutput (in)
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public boolean isOverwriteOutput()
throws IOException,
AutomationException
isOverwriteOutput in interface IGpDispatchIOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public void setLogHistory(boolean logHistory)
throws IOException,
AutomationException
setLogHistory in interface IGpDispatchlogHistory - The logHistory (in)
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public boolean isLogHistory()
throws IOException,
AutomationException
isLogHistory in interface IGpDispatchIOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public String validateFieldName(String inputFieldName,
Object workspace)
throws IOException,
AutomationException
validateFieldName in interface IGpDispatchinputFieldName - The inputFieldName (in)workspace - A Variant (in, optional, pass null if not required)
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public String validateTableName(String inputTableName,
Object workspace)
throws IOException,
AutomationException
validateTableName in interface IGpDispatchinputTableName - The inputTableName (in)workspace - A Variant (in, optional, pass null if not required)
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public String qualifyFieldName(String inputFieldName,
Object workspace)
throws IOException,
AutomationException
qualifyFieldName in interface IGpDispatchinputFieldName - The inputFieldName (in)workspace - A Variant (in, optional, pass null if not required)
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public String qualifyTableName(String inputTableName,
Object workspace)
throws IOException,
AutomationException
qualifyTableName in interface IGpDispatchinputTableName - The inputTableName (in)workspace - A Variant (in, optional, pass null if not required)
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public String parseFieldName(String inputFieldName,
Object workspace)
throws IOException,
AutomationException
parseFieldName in interface IGpDispatchinputFieldName - The inputFieldName (in)workspace - A Variant (in, optional, pass null if not required)
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public String parseTableName(String inputTableName,
Object workspace)
throws IOException,
AutomationException
parseTableName in interface IGpDispatchinputTableName - The inputTableName (in)workspace - A Variant (in, optional, pass null if not required)
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public String createScratchName(Object prefix,
Object suffix,
Object dataType,
Object workspace)
throws IOException,
AutomationException
createScratchName in interface IGpDispatchprefix - A Variant (in, optional, pass null if not required)suffix - A Variant (in, optional, pass null if not required)dataType - A Variant (in, optional, pass null if not required)workspace - A Variant (in, optional, pass null if not required)
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public String createUniqueName(String inputTableName,
Object workspace)
throws IOException,
AutomationException
createUniqueName in interface IGpDispatchinputTableName - The inputTableName (in)workspace - A Variant (in, optional, pass null if not required)
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public void saveSettings(String fileName)
throws IOException,
AutomationException
saveSettings in interface IGpDispatchfileName - The fileName (in)
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public void loadSettings(String fileName)
throws IOException,
AutomationException
loadSettings in interface IGpDispatchfileName - The fileName (in)
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public String testSchemaLock(String fileName)
throws IOException,
AutomationException
testSchemaLock in interface IGpDispatchfileName - The fileName (in)
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public void clearEnvironment(String env)
throws IOException,
AutomationException
clearEnvironment in interface IGpDispatchenv - The env (in)
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public void resetEnvironments()
throws IOException,
AutomationException
resetEnvironments in interface IGpDispatchIOException - 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 | ||||||||