com.esri.arcgis.geodatabase
Class EnumNetworkElement

java.lang.Object
  extended by com.esri.arcgis.geodatabase.EnumNetworkElement
All Implemented Interfaces:
IEnumNetworkElement, com.esri.arcgis.interop.RemoteObjRef, Serializable

public class EnumNetworkElement
extends Object
implements com.esri.arcgis.interop.RemoteObjRef, IEnumNetworkElement

A container for network elements.

Description

The EnumNetworkElement object is a collection of network element objects. The network element objects can be retrieved one by one by repeatedly calling the Next method on the IEnumNetworkElement interface.

Product Availability

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

See Also:
Serialized Form

Constructor Summary
EnumNetworkElement(Object obj)
          Construct a EnumNetworkElement using a reference to such an object returned from ArcGIS Engine or Server.
 
Method Summary
 boolean equals(Object o)
          Compare this object with another
 int hashCode()
          the hashcode for this object
 INetworkElement next()
          Moves the enumerator forward and returns the network element pointed by the enumerator using query semantics.
 void reset()
          Forces the enumerator pointing before first network element; a subsequent next gives the first network element in the enumeration.
 
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

EnumNetworkElement

public EnumNetworkElement(Object obj)
                   throws IOException
Construct a EnumNetworkElement using a reference to such an object returned from ArcGIS Engine or Server. This is semantically equivalent to casting obj to EnumNetworkElement.
Casting to this class from the return value of a method will not work, as this class represents an abstract class in ArcObjects.
*
EnumNetworkElement o = (EnumNetworkElement)obj; // will not work

EnumNetworkElement o = new EnumNetworkElement(obj); // Use this constructor instead
* @param obj an object returned from ArcGIS Engine or Server

Throws:
IOException - if there are interop problems EnumNetworkElement theEnumNetworkElement = (EnumNetworkElement) obj;
Method Detail

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

reset

public void reset()
           throws IOException,
                  AutomationException
Forces the enumerator pointing before first network element; a subsequent next gives the first network element in the enumeration.

Product Availability

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

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

next

public INetworkElement next()
                     throws IOException,
                            AutomationException
Moves the enumerator forward and returns the network element pointed by the enumerator using query semantics.

Product Availability

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

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