com.esri.arcgis.datasourcesfile
Class ArcInfoItems

java.lang.Object
  extended by com.esri.arcgis.datasourcesfile.ArcInfoItems
All Implemented Interfaces:
IArcInfoItems, IArcInfoItemsEdit, com.esri.arcgis.interop.RemoteObjRef, ISupportErrorInfo, Serializable

public class ArcInfoItems
extends Object
implements com.esri.arcgis.interop.RemoteObjRef, IArcInfoItems, IArcInfoItemsEdit, ISupportErrorInfo

Collection used for creating ArcInfo Items.

Product Availability

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

Supported Platforms

Windows, Solaris, Linux

See Also:
Serialized Form

Constructor Summary
ArcInfoItems()
          Constructs a ArcInfoItems using ArcGIS Engine.
ArcInfoItems(Object obj)
          Deprecated. As of ArcGIS 9.2, replaced by normal Java casts.
ArcInfoItems theArcInfoItems = (ArcInfoItems) obj;
 
Method Summary
 void addItem(IArcInfoItem item)
          Adds an Item to the Items Collection.
 void deleteAllItems()
          Deletes all the Items from the Items Collection.
 void deleteItem(IArcInfoItem item)
          Deletes an Item from the Items Collection.
 boolean equals(Object o)
          Compare this object with another
 void findItem(String name, int[] index)
          Finds the index of the specified Item in the Items Collection.
static String getClsid()
          getClsid.
 IArcInfoItem getItem(int index)
          Item at the specified index in the Items Collection.
 int getItemCount()
          Number of Items in the Items Collection.
 int hashCode()
          the hashcode for this object
 void interfaceSupportsErrorInfo(GUID riid)
          interfaceSupportsErrorInfo
 void setItem(int index, IArcInfoItem rhs2)
          Item at the specified position.
 void setItemCount(int rhs1)
          Number of Items in this Item Collection.
 
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

ArcInfoItems

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

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

ArcInfoItems

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

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

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

getItemCount

public int getItemCount()
                 throws IOException,
                        AutomationException
Number of Items in the Items Collection.

Product Availability

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

Supported Platforms

Windows, Solaris, Linux

Specified by:
getItemCount in interface IArcInfoItems
Returns:
The numItems
Throws:
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

getItem

public IArcInfoItem getItem(int index)
                     throws IOException,
                            AutomationException
Item at the specified index in the Items Collection.

Product Availability

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

Specified by:
getItem in interface IArcInfoItems
Parameters:
index - The index (in)
Returns:
A reference to a com.esri.arcgis.datasourcesfile.IArcInfoItem
Throws:
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

findItem

public void findItem(String name,
                     int[] index)
              throws IOException,
                     AutomationException
Finds the index of the specified Item in the Items Collection.

Product Availability

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

Supported Platforms

Windows, Solaris, Linux

Specified by:
findItem in interface IArcInfoItems
Parameters:
name - The name (in)
index - The index (out: use single element array)
Throws:
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

setItemCount

public void setItemCount(int rhs1)
                  throws IOException,
                         AutomationException
Number of Items in this Item Collection.

Product Availability

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

Supported Platforms

Windows, Solaris, Linux

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

setItem

public void setItem(int index,
                    IArcInfoItem rhs2)
             throws IOException,
                    AutomationException
Item at the specified position.

Product Availability

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

Specified by:
setItem in interface IArcInfoItemsEdit
Parameters:
index - The index (in)
rhs2 - A reference to a com.esri.arcgis.datasourcesfile.IArcInfoItem (in)
Throws:
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

addItem

public void addItem(IArcInfoItem item)
             throws IOException,
                    AutomationException
Adds an Item to the Items Collection.

Product Availability

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

Supported Platforms

Windows, Solaris, Linux

Specified by:
addItem in interface IArcInfoItemsEdit
Parameters:
item - A reference to a com.esri.arcgis.datasourcesfile.IArcInfoItem (in)
Throws:
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

deleteItem

public void deleteItem(IArcInfoItem item)
                throws IOException,
                       AutomationException
Deletes an Item from the Items Collection.

Product Availability

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

Supported Platforms

Windows, Solaris, Linux

Specified by:
deleteItem in interface IArcInfoItemsEdit
Parameters:
item - A reference to a com.esri.arcgis.datasourcesfile.IArcInfoItem (in)
Throws:
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

deleteAllItems

public void deleteAllItems()
                    throws IOException,
                           AutomationException
Deletes all the Items from the Items Collection.

Product Availability

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

Supported Platforms

Windows, Solaris, Linux

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

interfaceSupportsErrorInfo

public void interfaceSupportsErrorInfo(GUID riid)
                                throws IOException,
                                       AutomationException
interfaceSupportsErrorInfo

Description

Indicates whether the interface supports IErrorInfo.

Product Availability

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

Supported Platforms

Windows, Solaris, Linux

Specified by:
interfaceSupportsErrorInfo in interface ISupportErrorInfo
Parameters:
riid - A Structure: com.esri.arcgis.support.ms.stdole.GUID (in)
Throws:
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.