com.esri.arcgis.catalog
Class EnumGxObject

java.lang.Object
  extended by com.esri.arcgis.catalog.EnumGxObject
All Implemented Interfaces:
IEnumGxObject, com.esri.arcgis.interop.RemoteObjRef, Serializable

public class EnumGxObject
extends Object
implements com.esri.arcgis.interop.RemoteObjRef, IEnumGxObject

Provides access to a set of GxObjects.

Product Availability

Available with ArcGIS Desktop.

Supported Platforms

Windows

See Also:
Serialized Form

Constructor Summary
EnumGxObject(Object obj)
          Construct a EnumGxObject using a reference to such an object returned from ArcGIS Engine or Server.
 
Method Summary
 boolean equals(Object o)
          Compare this object with another
 int hashCode()
          the hashcode for this object
 IGxObject next()
          The next object.
 void reset()
          Starts the enumeration at the beginning.
 
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

EnumGxObject

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

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

Throws:
IOException - if there are interop problems EnumGxObject theEnumGxObject = (EnumGxObject) 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

next

public IGxObject next()
               throws IOException,
                      AutomationException
The next object.

Product Availability

Available with ArcGIS Desktop.

Supported Platforms

Windows

Specified by:
next in interface IEnumGxObject
Returns:
A reference to a com.esri.arcgis.catalog.IGxObject
Throws:
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

reset

public void reset()
           throws IOException,
                  AutomationException
Starts the enumeration at the beginning.

Product Availability

Available with ArcGIS Desktop.

Supported Platforms

Windows

Specified by:
reset in interface IEnumGxObject
Throws:
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.