com.esri.arcgis.catalog
Class GxObjectArray

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

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

GxObject that represents an array of GxObjects.

Product Availability

Available with ArcGIS Desktop.

Supported Platforms

Windows

See Also:
Serialized Form

Constructor Summary
GxObjectArray()
          Constructs a GxObjectArray using ArcGIS Engine.
GxObjectArray(Object obj)
          Deprecated. As of ArcGIS 9.2, replaced by normal Java casts.
GxObjectArray theGxObjectArray = (GxObjectArray) obj;
 
Method Summary
 void empty()
          Removes all objects from the array.
 boolean equals(Object o)
          Compare this object with another
static String getClsid()
          getClsid.
 int getCount()
          The number of objects in the array.
 int hashCode()
          the hashcode for this object
 void insert(int index, IGxObject gxObject)
          Inserts an object into the array before the specified index.
 IGxObject item(int index)
          The object at the given index in the array.
 IGxObject next()
          The next object.
 void remove(int index)
          Removes the object at the specified index in the array.
 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

GxObjectArray

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

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

GxObjectArray

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

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

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

getCount

public int getCount()
             throws IOException,
                    AutomationException
The number of objects in the array.

Product Availability

Available with ArcGIS Desktop.

Supported Platforms

Windows

Specified by:
getCount in interface IGxObjectArray
Returns:
The count
Throws:
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

insert

public void insert(int index,
                   IGxObject gxObject)
            throws IOException,
                   AutomationException
Inserts an object into the array before the specified index. If index is -1, the object is inserted at the end.

Product Availability

Available with ArcGIS Desktop.

Supported Platforms

Windows

Specified by:
insert in interface IGxObjectArray
Parameters:
index - The index (in)
gxObject - A reference to a com.esri.arcgis.catalog.IGxObject (in)
Throws:
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

remove

public void remove(int index)
            throws IOException,
                   AutomationException
Removes the object at the specified index in the array.

Product Availability

Available with ArcGIS Desktop.

Supported Platforms

Windows

Specified by:
remove in interface IGxObjectArray
Parameters:
index - The index (in)
Throws:
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

item

public IGxObject item(int index)
               throws IOException,
                      AutomationException
The object at the given index in the array.

Product Availability

Available with ArcGIS Desktop.

Supported Platforms

Windows

Specified by:
item in interface IGxObjectArray
Parameters:
index - The index (in)
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.

empty

public void empty()
           throws IOException,
                  AutomationException
Removes all objects from the array.

Product Availability

Available with ArcGIS Desktop.

Supported Platforms

Windows

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

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.