com.esri.arcgis.geodatabase
Class InvalidObjectInfo

java.lang.Object
  extended by com.esri.arcgis.geodatabase.InvalidObjectInfo
All Implemented Interfaces:
IInvalidObjectInfo, com.esri.arcgis.interop.RemoteObjRef, Serializable

public class InvalidObjectInfo
extends Object
implements com.esri.arcgis.interop.RemoteObjRef, IInvalidObjectInfo

Esri Invalid Object Info object.

Product Availability

Available with ArcGIS Engine, ArcGIS Desktop, and ArcGIS Server.

Supported Platforms

Windows, Solaris, Linux

See Also:
Serialized Form

Constructor Summary
InvalidObjectInfo(Object obj)
          Construct a InvalidObjectInfo using a reference to such an object returned from ArcGIS Engine or Server.
 
Method Summary
 boolean equals(Object o)
          Compare this object with another
 String getErrorDescription()
          The description of the error in converting the feature/row.
 int getInvalidObjectID()
          The object ID that did not get convert.
 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

InvalidObjectInfo

public InvalidObjectInfo(Object obj)
                  throws IOException
Construct a InvalidObjectInfo using a reference to such an object returned from ArcGIS Engine or Server. This is semantically equivalent to casting obj to InvalidObjectInfo.
Casting to this class from the return value of a method will not work, as this class represents an abstract class in ArcObjects.
*
InvalidObjectInfo o = (InvalidObjectInfo)obj; // will not work

InvalidObjectInfo o = new InvalidObjectInfo(obj); // Use this constructor instead
* @param obj an object returned from ArcGIS Engine or Server

Throws:
IOException - if there are interop problems InvalidObjectInfo theInvalidObjectInfo = (InvalidObjectInfo) obj;
Method Detail

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

getInvalidObjectID

public int getInvalidObjectID()
                       throws IOException,
                              AutomationException
The object ID that did not get convert.

Remarks

The InvalidObjectID will be –1 unless the source data is in a geodatabase.

Product Availability

Available with ArcGIS Engine, ArcGIS Desktop, and ArcGIS Server.

Supported Platforms

Windows, Solaris, Linux

Specified by:
getInvalidObjectID in interface IInvalidObjectInfo
Returns:
The featureID
Throws:
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

getErrorDescription

public String getErrorDescription()
                           throws IOException,
                                  AutomationException
The description of the error in converting the feature/row.

Remarks

The IInvalidObjectInfo interface returns information about an object that could not be loaded.

One example of ErrorDescription is: “The coordinates or measures are out of bounds.”

Product Availability

Available with ArcGIS Engine, ArcGIS Desktop, and ArcGIS Server.

Supported Platforms

Windows, Solaris, Linux

Specified by:
getErrorDescription in interface IInvalidObjectInfo
Returns:
The invalidFeatureErrorDescription
Throws:
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.