com.esri.arcgis.carto
Class FieldInfoSet

java.lang.Object
  extended by com.esri.arcgis.carto.FieldInfoSet
All Implemented Interfaces:
IFieldInfoSet, com.esri.arcgis.interop.RemoteObjRef, Serializable

public class FieldInfoSet
extends Object
implements com.esri.arcgis.interop.RemoteObjRef, IFieldInfoSet

Maintains an ordered set of field info objets.

Product Availability

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

See Also:
Serialized Form

Constructor Summary
FieldInfoSet()
          Constructs a FieldInfoSet using ArcGIS Engine.
FieldInfoSet(Object obj)
          Deprecated. As of ArcGIS 9.2, replaced by normal Java casts.
FieldInfoSet theFieldInfoSet = (FieldInfoSet) obj;
 
Method Summary
 void add(String fieldName, IFieldInfo fieldInfo)
          Adds the given fieldinfo to the end of the set.
 void clear()
          Empties the set of fields.
 boolean equals(Object o)
          Compare this object with another
 IFieldInfo find(String fieldName)
          Returns the fieldinfo for the field with the specified name.
static String getClsid()
          getClsid.
 int getCount()
          The number of fields.
 IFieldInfo getFieldInfo(int index)
          Extended field information for the field at the specified index.
 String getFieldName(int index)
          The field name at the specified index.
 int hashCode()
          the hashcode for this object
 void remove(String fieldName)
          Removes the field with the specified name.
 
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

FieldInfoSet

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

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

FieldInfoSet

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

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

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 fields.

Product Availability

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

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

getFieldInfo

public IFieldInfo getFieldInfo(int index)
                        throws IOException,
                               AutomationException
Extended field information for the field at the specified index.

Product Availability

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

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

getFieldName

public String getFieldName(int index)
                    throws IOException,
                           AutomationException
The field name at the specified index.

Product Availability

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

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

add

public void add(String fieldName,
                IFieldInfo fieldInfo)
         throws IOException,
                AutomationException
Adds the given fieldinfo to the end of the set.

Product Availability

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

Specified by:
add in interface IFieldInfoSet
Parameters:
fieldName - The fieldName (in)
fieldInfo - A reference to a com.esri.arcgis.geodatabase.IFieldInfo (in)
Throws:
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

clear

public void clear()
           throws IOException,
                  AutomationException
Empties the set of fields.

Product Availability

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

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

find

public IFieldInfo find(String fieldName)
                throws IOException,
                       AutomationException
Returns the fieldinfo for the field with the specified name.

Product Availability

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

Specified by:
find in interface IFieldInfoSet
Parameters:
fieldName - The fieldName (in)
Returns:
A reference to a com.esri.arcgis.geodatabase.IFieldInfo
Throws:
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

remove

public void remove(String fieldName)
            throws IOException,
                   AutomationException
Removes the field with the specified name.

Product Availability

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

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