com.esri.arcgis.geodatabase
Interface IObjects

All Superinterfaces:
Serializable
All Known Implementing Classes:
IObjectsProxy, Objects

public interface IObjects
extends Serializable

Provides access to members that manipulate a collection of objects.

Product Availability

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


Method Summary
 int count(IUID classFilter)
          The number of objects in the array that belong to a specific class.
 Object get(int index)
          Retrieves an object from the array by index.
 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.
 

Method Detail

count

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

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

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

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

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

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

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

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

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

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.