com.esri.arcgis.catalogUI
Class DataAdder

java.lang.Object
  extended by com.esri.arcgis.catalogUI.DataAdder
All Implemented Interfaces:
IDataAdder, com.esri.arcgis.interop.RemoteObjRef, Serializable

public class DataAdder
extends Object
implements com.esri.arcgis.interop.RemoteObjRef, IDataAdder

Provides access to the data adder utility class.

Product Availability

Available with ArcGIS Desktop.

See Also:
Serialized Form

Constructor Summary
DataAdder()
          Constructs a DataAdder using ArcGIS Engine.
DataAdder(Object obj)
          Deprecated. As of ArcGIS 9.2, replaced by normal Java casts.
DataAdder theDataAdder = (DataAdder) obj;
 
Method Summary
 void addDatasetToCurrentApplication(IName datasetName)
          Adds a dataset to the current running application.
 void addDataToCurrentApplication(IEnumGxObject datasets)
          Adds data to the current running application.
 boolean equals(Object o)
          Compare this object with another
static String getClsid()
          getClsid.
 int hashCode()
          the hashcode for this object
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface com.esri.arcgis.interop.RemoteObjRef
getJintegraDispatch, release
 

Constructor Detail

DataAdder

public DataAdder()
          throws IOException,
                 UnknownHostException
Constructs a DataAdder using ArcGIS Engine.

Throws:
IOException - if there are interop problems
UnknownHostException - if there are interop problems

DataAdder

public DataAdder(Object obj)
          throws IOException
Deprecated. As of ArcGIS 9.2, replaced by normal Java casts.
DataAdder theDataAdder = (DataAdder) obj;

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

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

getClsid

public static String getClsid()
getClsid.


equals

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

Overrides:
equals in class Object

hashCode

public int hashCode()
the hashcode for this object

Overrides:
hashCode in class Object

addDataToCurrentApplication

public void addDataToCurrentApplication(IEnumGxObject datasets)
                                 throws IOException,
                                        AutomationException
Adds data to the current running application.

Product Availability

Available with ArcGIS Desktop.

Specified by:
addDataToCurrentApplication in interface IDataAdder
Parameters:
datasets - A reference to a com.esri.arcgis.catalog.IEnumGxObject (in)
Throws:
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

addDatasetToCurrentApplication

public void addDatasetToCurrentApplication(IName datasetName)
                                    throws IOException,
                                           AutomationException
Adds a dataset to the current running application.

Product Availability

Available with ArcGIS Desktop.

Specified by:
addDatasetToCurrentApplication in interface IDataAdder
Parameters:
datasetName - A reference to a com.esri.arcgis.system.IName (in)
Throws:
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.