|
|||||||||
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.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.Dispatch
IOException
public void removeListener(String iidStr, Object theListener) throws IOException
removeListener
in class com.esri.arcgis.interop.Dispatch
IOException
public int getMessageCount() throws IOException, AutomationException
getMessageCount
in interface IGpDispatch
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public String getMessage(int index) throws IOException, AutomationException
getMessage
in interface IGpDispatch
index
- 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 IGpDispatch
index
- 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 IGpDispatch
index
- 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 IGpDispatch
severity
- 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 IGpDispatch
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void addMessage(String message) throws IOException, AutomationException
addMessage
in interface IGpDispatch
message
- 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 IGpDispatch
message
- 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 IGpDispatch
message
- 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 IGpDispatch
index
- 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 IGpDispatch
code
- 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 IGpDispatch
code
- 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 IGpDispatch
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public String checkOutExtension(String extension) throws IOException, AutomationException
checkOutExtension
in interface IGpDispatch
extension
- 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 IGpDispatch
extension
- 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 IGpDispatch
extension
- 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 IGpDispatch
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public String getParameterAsText(int index) throws IOException, AutomationException
getParameterAsText
in interface IGpDispatch
index
- 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 IGpDispatch
index
- 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 IGpDispatch
from
- 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 IGpDispatch
pWildcard
- 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 IGpDispatch
pWildcard
- 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 IGpDispatch
pWildcard
- 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 IGpDispatch
toolbox
- 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 IGpDispatch
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void addToolbox(String toolbox) throws IOException, AutomationException
addToolbox
in interface IGpDispatch
toolbox
- 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 IGpDispatch
toolbox
- 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 IGpDispatch
envName
- 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 IGpDispatch
commandLine
- 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 IGpDispatch
method
- 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 IGpDispatch
pInputValue
- 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 IGpDispatch
pInputValue
- 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 IGpDispatch
wildCard
- 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 IGpDispatch
wildCard
- 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 IGpDispatch
wildCard
- 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 IGpDispatch
wildCard
- 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 IGpDispatch
wildCard
- 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 IGpDispatch
pInputValue
- 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 IGpDispatch
pInputValue
- 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 IGpDispatch
pInputValue
- 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 IGpDispatch
pInputValue
- 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 IGpDispatch
pInputValue
- 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 IGpDispatch
pInputValue
- 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 IGpDispatch
pObjectName
- 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 IGpDispatch
seed
- 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 IGpDispatch
overwriteOutput
- 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 IGpDispatch
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void setLogHistory(boolean logHistory) throws IOException, AutomationException
setLogHistory
in interface IGpDispatch
logHistory
- 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 IGpDispatch
IOException
- 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 IGpDispatch
inputFieldName
- 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 IGpDispatch
inputTableName
- 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 IGpDispatch
inputFieldName
- 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 IGpDispatch
inputTableName
- 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 IGpDispatch
inputFieldName
- 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 IGpDispatch
inputTableName
- 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 IGpDispatch
prefix
- 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 IGpDispatch
inputTableName
- 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 IGpDispatch
fileName
- 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 IGpDispatch
fileName
- 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 IGpDispatch
fileName
- 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 IGpDispatch
env
- 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 IGpDispatch
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 |