com.esri.arcgis.datasourcesfile
Class ArcInfoItems

java.lang.Object
  extended bycom.esri.arcgis.datasourcesfile.ArcInfoItems
All Implemented Interfaces:
IArcInfoItems, IArcInfoItemsEdit, ISupportErrorInfo, java.io.Serializable

public class ArcInfoItems
extends java.lang.Object
implements 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(java.lang.Object obj)
          Deprecated. As of ArcGIS 9.2, replaced by normal Java casts.
 
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(java.lang.Object o)
          Compare this object with another
 void findItem(java.lang.String name, int[] index)
          Finds the index of the specified Item in the Items Collection.
 IArcInfoItems getAsIArcInfoItems()
          Deprecated. No replacement. The object reference can be directly used where the implemented interface is needed.
 IArcInfoItemsEdit getAsIArcInfoItemsEdit()
          Deprecated. No replacement. The object reference can be directly used where the implemented interface is needed.
 ISupportErrorInfo getAsISupportErrorInfo()
          Deprecated. No replacement. The object reference can be directly used where the implemented interface is needed.
static java.lang.String 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)
          Supported Platforms
 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
 

Constructor Detail

ArcInfoItems

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

Throws:
java.io.IOException - if there are interop problems
java.net.UnknownHostException - if there are interop problems

ArcInfoItems

public ArcInfoItems(java.lang.Object obj)
             throws java.io.IOException
Deprecated. As of ArcGIS 9.2, replaced by normal Java casts.

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.
ArcInfoItems theArcInfoItems = (ArcInfoItems) obj;

Parameters:
obj - an object returned from ArcGIS Engine or Server
Throws:
java.io.IOException - if there are interop problems
Method Detail

getClsid

public static java.lang.String getClsid()

getAsIArcInfoItems

public IArcInfoItems getAsIArcInfoItems()
Deprecated. No replacement. The object reference can be directly used where the implemented interface is needed.


getAsIArcInfoItemsEdit

public IArcInfoItemsEdit getAsIArcInfoItemsEdit()
Deprecated. No replacement. The object reference can be directly used where the implemented interface is needed.


getAsISupportErrorInfo

public ISupportErrorInfo getAsISupportErrorInfo()
Deprecated. No replacement. The object reference can be directly used where the implemented interface is needed.


equals

public boolean equals(java.lang.Object o)
Compare this object with another


hashCode

public int hashCode()
the hashcode for this object


getItemCount

public int getItemCount()
                 throws java.io.IOException,
                        AutomationException
Description copied from interface: IArcInfoItems
Number of Items in the Items Collection.

Supported Platforms

Windows, Solaris, Linux

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

getItem

public IArcInfoItem getItem(int index)
                     throws java.io.IOException,
                            AutomationException
Description copied from interface: IArcInfoItems
Item at the specified index in the Items Collection.

Supported Platforms

Windows, Solaris, Linux

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

findItem

public void findItem(java.lang.String name,
                     int[] index)
              throws java.io.IOException,
                     AutomationException
Description copied from interface: IArcInfoItems
Finds the index of the specified Item in the Items Collection.

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:
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

setItemCount

public void setItemCount(int rhs1)
                  throws java.io.IOException,
                         AutomationException
Description copied from interface: IArcInfoItemsEdit
Number of Items in this Item Collection.

Supported Platforms

Windows, Solaris, Linux

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

setItem

public void setItem(int index,
                    IArcInfoItem rhs2)
             throws java.io.IOException,
                    AutomationException
Description copied from interface: IArcInfoItemsEdit
Item at the specified position.

Supported Platforms

Windows, Solaris, Linux

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

addItem

public void addItem(IArcInfoItem item)
             throws java.io.IOException,
                    AutomationException
Description copied from interface: IArcInfoItemsEdit
Adds an Item to the Items Collection.

Supported Platforms

Windows, Solaris, Linux

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

deleteItem

public void deleteItem(IArcInfoItem item)
                throws java.io.IOException,
                       AutomationException
Description copied from interface: IArcInfoItemsEdit
Deletes an Item from the Items Collection.

Supported Platforms

Windows, Solaris, Linux

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

deleteAllItems

public void deleteAllItems()
                    throws java.io.IOException,
                           AutomationException
Description copied from interface: IArcInfoItemsEdit
Deletes all the Items from the Items Collection.

Supported Platforms

Windows, Solaris, Linux

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

interfaceSupportsErrorInfo

public void interfaceSupportsErrorInfo(GUID riid)
                                throws java.io.IOException,
                                       AutomationException
Description copied from interface: ISupportErrorInfo

Supported Platforms

Windows, Solaris, Linux

Description

Indicates whether the interface supports IErrorInfo.

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