com.esri.arcgis.geoprocessing
Class GPUtilities

java.lang.Object
  extended by com.esri.arcgis.geoprocessing.GPUtilities
All Implemented Interfaces:
IGPMessageManager, IGPUtilities, IGPUtilities2, IGPUtilities3, com.esri.arcgis.interop.RemoteObjRef, java.io.Serializable

public class GPUtilities
extends java.lang.Object
implements com.esri.arcgis.interop.RemoteObjRef, IGPUtilities, IGPUtilities2, IGPUtilities3, IGPMessageManager

COM Class 'GPUtilities'. Generated 3/19/2015 1:20:44 PM from 'C:\ArcGIS\COM\esriGeoprocessing.olb'

Description 'Helper object with common geoprocessing utility methods.' Generator Options: PromptForTypeLibraries = False ClashPrefix = esri_ LowerCaseMemberNames = True IDispatchOnly = False RetryOnReject = False AwtForOcxs = True ArraysAsObjects = False DontRenameSameMethods = False ImplementConflictingInterfaces = True ReuseMethods = True RenameConflictingInterfaceMethods = True GenBeanInfo = True GenerateJavadoc =

See Also:
Serialized Form

Field Summary
 
Fields inherited from interface com.esri.arcgis.geoprocessing.IGPUtilities3
IID, IIDeafc0938_c62e_43d5_b9ca_cb0045155860, xxDummy
 
Fields inherited from interface com.esri.arcgis.geoprocessing.IGPUtilities2
IIDd57e3b9b_5481_4f28_9f31_f0b8756b53b9
 
Fields inherited from interface com.esri.arcgis.geoprocessing.IGPUtilities
IID32f06b8f_a395_4f4e_b24f_52bbef06a036
 
Fields inherited from interface com.esri.arcgis.geodatabase.IGPMessageManager
IID, IIDa440ec5f_34b5_45b3_bcd1_ae631cf84214, xxDummy
 
Constructor Summary
GPUtilities()
          Constructs a GPUtilities using ArcGIS Engine.
GPUtilities(java.lang.Object obj)
          Deprecated. As of ArcGIS 9.2, replaced by normal Java casts.
GPUtilities theGPUtilities = (GPUtilities) obj;
 
Method Summary
 void abortEditOperation(IWorkspaceEdit pWorkspace)
          Abort edit operation within the application.
 void addInternalLayer(ILayer pLayer)
          Adds a layer object to the geoprocessing utility object.
 void addInternalLayer2(ILayer pLayer, IGPLayer pGPLayer)
          Adds a layer object and geoprocessing layer object to the geoprocessing utility object.
 void addInternalTable(ITable pTable)
          Adds the given table to the utility object's list of tables.
 void addInternalTable2(ITable pTable, IGPTableView pGPTableView)
          Adds the given table to the utility object's list of tables.
 void addMessage(int type, int iD, IGPMessages msgs)
          Add a given message from the message id to the messages object.
 void addMessage1Args(int type, int iD, java.lang.String arg1, IGPMessages msgs)
          Add a given message from the message id to the messages object.
 void addMessage2Args(int type, int iD, java.lang.String arg1, java.lang.String arg2, IGPMessages msgs)
          Add a given message from the message id to the messages object.
 void addMessageText(int type, int iD, java.lang.String msg, IGPMessages msgs)
          Add a given message from the message text to the messages object.
 void addToMap(IGPValue pGPValue, java.lang.String name, boolean temporary, java.lang.Object pUnkRenderer)
          Adds the given geoprocessing value object to the application display.
 void addToMapEx(IGPValue pGPValue, java.lang.String name, boolean temporary, java.lang.Object pUnkRenderer, boolean visible)
          Adds the given geoprocessing value object to the application display.
 boolean canAddToMap()
          Returns whether datasets can be added to the current application display.
 void chainGPMessage(IGPMessage pMsg)
          Chain a given GPMessage.
 void chainMessage(int type, int iD)
          Chain a given message from the message id.
 void chainMessage1Args(int type, int iD, java.lang.String arg1)
          Chain a given message from the message id.
 void chainMessage2Args(int type, int iD, java.lang.String arg1, java.lang.String arg2)
          Chain a given message from the message id.
 void chainMessageText(int type, int iD, java.lang.String msg)
          Chain a given message from the message text.
 void checkForErrors(long fdoError, IGPMessages messages, boolean keepAllErrors)
          Check for any errors in the IErrorInfo structure.
 void cleanupEditSession(boolean abort)
          Cleans up any edit session.
 void clearInMemoryWorkspace()
          Clear the virtual workspace.
 boolean compareWildCard(java.lang.String wildCard, java.lang.String data)
          Returns whether the given string satisfies the given wildcard string.
 void copy(IGPValue pSourceGPValue, IGPValue pTargetGPValue)
          Copies the object referred to by the given geoprocessing value object.
 IDataElement createDataElement(java.lang.String catalogPath, IGPDataType pDataType, java.lang.String optionalWorkspace)
          Creates a new data element object from the catalog object specified by the given path, data type, and optional workspace.
 IName createFeatureClassName(java.lang.String catalogPath)
          Creates a feature class name object from the given catalog path.
 IGPValue createFeatureLayer(java.lang.String catalogPath)
          Creates a geoprocessing feature layer object from the catalog path.
 IGPValue createParameterValue(java.lang.String text, IGPDataType pDataType, int direction)
          Creates a geoprocessing value object of the given data type from the given string.
 IName createParentFromCatalogPath(java.lang.String catalogPath)
          Returns a name object corresponding to the parent object of the specified catalog path.
 IName createRasterCatalogName(java.lang.String catalogPath)
          Creates a raster catalog name object from the given catalog path.
 IName createRasterDatasetName(java.lang.String catalogPath)
          Creates a raster dataset name object from the given catalog path.
 IName createTableName(java.lang.String catalogPath)
          Creates a table name object from the given catalog path.
 void createToolboxFromFactory(java.lang.String alias, java.lang.String location, java.lang.String toolboxName)
          Creates a toolbox at the given location for a function factory of a given alias.
 IDETable decodeDETable(IGPValue pValue)
          Returns the table data element specified by the given geoprocessing value object.
 void decodeFeatureLayer(IGPValue pValue, IFeatureClass[] ppFC, IQueryFilter[] ppQF)
          Returns the feature class and query filter specified by the given geoprocessing value object.
 ILayer decodeLayer(IGPValue pValue)
          Returns the layer object specified by the given geoprocessing value object.
 IRaster decodeRaster(IGPValue pValue)
          Returns the raster specified by the given geoprocessing value object.
 void decodeRasterLayer(IGPValue pValue, IRasterDataset[] ppRD)
          Returns the raster dataset specified by the given geoprocessing value object.
 IStandaloneTable decodeStandaloneTable(IGPValue pValue)
          Returns the standalone table object specified by the given geoprocessing value object.
 void decodeTableView(IGPValue pValue, ITable[] ppTable, IQueryFilter[] ppQF)
          Returns the table and query filter specified by the given geoprocessing value object.
 void delete(IGPValue pGPValue)
          Deletes the object referred to by the given geoprocessing value object.
 boolean equals(java.lang.Object o)
          Compare this object with another
 boolean exists(IGPValue pGPValue)
          Returns whether the object referred to by the given geoprocessing value object exists.
 void expandDataElement(IDataElement pInDE, IDEBrowseOptions pExpandOptions)
          Expands the properties of the given data element according to the given expand options.
 void exportFeatureClass(IDataElement pSourceDataElement, IDataElement pTargetDataElement)
          Exports the given feature class to a new feature class.
 boolean fieldExists(IGPValue pGPValue, IField pField)
          Returns whether the given field exists within the given geoprocessing value object.
 IField findField(IGPValue pGPValue, java.lang.String name)
          Returns the field object with the specified name in the given geoprocessing value object.
 ILayer findMapLayer(java.lang.String name)
          Returns a layer with the given name.
 IGPLayer findMapLayer2(java.lang.String name, ILayer[] ppLayer)
          Returns a layer and geoprocessing layer with the given name.
 ITable findMapTable(java.lang.String name)
          Locates a table with the specified name.
 IGPTableView findMapTable2(java.lang.String name, ITable[] ppTable)
          Locates a table with the specified name and returns the table and geoprocessing table view objects.
 IGPValue generateDefaultOutputValue(IGPEnvironmentManager pEnvMgr, java.lang.String functionname, IGPParameter pOutputParam, IGPValue pInputValue, java.lang.String extension, int outputFileBaseLimit)
          Generates the default output value and sets its path to an unique name.
 void generateGeographicTransformDomain(java.lang.Object iUnk, IGPCodedValueDomain pGTDomain, ISpatialReference pInSR, ISpatialReference pOutSR, IGPMessages pMessages)
          Generate the matching geographic transform domain from an input spatial reference to an output spatial reference.
 java.lang.String generateMessage(int type, int iD)
          Generate a given message from the message id.
 void generateSpRef(IArray pInputTables, ITable pOverlayTable, double growExtentBy, ISpatialReference[] ppSpRef, IEnvelope[] ppExtent, boolean[] pHasMs, double[] pMMin, double[] pMMax, boolean[] pHasZs, double[] pZMin, double[] pZMax)
          Generates a new spatial reference object.
 IActiveView getActiveView()
          Get active view.
 IBasicMap getBasicMap()
          Gets the basic map associated with the application.
 java.lang.Object getCatalog()
          Returns the catalog object shared between geoprocessing operations.
static java.lang.String getClsid()
          getClsid.
 IGPEnvironment getEnvironment(IArray pEnvironments, java.lang.String name)
          Locates a geoprocessing environment with the given name in the given array.
 IEnvelope getExtent(IGPValue pValue, int[] envType)
          Gets the type and value of extent of the given value.
 IFields getFields(IGPValue pValue)
          Returns a collection of field objects contained in the given geoprocessing value object.
 IEnumGPValue getGPLayers()
          Returns an enumeration of current geoprocessing layers.
 IEnumGPValue getGPMapData()
          Returns an enumeration of geoprocessing data.
 ISpatialReference getGPSpRefEnv(IGPEnvironmentManager pEnvMgr, ISpatialReference pSrcSpRef, IEnvelope pNewExtent, double newMMin, double newMMax, double newZMin, double newZMax, java.lang.Object pWkspFDS)
          Creates the spatial reference from both a source and environment.
 ISpatialReference getGPSpRefEnvEx(IGPEnvironmentManager pEnvMgr, ISpatialReference pSrcSpRef, ISpatialReference pTgtSpRef, IEnvelope pNewExtent, double newMMin, double newMMax, double newZMin, double newZMax, java.lang.Object pWkspFDS)
          Creates the spatial reference from both a source and environment.
 IEnumGPValue getGPTableViews()
          Returns an enumeration of geoprocessing table views.
 void getGTOperationSet(IGPValue pGTs, ISpatialReference pInSR, ISpatialReference pOutSR, ICompositeGeoTransformation ppGTs)
          Gets the set of geographic transformations.
 java.lang.Object getGxObject(IDataElement pDataElement)
          Returns the catalog object corresponding to the given data element.
 java.lang.Object getGxObjectFromLocation(java.lang.String catalogPath)
          Returns the catalog object from the given catalog path.
 IArray getGxObjects(java.lang.String catalogPath)
          Returns an array of all catalog objects which correspond to the catalog path.
 IWorkspace getInMemoryWorkspace()
          Get the virtual workspace.
 com.esri.arcgis.interop.Dispatch getJintegraDispatch()
          Deprecated. Internal use only.
 java.lang.String getLayerName(IGPValue pValue, java.lang.String name)
          Get default layer name for given value.
 IMap getMap()
          Gets the map associated with the application.
 IEnumLayer getMapLayers()
          Returns an enumeration of the current layers in the application.
 IEnumTable getMapTables()
          Returns an enumeration of standalone tables in the current map.
 java.lang.String getMessage(int iD)
          Get a given message.
 IName getNameObject(IDataElement pDataElement)
          Returns a name object corresponding to the object referred to by the given data element.
 IName getNameObjectFromLocation(java.lang.String locationMoniker)
          Returns a name object corresponding to the object by the location moniker.
 IStatusBar getStatusBar()
          Gets the status bar associated with the application.
 java.lang.String getUnQualifiedCatalogPath(IGPValue pValue)
          Returns the unqualified path by striping the GDBs database and user names.
 IGPVariableManager getVariableManager()
          Sets the Variable Manager.
 java.lang.String getWorkspace()
          Sets the path to the current workspace.
 int hashCode()
          the hashcode for this object
 boolean inApplication()
          Indicates if the program is running in an ArcGIS applicaiton.
 IGPMessages internalValidate(IArray pParameters, IArray pParamValues, boolean updateValues, boolean honorDerivedFlag, IGPEnvironmentManager pEnvMgr)
          Performs a validation of the parameters to a GPTool.
 void internalValidateValue(IGPParameter pParameter, java.lang.Object pValue, boolean updateValue, boolean honorDerivedFlag, IGPEnvironmentManager pEnvMgr, IGPMessage pMessage)
          Performs a validation of the a single parameter to a GPTool.
 boolean isBadMessage(IGPMessages pMessages, int index)
          Tests if a given message within an array of messages is bad.
 boolean isDatasetType(java.lang.Object pUnknown)
          Returns whether the given object is a dataset.
 boolean isDerived(java.lang.Object pInput)
          Returns whether the given variable or parameter is derived.
 boolean isGPTableView(IGPValue pValue)
          Returns test if a geoprocessing table views is in fact a table and not from a layer.
 boolean isRefreshCatalogParent()
          Returns whether catalog objects, used by the shared catalog object, are refreshed during geoprocessing operations.
 void lookForGPChainedErrors(IGPMessages messages)
          Transfer any GP errors or warnings to the messages object.
 IDataElement makeDataElement(java.lang.String catalogPath, IGPDataType pDataType, IDEBrowseOptions pExpandOptions)
          Returns a data element object from the catalog object specified by the given path, data type, and expand options.
 IDataElement makeDataElementFromNameObject(IName name)
          Creates a new data element object from the given name object.
 IArray makeDataElements(java.lang.String catalogPath, IDEBrowseOptions pBrowseOptions)
          Get data elements from catalog path.
 IGPLayer makeGPLayer(java.lang.String catalogPath, IGPDataType pDataType)
          Creates a geoprocessing layer object from the given catalog path and of the given geoprocessing data type.
 IGPLayer makeGPLayerFromLayer(ILayer pLayer)
          Creates a geoprocessing layer object based on the given layer object.
 IGPTableView makeGPTableView(java.lang.String catalogPath, IGPDataType pDataType)
          Returns a geoprocessing table view object corresponding to the given catalog path and of the specified geoprocessing data type.
 IGPTableView makeGPTableViewFromTable(ITable pTable)
          Returns a new geoprocessing table view object from the given table object.
 IGPValue makeGPValueFromObject(java.lang.Object pUnk)
          Generate an GPValue from an Arc Object.
 ILayer makeLayer(IGPValue pValue, java.lang.String name, java.lang.Object pUnkRenderer)
          Creates appropriate layer for the value.
 java.lang.Object open(IGPValue pValue)
          Returns the dataset of the given value.
 IDataset openDataset(IGPValue pValue)
          Opens the dataset object specified by the given geoprocessing value object.
 IDataset openDatasetFromLocation(java.lang.String catalogPath)
          Opens the dataset object from the given catalog path.
 IFeatureClass openFeatureClassFromString(java.lang.String catalogPath)
          Opens a feature class from the given catalog path.
 IFeatureLayer openFeatureLayerFromString(java.lang.String catalogPath)
          Opens a feature layer from the given catalog path.
 java.lang.Object openFromString(java.lang.String nameString)
          Returns the dataset of the given value.
 ILayer openLayerFromLocation(java.lang.String catalogPath)
          Returns the layer based upon the given catalog path.
 IRasterDataset openRasterDatasetFromString(java.lang.String catalogPath)
          Opens a raster dataset object from the given catalog path.
 IRasterLayer openRasterLayerFromString(java.lang.String catalogPath)
          Opens a raster layer object from the given catalog path.
 ITable openTableFromString(java.lang.String catalogPath)
          Opens a table from the given catalog path.
 void packGPValue(IGPValue pValue, java.lang.Object pInput)
          Sets the given geoprocessing value into the given parameter/variable.
 java.lang.String qualifyOutputCatalogPath(java.lang.String catalogPath)
          Qualify the catalog path with the GDBs database and user names.
 void qualifyOutputDataElement(IGPValue pValue)
          Qualify the catalog path of the given value with the GDBs database and user names.
 void refreshCatalog(IDataElement pSourceDataElement)
          Refreshes the parent within the catalog of the given data element.
 void refreshView()
          Refreshes the applications active view.
 void release()
          Release a GPUtilities.
 void releaseInternals()
          Releases all internal objects used prior to releasing this GPUtilities object.
 void removeFromMap(IGPValue pGPValue, java.lang.String name)
          Removes the data/layers specified by the geoprocessing value object and/or name.
 void removeFromMapEx(IGPValue pGPValue)
          Removes the data/layers specified by the geoprocessing value object from the map.
 void removeInternalData()
          Removes all internal layers and tables.
 void removeInternalLayer(java.lang.String name)
          Removes the internal layer.
 void removeInternalLayerEx(ILayer pLayer)
          Removes the internal layer.
 void removeInternalTable(java.lang.String name)
          Removes the internal table.
 void removeInternalTableEx(ITable pTable)
          Removes the internal table.
 void removeInternalValues()
          Removes all of the GPValues returned from MakeGPValueFromObject.
 void rename(IGPValue pSourceGPValue, IGPValue pTargetGPValue)
          Renames the object referred to by the given geoprocessing value object.
 void saveLayer(java.lang.String catalogPath, ILayer pLayer)
          Saves a layer to a given location on disk.
 void setGridIndex(IGPEnvironmentManager pEnvMgr, IArray pInputTables, double spatialIndex1, double spatialIndex2, double spatialIndex3, java.lang.Object pUnk, IGeometryDef pGeometryDef)
          Calculates and sets the grid index sizes on the given geometry definition object.
 void setInternalMap(IMap pMap)
          Sets the internal map used by the geoprocessor.
 void setMessage(int type, int iD, int pos, IGPMessages msgs)
          Set a given message from the message id to the messages object.
 void setMessage1Args(int type, int iD, java.lang.String arg1, int pos, IGPMessages msgs)
          Set a given message from the message id to the messages object.
 void setMessage2Args(int type, int iD, java.lang.String arg1, java.lang.String arg2, int pos, IGPMessages msgs)
          Set a given message from the message id to the messages object.
 void setMessageText(int type, int iD, java.lang.String msg, int pos, IGPMessages msgs)
          Set a given message from the message text to the messages object.
 void setRefreshCatalogParent(boolean pRefresh)
          Returns whether catalog objects, used by the shared catalog object, are refreshed during geoprocessing operations.
 void setupEditSession(IClass pTable)
          Starts an edit session if needed.
 void setVariableManagerByRef(IGPVariableManager ppVariableManager)
          Sets the Variable Manager.
 void setWorkspace(java.lang.String workPath)
          Sets the path to the current workspace.
 void startEditOperation(IWorkspaceEdit pWorkspace, boolean bHasPrivateEditSession)
          Start edit operation within the application.
 void stopEditOperation(IWorkspaceEdit pWorkspace, java.lang.String operationLabel)
          Stop edit operation within the application.
 IGPValue unpackGPValue(java.lang.Object pInput)
          Returns the geoprocessing value object from the given parameter, variable, or value object.
 boolean validateExists(IGPValue pGPValue, boolean checkDerived)
          Verifies that the data referenced by the given geoprocessing value object exists.
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

GPUtilities

public GPUtilities()
            throws java.io.IOException,
                   java.net.UnknownHostException
Constructs a GPUtilities using ArcGIS Engine.

Throws:
java.io.IOException - if there are interop problems
java.net.UnknownHostException - if there are interop problems

GPUtilities

public GPUtilities(java.lang.Object obj)
            throws java.io.IOException
Deprecated. As of ArcGIS 9.2, replaced by normal Java casts.
GPUtilities theGPUtilities = (GPUtilities) obj;

Construct a GPUtilities using a reference to such an object returned from ArcGIS Engine or Server. This is semantically equivalent to casting obj to GPUtilities.

Parameters:
obj - an object returned from ArcGIS Engine or Server
Throws:
java.io.IOException - if there are interop problems
Method Detail

getClsid

public static java.lang.String getClsid()
getClsid.


equals

public boolean equals(java.lang.Object o)
Compare this object with another

Overrides:
equals in class java.lang.Object

hashCode

public int hashCode()
the hashcode for this object

Overrides:
hashCode in class java.lang.Object

getJintegraDispatch

public com.esri.arcgis.interop.Dispatch getJintegraDispatch()
Deprecated. Internal use only.

Specified by:
getJintegraDispatch in interface com.esri.arcgis.interop.RemoteObjRef

release

public void release()
Release a GPUtilities.

Specified by:
release in interface com.esri.arcgis.interop.RemoteObjRef

internalValidate

public IGPMessages internalValidate(IArray pParameters,
                                    IArray pParamValues,
                                    boolean updateValues,
                                    boolean honorDerivedFlag,
                                    IGPEnvironmentManager pEnvMgr)
                             throws java.io.IOException,
                                    AutomationException
Performs a validation of the parameters to a GPTool.

Specified by:
internalValidate in interface IGPUtilities
Parameters:
pParameters - A reference to a com.esri.arcgis.system.IArray (in)
pParamValues - A reference to a com.esri.arcgis.system.IArray (in)
updateValues - The updateValues (in)
honorDerivedFlag - The honorDerivedFlag (in)
pEnvMgr - A reference to a com.esri.arcgis.geoprocessing.IGPEnvironmentManager (in)
Returns:
A reference to a com.esri.arcgis.geodatabase.IGPMessages
Throws:
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

internalValidateValue

public void internalValidateValue(IGPParameter pParameter,
                                  java.lang.Object pValue,
                                  boolean updateValue,
                                  boolean honorDerivedFlag,
                                  IGPEnvironmentManager pEnvMgr,
                                  IGPMessage pMessage)
                           throws java.io.IOException,
                                  AutomationException
Performs a validation of the a single parameter to a GPTool.

Specified by:
internalValidateValue in interface IGPUtilities
Parameters:
pParameter - A reference to a com.esri.arcgis.geoprocessing.IGPParameter (in)
pValue - A reference to another Object (IUnknown) (in)
updateValue - The updateValue (in)
honorDerivedFlag - The honorDerivedFlag (in)
pEnvMgr - A reference to a com.esri.arcgis.geoprocessing.IGPEnvironmentManager (in)
pMessage - A reference to a com.esri.arcgis.geodatabase.IGPMessage (in)
Throws:
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

isBadMessage

public boolean isBadMessage(IGPMessages pMessages,
                            int index)
                     throws java.io.IOException,
                            AutomationException
Tests if a given message within an array of messages is bad.

Specified by:
isBadMessage in interface IGPUtilities
Parameters:
pMessages - A reference to a com.esri.arcgis.geodatabase.IGPMessages (in)
index - The index (in)
Returns:
The pBadMsg
Throws:
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

generateDefaultOutputValue

public IGPValue generateDefaultOutputValue(IGPEnvironmentManager pEnvMgr,
                                           java.lang.String functionname,
                                           IGPParameter pOutputParam,
                                           IGPValue pInputValue,
                                           java.lang.String extension,
                                           int outputFileBaseLimit)
                                    throws java.io.IOException,
                                           AutomationException
Generates the default output value and sets its path to an unique name.

Specified by:
generateDefaultOutputValue in interface IGPUtilities
Parameters:
pEnvMgr - A reference to a com.esri.arcgis.geoprocessing.IGPEnvironmentManager (in)
functionname - The functionname (in)
pOutputParam - A reference to a com.esri.arcgis.geoprocessing.IGPParameter (in)
pInputValue - A reference to a com.esri.arcgis.geodatabase.IGPValue (in)
extension - The extension (in)
outputFileBaseLimit - The outputFileBaseLimit (in)
Returns:
A reference to a com.esri.arcgis.geodatabase.IGPValue
Throws:
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

qualifyOutputDataElement

public void qualifyOutputDataElement(IGPValue pValue)
                              throws java.io.IOException,
                                     AutomationException
Qualify the catalog path of the given value with the GDBs database and user names.

Specified by:
qualifyOutputDataElement in interface IGPUtilities
Parameters:
pValue - A reference to a com.esri.arcgis.geodatabase.IGPValue (in)
Throws:
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

qualifyOutputCatalogPath

public java.lang.String qualifyOutputCatalogPath(java.lang.String catalogPath)
                                          throws java.io.IOException,
                                                 AutomationException
Qualify the catalog path with the GDBs database and user names.

Specified by:
qualifyOutputCatalogPath in interface IGPUtilities
Parameters:
catalogPath - The catalogPath (in)
Returns:
The pQualifiedCatalogPath
Throws:
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

getUnQualifiedCatalogPath

public java.lang.String getUnQualifiedCatalogPath(IGPValue pValue)
                                           throws java.io.IOException,
                                                  AutomationException
Returns the unqualified path by striping the GDBs database and user names.

Specified by:
getUnQualifiedCatalogPath in interface IGPUtilities
Parameters:
pValue - A reference to a com.esri.arcgis.geodatabase.IGPValue (in)
Returns:
The path
Throws:
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

setWorkspace

public void setWorkspace(java.lang.String workPath)
                  throws java.io.IOException,
                         AutomationException
Sets the path to the current workspace.

Specified by:
setWorkspace in interface IGPUtilities
Parameters:
workPath - The workPath (in)
Throws:
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

getWorkspace

public java.lang.String getWorkspace()
                              throws java.io.IOException,
                                     AutomationException
Sets the path to the current workspace.

Specified by:
getWorkspace in interface IGPUtilities
Returns:
The workPath
Throws:
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

getCatalog

public java.lang.Object getCatalog()
                            throws java.io.IOException,
                                   AutomationException
Returns the catalog object shared between geoprocessing operations.

Specified by:
getCatalog in interface IGPUtilities
Returns:
A reference to another Object (IUnknown)
Throws:
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

isRefreshCatalogParent

public boolean isRefreshCatalogParent()
                               throws java.io.IOException,
                                      AutomationException
Returns whether catalog objects, used by the shared catalog object, are refreshed during geoprocessing operations.

Specified by:
isRefreshCatalogParent in interface IGPUtilities
Returns:
The pRefresh
Throws:
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

setRefreshCatalogParent

public void setRefreshCatalogParent(boolean pRefresh)
                             throws java.io.IOException,
                                    AutomationException
Returns whether catalog objects, used by the shared catalog object, are refreshed during geoprocessing operations.

Specified by:
setRefreshCatalogParent in interface IGPUtilities
Parameters:
pRefresh - The pRefresh (in)
Throws:
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

makeDataElement

public IDataElement makeDataElement(java.lang.String catalogPath,
                                    IGPDataType pDataType,
                                    IDEBrowseOptions pExpandOptions)
                             throws java.io.IOException,
                                    AutomationException
Returns a data element object from the catalog object specified by the given path, data type, and expand options.

Specified by:
makeDataElement in interface IGPUtilities
Parameters:
catalogPath - The catalogPath (in)
pDataType - A reference to a com.esri.arcgis.geodatabase.IGPDataType (in)
pExpandOptions - A reference to a com.esri.arcgis.geodatabase.IDEBrowseOptions (in)
Returns:
A reference to a com.esri.arcgis.geodatabase.IDataElement
Throws:
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

makeDataElementFromNameObject

public IDataElement makeDataElementFromNameObject(IName name)
                                           throws java.io.IOException,
                                                  AutomationException
Creates a new data element object from the given name object.

Specified by:
makeDataElementFromNameObject in interface IGPUtilities
Parameters:
name - A reference to a com.esri.arcgis.system.IName (in)
Returns:
A reference to a com.esri.arcgis.geodatabase.IDataElement
Throws:
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

expandDataElement

public void expandDataElement(IDataElement pInDE,
                              IDEBrowseOptions pExpandOptions)
                       throws java.io.IOException,
                              AutomationException
Expands the properties of the given data element according to the given expand options.

Specified by:
expandDataElement in interface IGPUtilities
Parameters:
pInDE - A reference to a com.esri.arcgis.geodatabase.IDataElement (in)
pExpandOptions - A reference to a com.esri.arcgis.geodatabase.IDEBrowseOptions (in)
Throws:
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

createDataElement

public IDataElement createDataElement(java.lang.String catalogPath,
                                      IGPDataType pDataType,
                                      java.lang.String optionalWorkspace)
                               throws java.io.IOException,
                                      AutomationException
Creates a new data element object from the catalog object specified by the given path, data type, and optional workspace.

Specified by:
createDataElement in interface IGPUtilities
Parameters:
catalogPath - The catalogPath (in)
pDataType - A reference to a com.esri.arcgis.geodatabase.IGPDataType (in)
optionalWorkspace - The optionalWorkspace (in)
Returns:
A reference to a com.esri.arcgis.geodatabase.IDataElement
Throws:
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

createFeatureLayer

public IGPValue createFeatureLayer(java.lang.String catalogPath)
                            throws java.io.IOException,
                                   AutomationException
Creates a geoprocessing feature layer object from the catalog path.

Specified by:
createFeatureLayer in interface IGPUtilities
Parameters:
catalogPath - The catalogPath (in)
Returns:
A reference to a com.esri.arcgis.geodatabase.IGPValue
Throws:
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

openRasterDatasetFromString

public IRasterDataset openRasterDatasetFromString(java.lang.String catalogPath)
                                           throws java.io.IOException,
                                                  AutomationException
Opens a raster dataset object from the given catalog path.

Specified by:
openRasterDatasetFromString in interface IGPUtilities
Parameters:
catalogPath - The catalogPath (in)
Returns:
A reference to a com.esri.arcgis.geodatabase.IRasterDataset
Throws:
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

openFeatureClassFromString

public IFeatureClass openFeatureClassFromString(java.lang.String catalogPath)
                                         throws java.io.IOException,
                                                AutomationException
Opens a feature class from the given catalog path.

Specified by:
openFeatureClassFromString in interface IGPUtilities
Parameters:
catalogPath - The catalogPath (in)
Returns:
A reference to a com.esri.arcgis.geodatabase.IFeatureClass
Throws:
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

openTableFromString

public ITable openTableFromString(java.lang.String catalogPath)
                           throws java.io.IOException,
                                  AutomationException
Opens a table from the given catalog path.

Specified by:
openTableFromString in interface IGPUtilities
Parameters:
catalogPath - The catalogPath (in)
Returns:
A reference to a com.esri.arcgis.geodatabase.ITable
Throws:
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

openRasterLayerFromString

public IRasterLayer openRasterLayerFromString(java.lang.String catalogPath)
                                       throws java.io.IOException,
                                              AutomationException
Opens a raster layer object from the given catalog path.

Specified by:
openRasterLayerFromString in interface IGPUtilities
Parameters:
catalogPath - The catalogPath (in)
Returns:
A reference to a com.esri.arcgis.carto.IRasterLayer
Throws:
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

openFeatureLayerFromString

public IFeatureLayer openFeatureLayerFromString(java.lang.String catalogPath)
                                         throws java.io.IOException,
                                                AutomationException
Opens a feature layer from the given catalog path.

Specified by:
openFeatureLayerFromString in interface IGPUtilities
Parameters:
catalogPath - The catalogPath (in)
Returns:
A reference to a com.esri.arcgis.carto.IFeatureLayer
Throws:
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

createFeatureClassName

public IName createFeatureClassName(java.lang.String catalogPath)
                             throws java.io.IOException,
                                    AutomationException
Creates a feature class name object from the given catalog path.

Specified by:
createFeatureClassName in interface IGPUtilities
Parameters:
catalogPath - The catalogPath (in)
Returns:
A reference to a com.esri.arcgis.system.IName
Throws:
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

createRasterDatasetName

public IName createRasterDatasetName(java.lang.String catalogPath)
                              throws java.io.IOException,
                                     AutomationException
Creates a raster dataset name object from the given catalog path.

Specified by:
createRasterDatasetName in interface IGPUtilities
Parameters:
catalogPath - The catalogPath (in)
Returns:
A reference to a com.esri.arcgis.system.IName
Throws:
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

createRasterCatalogName

public IName createRasterCatalogName(java.lang.String catalogPath)
                              throws java.io.IOException,
                                     AutomationException
Creates a raster catalog name object from the given catalog path.

Specified by:
createRasterCatalogName in interface IGPUtilities
Parameters:
catalogPath - The catalogPath (in)
Returns:
A reference to a com.esri.arcgis.system.IName
Throws:
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

createTableName

public IName createTableName(java.lang.String catalogPath)
                      throws java.io.IOException,
                             AutomationException
Creates a table name object from the given catalog path.

Specified by:
createTableName in interface IGPUtilities
Parameters:
catalogPath - The catalogPath (in)
Returns:
A reference to a com.esri.arcgis.system.IName
Throws:
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

openDataset

public IDataset openDataset(IGPValue pValue)
                     throws java.io.IOException,
                            AutomationException
Opens the dataset object specified by the given geoprocessing value object.

Specified by:
openDataset in interface IGPUtilities
Parameters:
pValue - A reference to a com.esri.arcgis.geodatabase.IGPValue (in)
Returns:
A reference to a com.esri.arcgis.geodatabase.IDataset
Throws:
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

openDatasetFromLocation

public IDataset openDatasetFromLocation(java.lang.String catalogPath)
                                 throws java.io.IOException,
                                        AutomationException
Opens the dataset object from the given catalog path.

Specified by:
openDatasetFromLocation in interface IGPUtilities
Parameters:
catalogPath - The catalogPath (in)
Returns:
A reference to a com.esri.arcgis.geodatabase.IDataset
Throws:
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

addToMap

public void addToMap(IGPValue pGPValue,
                     java.lang.String name,
                     boolean temporary,
                     java.lang.Object pUnkRenderer)
              throws java.io.IOException,
                     AutomationException
Adds the given geoprocessing value object to the application display.

Specified by:
addToMap in interface IGPUtilities
Parameters:
pGPValue - A reference to a com.esri.arcgis.geodatabase.IGPValue (in)
name - The name (in)
temporary - The temporary (in)
pUnkRenderer - A reference to another Object (IUnknown) (in)
Throws:
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

refreshCatalog

public void refreshCatalog(IDataElement pSourceDataElement)
                    throws java.io.IOException,
                           AutomationException
Refreshes the parent within the catalog of the given data element.

Specified by:
refreshCatalog in interface IGPUtilities
Parameters:
pSourceDataElement - A reference to a com.esri.arcgis.geodatabase.IDataElement (in)
Throws:
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

exportFeatureClass

public void exportFeatureClass(IDataElement pSourceDataElement,
                               IDataElement pTargetDataElement)
                        throws java.io.IOException,
                               AutomationException
Exports the given feature class to a new feature class.

Specified by:
exportFeatureClass in interface IGPUtilities
Parameters:
pSourceDataElement - A reference to a com.esri.arcgis.geodatabase.IDataElement (in)
pTargetDataElement - A reference to a com.esri.arcgis.geodatabase.IDataElement (in)
Throws:
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

delete

public void delete(IGPValue pGPValue)
            throws java.io.IOException,
                   AutomationException
Deletes the object referred to by the given geoprocessing value object.

Specified by:
delete in interface IGPUtilities
Parameters:
pGPValue - A reference to a com.esri.arcgis.geodatabase.IGPValue (in)
Throws:
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

rename

public void rename(IGPValue pSourceGPValue,
                   IGPValue pTargetGPValue)
            throws java.io.IOException,
                   AutomationException
Renames the object referred to by the given geoprocessing value object.

Specified by:
rename in interface IGPUtilities
Parameters:
pSourceGPValue - A reference to a com.esri.arcgis.geodatabase.IGPValue (in)
pTargetGPValue - A reference to a com.esri.arcgis.geodatabase.IGPValue (in)
Throws:
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

copy

public void copy(IGPValue pSourceGPValue,
                 IGPValue pTargetGPValue)
          throws java.io.IOException,
                 AutomationException
Copies the object referred to by the given geoprocessing value object.

Specified by:
copy in interface IGPUtilities
Parameters:
pSourceGPValue - A reference to a com.esri.arcgis.geodatabase.IGPValue (in)
pTargetGPValue - A reference to a com.esri.arcgis.geodatabase.IGPValue (in)
Throws:
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

exists

public boolean exists(IGPValue pGPValue)
               throws java.io.IOException,
                      AutomationException
Returns whether the object referred to by the given geoprocessing value object exists.

Specified by:
exists in interface IGPUtilities
Parameters:
pGPValue - A reference to a com.esri.arcgis.geodatabase.IGPValue (in)
Returns:
The exists
Throws:
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

compareWildCard

public boolean compareWildCard(java.lang.String wildCard,
                               java.lang.String data)
                        throws java.io.IOException,
                               AutomationException
Returns whether the given string satisfies the given wildcard string.

Specified by:
compareWildCard in interface IGPUtilities
Parameters:
wildCard - The wildCard (in)
data - The data (in)
Returns:
The matched
Throws:
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

getNameObject

public IName getNameObject(IDataElement pDataElement)
                    throws java.io.IOException,
                           AutomationException
Returns a name object corresponding to the object referred to by the given data element.

Specified by:
getNameObject in interface IGPUtilities
Parameters:
pDataElement - A reference to a com.esri.arcgis.geodatabase.IDataElement (in)
Returns:
A reference to a com.esri.arcgis.system.IName
Throws:
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

getNameObjectFromLocation

public IName getNameObjectFromLocation(java.lang.String locationMoniker)
                                throws java.io.IOException,
                                       AutomationException
Returns a name object corresponding to the object by the location moniker.

Specified by:
getNameObjectFromLocation in interface IGPUtilities
Parameters:
locationMoniker - The locationMoniker (in)
Returns:
A reference to a com.esri.arcgis.system.IName
Throws:
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

getGxObjectFromLocation

public java.lang.Object getGxObjectFromLocation(java.lang.String catalogPath)
                                         throws java.io.IOException,
                                                AutomationException
Returns the catalog object from the given catalog path.

Specified by:
getGxObjectFromLocation in interface IGPUtilities
Parameters:
catalogPath - The catalogPath (in)
Returns:
A reference to another Object (IUnknown)
Throws:
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

fieldExists

public boolean fieldExists(IGPValue pGPValue,
                           IField pField)
                    throws java.io.IOException,
                           AutomationException
Returns whether the given field exists within the given geoprocessing value object.

Specified by:
fieldExists in interface IGPUtilities
Parameters:
pGPValue - A reference to a com.esri.arcgis.geodatabase.IGPValue (in)
pField - A reference to a com.esri.arcgis.geodatabase.IField (in)
Returns:
The pExists
Throws:
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

findField

public IField findField(IGPValue pGPValue,
                        java.lang.String name)
                 throws java.io.IOException,
                        AutomationException
Returns the field object with the specified name in the given geoprocessing value object.

Specified by:
findField in interface IGPUtilities
Parameters:
pGPValue - A reference to a com.esri.arcgis.geodatabase.IGPValue (in)
name - The name (in)
Returns:
A reference to a com.esri.arcgis.geodatabase.IField
Throws:
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

getMapLayers

public IEnumLayer getMapLayers()
                        throws java.io.IOException,
                               AutomationException
Returns an enumeration of the current layers in the application.

Specified by:
getMapLayers in interface IGPUtilities
Returns:
A reference to a com.esri.arcgis.carto.IEnumLayer
Throws:
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

findMapLayer

public ILayer findMapLayer(java.lang.String name)
                    throws java.io.IOException,
                           AutomationException
Returns a layer with the given name.

Specified by:
findMapLayer in interface IGPUtilities
Parameters:
name - The name (in)
Returns:
A reference to a com.esri.arcgis.carto.ILayer
Throws:
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

findMapLayer2

public IGPLayer findMapLayer2(java.lang.String name,
                              ILayer[] ppLayer)
                       throws java.io.IOException,
                              AutomationException
Returns a layer and geoprocessing layer with the given name.

Specified by:
findMapLayer2 in interface IGPUtilities
Parameters:
name - The name (in)
ppLayer - A reference to a com.esri.arcgis.carto.ILayer (out: use single element array)
Returns:
A reference to a com.esri.arcgis.datasourcesfile.IGPLayer
Throws:
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

getGPLayers

public IEnumGPValue getGPLayers()
                         throws java.io.IOException,
                                AutomationException
Returns an enumeration of current geoprocessing layers.

Specified by:
getGPLayers in interface IGPUtilities
Returns:
A reference to a com.esri.arcgis.geodatabase.IEnumGPValue
Throws:
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

makeGPLayer

public IGPLayer makeGPLayer(java.lang.String catalogPath,
                            IGPDataType pDataType)
                     throws java.io.IOException,
                            AutomationException
Creates a geoprocessing layer object from the given catalog path and of the given geoprocessing data type.

Specified by:
makeGPLayer in interface IGPUtilities
Parameters:
catalogPath - The catalogPath (in)
pDataType - A reference to a com.esri.arcgis.geodatabase.IGPDataType (in)
Returns:
A reference to a com.esri.arcgis.datasourcesfile.IGPLayer
Throws:
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

getEnvironment

public IGPEnvironment getEnvironment(IArray pEnvironments,
                                     java.lang.String name)
                              throws java.io.IOException,
                                     AutomationException
Locates a geoprocessing environment with the given name in the given array.

Specified by:
getEnvironment in interface IGPUtilities
Parameters:
pEnvironments - A reference to a com.esri.arcgis.system.IArray (in)
name - The name (in)
Returns:
A reference to a com.esri.arcgis.geoprocessing.IGPEnvironment
Throws:
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

addInternalLayer

public void addInternalLayer(ILayer pLayer)
                      throws java.io.IOException,
                             AutomationException
Adds a layer object to the geoprocessing utility object.

Specified by:
addInternalLayer in interface IGPUtilities
Parameters:
pLayer - A reference to a com.esri.arcgis.carto.ILayer (in)
Throws:
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

addInternalLayer2

public void addInternalLayer2(ILayer pLayer,
                              IGPLayer pGPLayer)
                       throws java.io.IOException,
                              AutomationException
Adds a layer object and geoprocessing layer object to the geoprocessing utility object.

Specified by:
addInternalLayer2 in interface IGPUtilities
Parameters:
pLayer - A reference to a com.esri.arcgis.carto.ILayer (in)
pGPLayer - A reference to a com.esri.arcgis.datasourcesfile.IGPLayer (in)
Throws:
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

makeGPLayerFromLayer

public IGPLayer makeGPLayerFromLayer(ILayer pLayer)
                              throws java.io.IOException,
                                     AutomationException
Creates a geoprocessing layer object based on the given layer object.

Specified by:
makeGPLayerFromLayer in interface IGPUtilities
Parameters:
pLayer - A reference to a com.esri.arcgis.carto.ILayer (in)
Returns:
A reference to a com.esri.arcgis.datasourcesfile.IGPLayer
Throws:
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

createParentFromCatalogPath

public IName createParentFromCatalogPath(java.lang.String catalogPath)
                                  throws java.io.IOException,
                                         AutomationException
Returns a name object corresponding to the parent object of the specified catalog path.

Specified by:
createParentFromCatalogPath in interface IGPUtilities
Parameters:
catalogPath - The catalogPath (in)
Returns:
A reference to a com.esri.arcgis.system.IName
Throws:
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

unpackGPValue

public IGPValue unpackGPValue(java.lang.Object pInput)
                       throws java.io.IOException,
                              AutomationException
Returns the geoprocessing value object from the given parameter, variable, or value object.

Specified by:
unpackGPValue in interface IGPUtilities
Parameters:
pInput - A reference to another Object (IUnknown) (in)
Returns:
A reference to a com.esri.arcgis.geodatabase.IGPValue
Throws:
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

decodeRasterLayer

public void decodeRasterLayer(IGPValue pValue,
                              IRasterDataset[] ppRD)
                       throws java.io.IOException,
                              AutomationException
Returns the raster dataset specified by the given geoprocessing value object.

Specified by:
decodeRasterLayer in interface IGPUtilities
Parameters:
pValue - A reference to a com.esri.arcgis.geodatabase.IGPValue (in)
ppRD - A reference to a com.esri.arcgis.geodatabase.IRasterDataset (out: use single element array)
Throws:
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

decodeFeatureLayer

public void decodeFeatureLayer(IGPValue pValue,
                               IFeatureClass[] ppFC,
                               IQueryFilter[] ppQF)
                        throws java.io.IOException,
                               AutomationException
Returns the feature class and query filter specified by the given geoprocessing value object.

Specified by:
decodeFeatureLayer in interface IGPUtilities
Parameters:
pValue - A reference to a com.esri.arcgis.geodatabase.IGPValue (in)
ppFC - A reference to a com.esri.arcgis.geodatabase.IFeatureClass (out: use single element array)
ppQF - A reference to a com.esri.arcgis.geodatabase.IQueryFilter (out: use single element array)
Throws:
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

decodeTableView

public void decodeTableView(IGPValue pValue,
                            ITable[] ppTable,
                            IQueryFilter[] ppQF)
                     throws java.io.IOException,
                            AutomationException
Returns the table and query filter specified by the given geoprocessing value object.

Specified by:
decodeTableView in interface IGPUtilities
Parameters:
pValue - A reference to a com.esri.arcgis.geodatabase.IGPValue (in)
ppTable - A reference to a com.esri.arcgis.geodatabase.ITable (out: use single element array)
ppQF - A reference to a com.esri.arcgis.geodatabase.IQueryFilter (out: use single element array)
Throws:
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

decodeLayer

public ILayer decodeLayer(IGPValue pValue)
                   throws java.io.IOException,
                          AutomationException
Returns the layer object specified by the given geoprocessing value object.

Specified by:
decodeLayer in interface IGPUtilities
Parameters:
pValue - A reference to a com.esri.arcgis.geodatabase.IGPValue (in)
Returns:
A reference to a com.esri.arcgis.carto.ILayer
Throws:
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

decodeStandaloneTable

public IStandaloneTable decodeStandaloneTable(IGPValue pValue)
                                       throws java.io.IOException,
                                              AutomationException
Returns the standalone table object specified by the given geoprocessing value object.

Specified by:
decodeStandaloneTable in interface IGPUtilities
Parameters:
pValue - A reference to a com.esri.arcgis.geodatabase.IGPValue (in)
Returns:
A reference to a com.esri.arcgis.carto.IStandaloneTable
Throws:
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

decodeDETable

public IDETable decodeDETable(IGPValue pValue)
                       throws java.io.IOException,
                              AutomationException
Returns the table data element specified by the given geoprocessing value object.

Specified by:
decodeDETable in interface IGPUtilities
Parameters:
pValue - A reference to a com.esri.arcgis.geodatabase.IGPValue (in)
Returns:
A reference to a com.esri.arcgis.geodatabase.IDETable
Throws:
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

releaseInternals

public void releaseInternals()
                      throws java.io.IOException,
                             AutomationException
Releases all internal objects used prior to releasing this GPUtilities object.

Specified by:
releaseInternals in interface IGPUtilities
Throws:
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

getMapTables

public IEnumTable getMapTables()
                        throws java.io.IOException,
                               AutomationException
Returns an enumeration of standalone tables in the current map.

Specified by:
getMapTables in interface IGPUtilities
Returns:
A reference to a com.esri.arcgis.geodatabase.IEnumTable
Throws:
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

findMapTable

public ITable findMapTable(java.lang.String name)
                    throws java.io.IOException,
                           AutomationException
Locates a table with the specified name.

Specified by:
findMapTable in interface IGPUtilities
Parameters:
name - The name (in)
Returns:
A reference to a com.esri.arcgis.geodatabase.ITable
Throws:
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

findMapTable2

public IGPTableView findMapTable2(java.lang.String name,
                                  ITable[] ppTable)
                           throws java.io.IOException,
                                  AutomationException
Locates a table with the specified name and returns the table and geoprocessing table view objects.

Specified by:
findMapTable2 in interface IGPUtilities
Parameters:
name - The name (in)
ppTable - A reference to a com.esri.arcgis.geodatabase.ITable (out: use single element array)
Returns:
A reference to a com.esri.arcgis.geoprocessing.IGPTableView
Throws:
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

getGPTableViews

public IEnumGPValue getGPTableViews()
                             throws java.io.IOException,
                                    AutomationException
Returns an enumeration of geoprocessing table views.

Specified by:
getGPTableViews in interface IGPUtilities
Returns:
A reference to a com.esri.arcgis.geodatabase.IEnumGPValue
Throws:
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

isGPTableView

public boolean isGPTableView(IGPValue pValue)
                      throws java.io.IOException,
                             AutomationException
Returns test if a geoprocessing table views is in fact a table and not from a layer.

Specified by:
isGPTableView in interface IGPUtilities
Parameters:
pValue - A reference to a com.esri.arcgis.geodatabase.IGPValue (in)
Returns:
The pResult
Throws:
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

makeGPTableView

public IGPTableView makeGPTableView(java.lang.String catalogPath,
                                    IGPDataType pDataType)
                             throws java.io.IOException,
                                    AutomationException
Returns a geoprocessing table view object corresponding to the given catalog path and of the specified geoprocessing data type.

Specified by:
makeGPTableView in interface IGPUtilities
Parameters:
catalogPath - The catalogPath (in)
pDataType - A reference to a com.esri.arcgis.geodatabase.IGPDataType (in)
Returns:
A reference to a com.esri.arcgis.geoprocessing.IGPTableView
Throws:
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

addInternalTable

public void addInternalTable(ITable pTable)
                      throws java.io.IOException,
                             AutomationException
Adds the given table to the utility object's list of tables.

Specified by:
addInternalTable in interface IGPUtilities
Parameters:
pTable - A reference to a com.esri.arcgis.geodatabase.ITable (in)
Throws:
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

addInternalTable2

public void addInternalTable2(ITable pTable,
                              IGPTableView pGPTableView)
                       throws java.io.IOException,
                              AutomationException
Adds the given table to the utility object's list of tables.

Specified by:
addInternalTable2 in interface IGPUtilities
Parameters:
pTable - A reference to a com.esri.arcgis.geodatabase.ITable (in)
pGPTableView - A reference to a com.esri.arcgis.geoprocessing.IGPTableView (in)
Throws:
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

makeGPTableViewFromTable

public IGPTableView makeGPTableViewFromTable(ITable pTable)
                                      throws java.io.IOException,
                                             AutomationException
Returns a new geoprocessing table view object from the given table object.

Specified by:
makeGPTableViewFromTable in interface IGPUtilities
Parameters:
pTable - A reference to a com.esri.arcgis.geodatabase.ITable (in)
Returns:
A reference to a com.esri.arcgis.geoprocessing.IGPTableView
Throws:
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

getFields

public IFields getFields(IGPValue pValue)
                  throws java.io.IOException,
                         AutomationException
Returns a collection of field objects contained in the given geoprocessing value object.

Specified by:
getFields in interface IGPUtilities
Parameters:
pValue - A reference to a com.esri.arcgis.geodatabase.IGPValue (in)
Returns:
A reference to a com.esri.arcgis.geodatabase.IFields
Throws:
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

canAddToMap

public boolean canAddToMap()
                    throws java.io.IOException,
                           AutomationException
Returns whether datasets can be added to the current application display.

Specified by:
canAddToMap in interface IGPUtilities
Returns:
The pCanAddToMap
Throws:
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

generateSpRef

public void generateSpRef(IArray pInputTables,
                          ITable pOverlayTable,
                          double growExtentBy,
                          ISpatialReference[] ppSpRef,
                          IEnvelope[] ppExtent,
                          boolean[] pHasMs,
                          double[] pMMin,
                          double[] pMMax,
                          boolean[] pHasZs,
                          double[] pZMin,
                          double[] pZMax)
                   throws java.io.IOException,
                          AutomationException
Generates a new spatial reference object.

Specified by:
generateSpRef in interface IGPUtilities
Parameters:
pInputTables - A reference to a com.esri.arcgis.system.IArray (in)
pOverlayTable - A reference to a com.esri.arcgis.geodatabase.ITable (in)
growExtentBy - The growExtentBy (in)
ppSpRef - A reference to a com.esri.arcgis.geometry.ISpatialReference (out: use single element array)
ppExtent - A reference to a com.esri.arcgis.geometry.IEnvelope (out: use single element array)
pHasMs - The pHasMs (out: use single element array)
pMMin - The pMMin (out: use single element array)
pMMax - The pMMax (out: use single element array)
pHasZs - The pHasZs (out: use single element array)
pZMin - The pZMin (out: use single element array)
pZMax - The pZMax (out: use single element array)
Throws:
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

setGridIndex

public void setGridIndex(IGPEnvironmentManager pEnvMgr,
                         IArray pInputTables,
                         double spatialIndex1,
                         double spatialIndex2,
                         double spatialIndex3,
                         java.lang.Object pUnk,
                         IGeometryDef pGeometryDef)
                  throws java.io.IOException,
                         AutomationException
Calculates and sets the grid index sizes on the given geometry definition object.

Specified by:
setGridIndex in interface IGPUtilities
Parameters:
pEnvMgr - A reference to a com.esri.arcgis.geoprocessing.IGPEnvironmentManager (in)
pInputTables - A reference to a com.esri.arcgis.system.IArray (in)
spatialIndex1 - The spatialIndex1 (in)
spatialIndex2 - The spatialIndex2 (in)
spatialIndex3 - The spatialIndex3 (in)
pUnk - A reference to another Object (IUnknown) (in)
pGeometryDef - A reference to a com.esri.arcgis.geodatabase.IGeometryDef (in)
Throws:
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

isDatasetType

public boolean isDatasetType(java.lang.Object pUnknown)
                      throws java.io.IOException,
                             AutomationException
Returns whether the given object is a dataset.

Specified by:
isDatasetType in interface IGPUtilities
Parameters:
pUnknown - A reference to another Object (IUnknown) (in)
Returns:
The pIsDataset
Throws:
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

removeFromMap

public void removeFromMap(IGPValue pGPValue,
                          java.lang.String name)
                   throws java.io.IOException,
                          AutomationException
Removes the data/layers specified by the geoprocessing value object and/or name.

Specified by:
removeFromMap in interface IGPUtilities
Parameters:
pGPValue - A reference to a com.esri.arcgis.geodatabase.IGPValue (in)
name - The name (in)
Throws:
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

isDerived

public boolean isDerived(java.lang.Object pInput)
                  throws java.io.IOException,
                         AutomationException
Returns whether the given variable or parameter is derived.

Specified by:
isDerived in interface IGPUtilities
Parameters:
pInput - A reference to another Object (IUnknown) (in)
Returns:
The pDerived
Throws:
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

refreshView

public void refreshView()
                 throws java.io.IOException,
                        AutomationException
Refreshes the applications active view.

Specified by:
refreshView in interface IGPUtilities
Throws:
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

packGPValue

public void packGPValue(IGPValue pValue,
                        java.lang.Object pInput)
                 throws java.io.IOException,
                        AutomationException
Sets the given geoprocessing value into the given parameter/variable.

Specified by:
packGPValue in interface IGPUtilities
Parameters:
pValue - A reference to a com.esri.arcgis.geodatabase.IGPValue (in)
pInput - A reference to another Object (IUnknown) (in)
Throws:
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

createParameterValue

public IGPValue createParameterValue(java.lang.String text,
                                     IGPDataType pDataType,
                                     int direction)
                              throws java.io.IOException,
                                     AutomationException
Creates a geoprocessing value object of the given data type from the given string.

Specified by:
createParameterValue in interface IGPUtilities
Parameters:
text - The text (in)
pDataType - A reference to a com.esri.arcgis.geodatabase.IGPDataType (in)
direction - A com.esri.arcgis.geoprocessing.esriGPParameterDirection constant (in)
Returns:
A reference to a com.esri.arcgis.geodatabase.IGPValue
Throws:
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

validateExists

public boolean validateExists(IGPValue pGPValue,
                              boolean checkDerived)
                       throws java.io.IOException,
                              AutomationException
Verifies that the data referenced by the given geoprocessing value object exists.

Specified by:
validateExists in interface IGPUtilities
Parameters:
pGPValue - A reference to a com.esri.arcgis.geodatabase.IGPValue (in)
checkDerived - The checkDerived (in)
Returns:
The exists
Throws:
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

getGxObject

public java.lang.Object getGxObject(IDataElement pDataElement)
                             throws java.io.IOException,
                                    AutomationException
Returns the catalog object corresponding to the given data element.

Specified by:
getGxObject in interface IGPUtilities
Parameters:
pDataElement - A reference to a com.esri.arcgis.geodatabase.IDataElement (in)
Returns:
A reference to another Object (IUnknown)
Throws:
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

getGxObjects

public IArray getGxObjects(java.lang.String catalogPath)
                    throws java.io.IOException,
                           AutomationException
Returns an array of all catalog objects which correspond to the catalog path.

Specified by:
getGxObjects in interface IGPUtilities
Parameters:
catalogPath - The catalogPath (in)
Returns:
A reference to a com.esri.arcgis.system.IArray
Throws:
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

makeDataElements

public IArray makeDataElements(java.lang.String catalogPath,
                               IDEBrowseOptions pBrowseOptions)
                        throws java.io.IOException,
                               AutomationException
Get data elements from catalog path.

Specified by:
makeDataElements in interface IGPUtilities
Parameters:
catalogPath - The catalogPath (in)
pBrowseOptions - A reference to a com.esri.arcgis.geodatabase.IDEBrowseOptions (in)
Returns:
A reference to a com.esri.arcgis.system.IArray
Throws:
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

getGPMapData

public IEnumGPValue getGPMapData()
                          throws java.io.IOException,
                                 AutomationException
Returns an enumeration of geoprocessing data.

Specified by:
getGPMapData in interface IGPUtilities
Returns:
A reference to a com.esri.arcgis.geodatabase.IEnumGPValue
Throws:
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

makeGPValueFromObject

public IGPValue makeGPValueFromObject(java.lang.Object pUnk)
                               throws java.io.IOException,
                                      AutomationException
Generate an GPValue from an Arc Object.

Specified by:
makeGPValueFromObject in interface IGPUtilities
Parameters:
pUnk - A reference to another Object (IUnknown) (in)
Returns:
A reference to a com.esri.arcgis.geodatabase.IGPValue
Throws:
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

removeInternalValues

public void removeInternalValues()
                          throws java.io.IOException,
                                 AutomationException
Removes all of the GPValues returned from MakeGPValueFromObject.

Specified by:
removeInternalValues in interface IGPUtilities
Throws:
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

removeInternalLayer

public void removeInternalLayer(java.lang.String name)
                         throws java.io.IOException,
                                AutomationException
Removes the internal layer.

Specified by:
removeInternalLayer in interface IGPUtilities
Parameters:
name - The name (in)
Throws:
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

removeInternalTable

public void removeInternalTable(java.lang.String name)
                         throws java.io.IOException,
                                AutomationException
Removes the internal table.

Specified by:
removeInternalTable in interface IGPUtilities
Parameters:
name - The name (in)
Throws:
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

decodeRaster

public IRaster decodeRaster(IGPValue pValue)
                     throws java.io.IOException,
                            AutomationException
Returns the raster specified by the given geoprocessing value object.

Specified by:
decodeRaster in interface IGPUtilities
Parameters:
pValue - A reference to a com.esri.arcgis.geodatabase.IGPValue (in)
Returns:
A reference to a com.esri.arcgis.geodatabase.IRaster
Throws:
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

getGPSpRefEnv

public ISpatialReference getGPSpRefEnv(IGPEnvironmentManager pEnvMgr,
                                       ISpatialReference pSrcSpRef,
                                       IEnvelope pNewExtent,
                                       double newMMin,
                                       double newMMax,
                                       double newZMin,
                                       double newZMax,
                                       java.lang.Object pWkspFDS)
                                throws java.io.IOException,
                                       AutomationException
Creates the spatial reference from both a source and environment.

Specified by:
getGPSpRefEnv in interface IGPUtilities
Parameters:
pEnvMgr - A reference to a com.esri.arcgis.geoprocessing.IGPEnvironmentManager (in)
pSrcSpRef - A reference to a com.esri.arcgis.geometry.ISpatialReference (in)
pNewExtent - A reference to a com.esri.arcgis.geometry.IEnvelope (in)
newMMin - The newMMin (in)
newMMax - The newMMax (in)
newZMin - The newZMin (in)
newZMax - The newZMax (in)
pWkspFDS - A reference to another Object (IUnknown) (in)
Returns:
A reference to a com.esri.arcgis.geometry.ISpatialReference
Throws:
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

removeInternalLayerEx

public void removeInternalLayerEx(ILayer pLayer)
                           throws java.io.IOException,
                                  AutomationException
Removes the internal layer.

Specified by:
removeInternalLayerEx in interface IGPUtilities
Parameters:
pLayer - A reference to a com.esri.arcgis.carto.ILayer (in)
Throws:
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

removeInternalTableEx

public void removeInternalTableEx(ITable pTable)
                           throws java.io.IOException,
                                  AutomationException
Removes the internal table.

Specified by:
removeInternalTableEx in interface IGPUtilities
Parameters:
pTable - A reference to a com.esri.arcgis.geodatabase.ITable (in)
Throws:
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

open

public java.lang.Object open(IGPValue pValue)
                      throws java.io.IOException,
                             AutomationException
Returns the dataset of the given value.

Specified by:
open in interface IGPUtilities2
Parameters:
pValue - A reference to a com.esri.arcgis.geodatabase.IGPValue (in)
Returns:
A reference to another Object (IUnknown)
Throws:
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

saveLayer

public void saveLayer(java.lang.String catalogPath,
                      ILayer pLayer)
               throws java.io.IOException,
                      AutomationException
Saves a layer to a given location on disk.

Specified by:
saveLayer in interface IGPUtilities2
Parameters:
catalogPath - The catalogPath (in)
pLayer - A reference to a com.esri.arcgis.carto.ILayer (in)
Throws:
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

getActiveView

public IActiveView getActiveView()
                          throws java.io.IOException,
                                 AutomationException
Get active view.

Specified by:
getActiveView in interface IGPUtilities2
Returns:
A reference to a com.esri.arcgis.carto.IActiveView
Throws:
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

getMap

public IMap getMap()
            throws java.io.IOException,
                   AutomationException
Gets the map associated with the application.

Specified by:
getMap in interface IGPUtilities2
Returns:
A reference to a com.esri.arcgis.carto.IMap
Throws:
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

getBasicMap

public IBasicMap getBasicMap()
                      throws java.io.IOException,
                             AutomationException
Gets the basic map associated with the application.

Specified by:
getBasicMap in interface IGPUtilities2
Returns:
A reference to a com.esri.arcgis.carto.IBasicMap
Throws:
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

inApplication

public boolean inApplication()
                      throws java.io.IOException,
                             AutomationException
Indicates if the program is running in an ArcGIS applicaiton.

Specified by:
inApplication in interface IGPUtilities2
Returns:
The pInApplication
Throws:
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

makeLayer

public ILayer makeLayer(IGPValue pValue,
                        java.lang.String name,
                        java.lang.Object pUnkRenderer)
                 throws java.io.IOException,
                        AutomationException
Creates appropriate layer for the value.

Specified by:
makeLayer in interface IGPUtilities2
Parameters:
pValue - A reference to a com.esri.arcgis.geodatabase.IGPValue (in)
name - The name (in)
pUnkRenderer - A reference to another Object (IUnknown) (in)
Returns:
A reference to a com.esri.arcgis.carto.ILayer
Throws:
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

getStatusBar

public IStatusBar getStatusBar()
                        throws java.io.IOException,
                               AutomationException
Gets the status bar associated with the application.

Specified by:
getStatusBar in interface IGPUtilities2
Returns:
A reference to a com.esri.arcgis.system.IStatusBar
Throws:
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

startEditOperation

public void startEditOperation(IWorkspaceEdit pWorkspace,
                               boolean bHasPrivateEditSession)
                        throws java.io.IOException,
                               AutomationException
Start edit operation within the application.

Specified by:
startEditOperation in interface IGPUtilities2
Parameters:
pWorkspace - A reference to a com.esri.arcgis.geodatabase.IWorkspaceEdit (in)
bHasPrivateEditSession - The bHasPrivateEditSession (in)
Throws:
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

abortEditOperation

public void abortEditOperation(IWorkspaceEdit pWorkspace)
                        throws java.io.IOException,
                               AutomationException
Abort edit operation within the application.

Specified by:
abortEditOperation in interface IGPUtilities2
Parameters:
pWorkspace - A reference to a com.esri.arcgis.geodatabase.IWorkspaceEdit (in)
Throws:
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

stopEditOperation

public void stopEditOperation(IWorkspaceEdit pWorkspace,
                              java.lang.String operationLabel)
                       throws java.io.IOException,
                              AutomationException
Stop edit operation within the application.

Specified by:
stopEditOperation in interface IGPUtilities2
Parameters:
pWorkspace - A reference to a com.esri.arcgis.geodatabase.IWorkspaceEdit (in)
operationLabel - The operationLabel (in)
Throws:
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

setVariableManagerByRef

public void setVariableManagerByRef(IGPVariableManager ppVariableManager)
                             throws java.io.IOException,
                                    AutomationException
Sets the Variable Manager.

Specified by:
setVariableManagerByRef in interface IGPUtilities2
Parameters:
ppVariableManager - A reference to a com.esri.arcgis.geoprocessing.IGPVariableManager (in)
Throws:
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

getVariableManager

public IGPVariableManager getVariableManager()
                                      throws java.io.IOException,
                                             AutomationException
Sets the Variable Manager.

Specified by:
getVariableManager in interface IGPUtilities2
Returns:
A reference to a com.esri.arcgis.geoprocessing.IGPVariableManager
Throws:
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

generateGeographicTransformDomain

public void generateGeographicTransformDomain(java.lang.Object iUnk,
                                              IGPCodedValueDomain pGTDomain,
                                              ISpatialReference pInSR,
                                              ISpatialReference pOutSR,
                                              IGPMessages pMessages)
                                       throws java.io.IOException,
                                              AutomationException
Generate the matching geographic transform domain from an input spatial reference to an output spatial reference.

Specified by:
generateGeographicTransformDomain in interface IGPUtilities2
Parameters:
iUnk - A reference to another Object (IUnknown) (in)
pGTDomain - A reference to a com.esri.arcgis.geodatabase.IGPCodedValueDomain (in)
pInSR - A reference to a com.esri.arcgis.geometry.ISpatialReference (in)
pOutSR - A reference to a com.esri.arcgis.geometry.ISpatialReference (in)
pMessages - A reference to a com.esri.arcgis.geodatabase.IGPMessages (in)
Throws:
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

getGTOperationSet

public void getGTOperationSet(IGPValue pGTs,
                              ISpatialReference pInSR,
                              ISpatialReference pOutSR,
                              ICompositeGeoTransformation ppGTs)
                       throws java.io.IOException,
                              AutomationException
Gets the set of geographic transformations.

Specified by:
getGTOperationSet in interface IGPUtilities2
Parameters:
pGTs - A reference to a com.esri.arcgis.geodatabase.IGPValue (in)
pInSR - A reference to a com.esri.arcgis.geometry.ISpatialReference (in)
pOutSR - A reference to a com.esri.arcgis.geometry.ISpatialReference (in)
ppGTs - A reference to a com.esri.arcgis.geometry.ICompositeGeoTransformation (in)
Throws:
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

getExtent

public IEnvelope getExtent(IGPValue pValue,
                           int[] envType)
                    throws java.io.IOException,
                           AutomationException
Gets the type and value of extent of the given value.

Specified by:
getExtent in interface IGPUtilities2
Parameters:
pValue - A reference to a com.esri.arcgis.geodatabase.IGPValue (in)
envType - A com.esri.arcgis.geoprocessing.esriGPExtentEnum constant (out: use single element array)
Returns:
A reference to a com.esri.arcgis.geometry.IEnvelope
Throws:
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

getGPSpRefEnvEx

public ISpatialReference getGPSpRefEnvEx(IGPEnvironmentManager pEnvMgr,
                                         ISpatialReference pSrcSpRef,
                                         ISpatialReference pTgtSpRef,
                                         IEnvelope pNewExtent,
                                         double newMMin,
                                         double newMMax,
                                         double newZMin,
                                         double newZMax,
                                         java.lang.Object pWkspFDS)
                                  throws java.io.IOException,
                                         AutomationException
Creates the spatial reference from both a source and environment.

Specified by:
getGPSpRefEnvEx in interface IGPUtilities2
Parameters:
pEnvMgr - A reference to a com.esri.arcgis.geoprocessing.IGPEnvironmentManager (in)
pSrcSpRef - A reference to a com.esri.arcgis.geometry.ISpatialReference (in)
pTgtSpRef - A reference to a com.esri.arcgis.geometry.ISpatialReference (in)
pNewExtent - A reference to a com.esri.arcgis.geometry.IEnvelope (in)
newMMin - The newMMin (in)
newMMax - The newMMax (in)
newZMin - The newZMin (in)
newZMax - The newZMax (in)
pWkspFDS - A reference to another Object (IUnknown) (in)
Returns:
A reference to a com.esri.arcgis.geometry.ISpatialReference
Throws:
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

createToolboxFromFactory

public void createToolboxFromFactory(java.lang.String alias,
                                     java.lang.String location,
                                     java.lang.String toolboxName)
                              throws java.io.IOException,
                                     AutomationException
Creates a toolbox at the given location for a function factory of a given alias.

Specified by:
createToolboxFromFactory in interface IGPUtilities2
Parameters:
alias - The alias (in)
location - The location (in)
toolboxName - The toolboxName (in)
Throws:
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

setInternalMap

public void setInternalMap(IMap pMap)
                    throws java.io.IOException,
                           AutomationException
Sets the internal map used by the geoprocessor.

Specified by:
setInternalMap in interface IGPUtilities2
Parameters:
pMap - A reference to a com.esri.arcgis.carto.IMap (in)
Throws:
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

getLayerName

public java.lang.String getLayerName(IGPValue pValue,
                                     java.lang.String name)
                              throws java.io.IOException,
                                     AutomationException
Get default layer name for given value.

Specified by:
getLayerName in interface IGPUtilities2
Parameters:
pValue - A reference to a com.esri.arcgis.geodatabase.IGPValue (in)
name - The name (in)
Returns:
The pName
Throws:
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

removeInternalData

public void removeInternalData()
                        throws java.io.IOException,
                               AutomationException
Removes all internal layers and tables.

Specified by:
removeInternalData in interface IGPUtilities2
Throws:
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

getInMemoryWorkspace

public IWorkspace getInMemoryWorkspace()
                                throws java.io.IOException,
                                       AutomationException
Get the virtual workspace.

Specified by:
getInMemoryWorkspace in interface IGPUtilities2
Returns:
A reference to a com.esri.arcgis.geodatabase.IWorkspace
Throws:
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

clearInMemoryWorkspace

public void clearInMemoryWorkspace()
                            throws java.io.IOException,
                                   AutomationException
Clear the virtual workspace.

Specified by:
clearInMemoryWorkspace in interface IGPUtilities2
Throws:
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

openFromString

public java.lang.Object openFromString(java.lang.String nameString)
                                throws java.io.IOException,
                                       AutomationException
Returns the dataset of the given value.

Specified by:
openFromString in interface IGPUtilities2
Parameters:
nameString - The nameString (in)
Returns:
A reference to another Object (IUnknown)
Throws:
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

setupEditSession

public void setupEditSession(IClass pTable)
                      throws java.io.IOException,
                             AutomationException
Starts an edit session if needed.

Specified by:
setupEditSession in interface IGPUtilities2
Parameters:
pTable - A reference to a com.esri.arcgis.geodatabase.IClass (in)
Throws:
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

cleanupEditSession

public void cleanupEditSession(boolean abort)
                        throws java.io.IOException,
                               AutomationException
Cleans up any edit session.

Specified by:
cleanupEditSession in interface IGPUtilities2
Parameters:
abort - The abort (in)
Throws:
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

removeFromMapEx

public void removeFromMapEx(IGPValue pGPValue)
                     throws java.io.IOException,
                            AutomationException
Removes the data/layers specified by the geoprocessing value object from the map.

Specified by:
removeFromMapEx in interface IGPUtilities2
Parameters:
pGPValue - A reference to a com.esri.arcgis.geodatabase.IGPValue (in)
Throws:
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

addToMapEx

public void addToMapEx(IGPValue pGPValue,
                       java.lang.String name,
                       boolean temporary,
                       java.lang.Object pUnkRenderer,
                       boolean visible)
                throws java.io.IOException,
                       AutomationException
Adds the given geoprocessing value object to the application display.

Specified by:
addToMapEx in interface IGPUtilities2
Parameters:
pGPValue - A reference to a com.esri.arcgis.geodatabase.IGPValue (in)
name - The name (in)
temporary - The temporary (in)
pUnkRenderer - A reference to another Object (IUnknown) (in)
visible - The visible (in)
Throws:
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

openLayerFromLocation

public ILayer openLayerFromLocation(java.lang.String catalogPath)
                             throws java.io.IOException,
                                    AutomationException
Returns the layer based upon the given catalog path.

Specified by:
openLayerFromLocation in interface IGPUtilities3
Parameters:
catalogPath - The catalogPath (in)
Returns:
A reference to a com.esri.arcgis.carto.ILayer
Throws:
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

getMessage

public java.lang.String getMessage(int iD)
                            throws java.io.IOException,
                                   AutomationException
Get a given message.

Specified by:
getMessage in interface IGPMessageManager
Parameters:
iD - The iD (in)
Returns:
The msg
Throws:
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

generateMessage

public java.lang.String generateMessage(int type,
                                        int iD)
                                 throws java.io.IOException,
                                        AutomationException
Generate a given message from the message id.

Specified by:
generateMessage in interface IGPMessageManager
Parameters:
type - A com.esri.arcgis.geodatabase.esriGPMessageType constant (in)
iD - The iD (in)
Returns:
The msg
Throws:
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

addMessage

public void addMessage(int type,
                       int iD,
                       IGPMessages msgs)
                throws java.io.IOException,
                       AutomationException
Add a given message from the message id to the messages object.

Specified by:
addMessage in interface IGPMessageManager
Parameters:
type - A com.esri.arcgis.geodatabase.esriGPMessageType constant (in)
iD - The iD (in)
msgs - A reference to a com.esri.arcgis.geodatabase.IGPMessages (in)
Throws:
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

addMessage1Args

public void addMessage1Args(int type,
                            int iD,
                            java.lang.String arg1,
                            IGPMessages msgs)
                     throws java.io.IOException,
                            AutomationException
Add a given message from the message id to the messages object.

Specified by:
addMessage1Args in interface IGPMessageManager
Parameters:
type - A com.esri.arcgis.geodatabase.esriGPMessageType constant (in)
iD - The iD (in)
arg1 - The arg1 (in)
msgs - A reference to a com.esri.arcgis.geodatabase.IGPMessages (in)
Throws:
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

addMessage2Args

public void addMessage2Args(int type,
                            int iD,
                            java.lang.String arg1,
                            java.lang.String arg2,
                            IGPMessages msgs)
                     throws java.io.IOException,
                            AutomationException
Add a given message from the message id to the messages object.

Specified by:
addMessage2Args in interface IGPMessageManager
Parameters:
type - A com.esri.arcgis.geodatabase.esriGPMessageType constant (in)
iD - The iD (in)
arg1 - The arg1 (in)
arg2 - The arg2 (in)
msgs - A reference to a com.esri.arcgis.geodatabase.IGPMessages (in)
Throws:
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

addMessageText

public void addMessageText(int type,
                           int iD,
                           java.lang.String msg,
                           IGPMessages msgs)
                    throws java.io.IOException,
                           AutomationException
Add a given message from the message text to the messages object.

Specified by:
addMessageText in interface IGPMessageManager
Parameters:
type - A com.esri.arcgis.geodatabase.esriGPMessageType constant (in)
iD - The iD (in)
msg - The msg (in)
msgs - A reference to a com.esri.arcgis.geodatabase.IGPMessages (in)
Throws:
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

setMessage

public void setMessage(int type,
                       int iD,
                       int pos,
                       IGPMessages msgs)
                throws java.io.IOException,
                       AutomationException
Set a given message from the message id to the messages object.

Specified by:
setMessage in interface IGPMessageManager
Parameters:
type - A com.esri.arcgis.geodatabase.esriGPMessageType constant (in)
iD - The iD (in)
pos - The pos (in)
msgs - A reference to a com.esri.arcgis.geodatabase.IGPMessages (in)
Throws:
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

setMessage1Args

public void setMessage1Args(int type,
                            int iD,
                            java.lang.String arg1,
                            int pos,
                            IGPMessages msgs)
                     throws java.io.IOException,
                            AutomationException
Set a given message from the message id to the messages object.

Specified by:
setMessage1Args in interface IGPMessageManager
Parameters:
type - A com.esri.arcgis.geodatabase.esriGPMessageType constant (in)
iD - The iD (in)
arg1 - The arg1 (in)
pos - The pos (in)
msgs - A reference to a com.esri.arcgis.geodatabase.IGPMessages (in)
Throws:
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

setMessage2Args

public void setMessage2Args(int type,
                            int iD,
                            java.lang.String arg1,
                            java.lang.String arg2,
                            int pos,
                            IGPMessages msgs)
                     throws java.io.IOException,
                            AutomationException
Set a given message from the message id to the messages object.

Specified by:
setMessage2Args in interface IGPMessageManager
Parameters:
type - A com.esri.arcgis.geodatabase.esriGPMessageType constant (in)
iD - The iD (in)
arg1 - The arg1 (in)
arg2 - The arg2 (in)
pos - The pos (in)
msgs - A reference to a com.esri.arcgis.geodatabase.IGPMessages (in)
Throws:
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

setMessageText

public void setMessageText(int type,
                           int iD,
                           java.lang.String msg,
                           int pos,
                           IGPMessages msgs)
                    throws java.io.IOException,
                           AutomationException
Set a given message from the message text to the messages object.

Specified by:
setMessageText in interface IGPMessageManager
Parameters:
type - A com.esri.arcgis.geodatabase.esriGPMessageType constant (in)
iD - The iD (in)
msg - The msg (in)
pos - The pos (in)
msgs - A reference to a com.esri.arcgis.geodatabase.IGPMessages (in)
Throws:
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

chainMessage

public void chainMessage(int type,
                         int iD)
                  throws java.io.IOException,
                         AutomationException
Chain a given message from the message id.

Specified by:
chainMessage in interface IGPMessageManager
Parameters:
type - A com.esri.arcgis.geodatabase.esriGPMessageType constant (in)
iD - The iD (in)
Throws:
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

chainMessage1Args

public void chainMessage1Args(int type,
                              int iD,
                              java.lang.String arg1)
                       throws java.io.IOException,
                              AutomationException
Chain a given message from the message id.

Specified by:
chainMessage1Args in interface IGPMessageManager
Parameters:
type - A com.esri.arcgis.geodatabase.esriGPMessageType constant (in)
iD - The iD (in)
arg1 - The arg1 (in)
Throws:
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

chainMessage2Args

public void chainMessage2Args(int type,
                              int iD,
                              java.lang.String arg1,
                              java.lang.String arg2)
                       throws java.io.IOException,
                              AutomationException
Chain a given message from the message id.

Specified by:
chainMessage2Args in interface IGPMessageManager
Parameters:
type - A com.esri.arcgis.geodatabase.esriGPMessageType constant (in)
iD - The iD (in)
arg1 - The arg1 (in)
arg2 - The arg2 (in)
Throws:
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

chainMessageText

public void chainMessageText(int type,
                             int iD,
                             java.lang.String msg)
                      throws java.io.IOException,
                             AutomationException
Chain a given message from the message text.

Specified by:
chainMessageText in interface IGPMessageManager
Parameters:
type - A com.esri.arcgis.geodatabase.esriGPMessageType constant (in)
iD - The iD (in)
msg - The msg (in)
Throws:
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

checkForErrors

public void checkForErrors(long fdoError,
                           IGPMessages messages,
                           boolean keepAllErrors)
                    throws java.io.IOException,
                           AutomationException
Check for any errors in the IErrorInfo structure.

Specified by:
checkForErrors in interface IGPMessageManager
Parameters:
fdoError - An error code (in)
messages - A reference to a com.esri.arcgis.geodatabase.IGPMessages (in)
keepAllErrors - The keepAllErrors (in)
Throws:
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

lookForGPChainedErrors

public void lookForGPChainedErrors(IGPMessages messages)
                            throws java.io.IOException,
                                   AutomationException
Transfer any GP errors or warnings to the messages object.

Specified by:
lookForGPChainedErrors in interface IGPMessageManager
Parameters:
messages - A reference to a com.esri.arcgis.geodatabase.IGPMessages (in)
Throws:
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

chainGPMessage

public void chainGPMessage(IGPMessage pMsg)
                    throws java.io.IOException,
                           AutomationException
Chain a given GPMessage.

Specified by:
chainGPMessage in interface IGPMessageManager
Parameters:
pMsg - A reference to a com.esri.arcgis.geodatabase.IGPMessage (in)
Throws:
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.