com.esri.arcgis.geodatabase
Class Objects

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

public class Objects
extends Object
implements com.esri.arcgis.interop.RemoteObjRef, IObjects

The Objects CoClass.

Product Availability

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

Supported Platforms

Windows, Solaris, Linux

See Also:
Serialized Form

Constructor Summary
Objects()
          Constructs a Objects using ArcGIS Engine.
Objects(Object obj)
          Construct a Objects using a reference to such an object returned from ArcGIS Engine or Server.
 
Method Summary
 int count(IUID classFilter)
          The number of objects in the array that belong to a specific class.
 boolean equals(Object o)
          Compare this object with another
 Object get(int index)
          Retrieves an object from the array by index.
static String getClsid()
          getClsid.
 int hashCode()
          the hashcode for this object
 void insert(int index, Object object, IUID cLSID)
          Insert object into the array at the given index.
 void remove(int index, int count)
          Removes 'count' number of objects from the array starting at the given index.
 Object set(int index, Object object, IUID cLSID)
          Add an object at the given index replacing the existing object, which is returned.
 
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

Objects

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

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

Objects

public Objects(Object obj)
        throws IOException
Construct a Objects using a reference to such an object returned from ArcGIS Engine or Server. This is semantically equivalent to casting obj to Objects.

Parameters:
obj - an object returned from ArcGIS Engine or Server
Throws:
IOException - if there are interop problems Objects theObjects = (Objects) obj;
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

count

public int count(IUID classFilter)
          throws IOException,
                 AutomationException
The number of objects in the array that belong to a specific class.

Product Availability

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

Supported Platforms

Windows, Solaris, Linux

Specified by:
count in interface IObjects
Parameters:
classFilter - A reference to a com.esri.arcgis.system.IUID (in)
Returns:
The count
Throws:
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

insert

public void insert(int index,
                   Object object,
                   IUID cLSID)
            throws IOException,
                   AutomationException
Insert object into the array at the given index.

Product Availability

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

Supported Platforms

Windows, Solaris, Linux

Specified by:
insert in interface IObjects
Parameters:
index - The index (in)
object - A reference to another Object (IUnknown) (in)
cLSID - A reference to a com.esri.arcgis.system.IUID (in)
Throws:
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

remove

public void remove(int index,
                   int count)
            throws IOException,
                   AutomationException
Removes 'count' number of objects from the array starting at the given index.

Product Availability

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

Supported Platforms

Windows, Solaris, Linux

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

get

public Object get(int index)
           throws IOException,
                  AutomationException
Retrieves an object from the array by index.

Product Availability

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

Supported Platforms

Windows, Solaris, Linux

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

set

public Object set(int index,
                  Object object,
                  IUID cLSID)
           throws IOException,
                  AutomationException
Add an object at the given index replacing the existing object, which is returned.

Product Availability

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

Supported Platforms

Windows, Solaris, Linux

Specified by:
set in interface IObjects
Parameters:
index - The index (in)
object - A reference to another Object (IUnknown) (in)
cLSID - A reference to a com.esri.arcgis.system.IUID (in)
Returns:
A reference to another Object (IUnknown)
Throws:
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.