com.esri.arcgis.geodatabase
Class NamesEnumerator

java.lang.Object
  extended by com.esri.arcgis.geodatabase.NamesEnumerator
All Implemented Interfaces:
com.esri.arcgis.interop.RemoteObjRef, IEnumName, IEnumNameEdit, Serializable

public class NamesEnumerator
extends Object
implements com.esri.arcgis.interop.RemoteObjRef, IEnumName, IEnumNameEdit

ESRI Name Enumerator object.

Product Availability

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

Supported Platforms

Windows, Solaris, Linux

See Also:
Serialized Form

Constructor Summary
NamesEnumerator()
          Constructs a NamesEnumerator using ArcGIS Engine.
NamesEnumerator(Object obj)
          Deprecated. As of ArcGIS 9.2, replaced by normal Java casts.
NamesEnumerator theNamesEnumerator = (NamesEnumerator) obj;
 
Method Summary
 void add(IName name)
          Adds a Name in the list.
 boolean equals(Object o)
          Compare this object with another
static String getClsid()
          getClsid.
 int hashCode()
          the hashcode for this object
 IName next()
          Obtains the next Name in the list.
 void remove(IName name)
          Removes a Name from the list.
 void removeCurrent()
          Removes current name from the list (when enumerating).
 void reset()
          Resets the current position to the beginning.
 
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

NamesEnumerator

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

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

NamesEnumerator

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

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

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

next

public IName next()
           throws IOException,
                  AutomationException
Obtains the next Name in the list.

Description

The Next method returns the next Name in the enumerator.

Product Availability

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

Supported Platforms

Windows, Solaris, Linux

Specified by:
next in interface IEnumName
Returns:
A reference to a com.esri.arcgis.system.IName
Throws:
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

reset

public void reset()
           throws IOException,
                  AutomationException
Resets the current position to the beginning.

Description

The Reset method resets the enumerator so that the next call to the Next method returns the first Name in the enumerator.

Product Availability

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

Supported Platforms

Windows, Solaris, Linux

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

add

public void add(IName name)
         throws IOException,
                AutomationException
Adds a Name in the list.

Description

Adds the specified Name object to the enumerator.

Product Availability

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

Supported Platforms

Windows, Solaris, Linux

Specified by:
add in interface IEnumNameEdit
Parameters:
name - A reference to a com.esri.arcgis.system.IName (in)
Throws:
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

remove

public void remove(IName name)
            throws IOException,
                   AutomationException
Removes a Name from the list.

Description

Removes the specified Name object from the enumerator.

Product Availability

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

Supported Platforms

Windows, Solaris, Linux

Specified by:
remove in interface IEnumNameEdit
Parameters:
name - A reference to a com.esri.arcgis.system.IName (in)
Throws:
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

removeCurrent

public void removeCurrent()
                   throws IOException,
                          AutomationException
Removes current name from the list (when enumerating).

Description

Removes the current Name object from the enumerator.

Product Availability

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

Supported Platforms

Windows, Solaris, Linux

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