com.esri.arcgis.geodatabase
Class EnumNetEIDArray

java.lang.Object
  extended bycom.esri.arcgis.geodatabase.EnumNetEIDArray
All Implemented Interfaces:
IEnumNetEID, IEnumNetEIDBuilder, IEnumNetEIDBuilderGEN, java.io.Serializable

public class EnumNetEIDArray
extends java.lang.Object
implements IEnumNetEID, IEnumNetEIDBuilderGEN, IEnumNetEIDBuilder

A container for defining a network element ID (EID) enumeration.

Product Availability

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

Supported Platforms

Windows, Solaris, Linux

See Also:
Serialized Form

Constructor Summary
EnumNetEIDArray()
          Constructs a EnumNetEIDArray using ArcGIS Engine.
EnumNetEIDArray(java.lang.Object obj)
          Deprecated. As of ArcGIS 9.2, replaced by normal Java casts.
 
Method Summary
 void add(int eID)
          Adds an element to this EID enumeration.
 boolean equals(java.lang.Object o)
          Compare this object with another
 IEnumNetEID getAsIEnumNetEID()
          Deprecated. No replacement. The object reference can be directly used where the implemented interface is needed.
 IEnumNetEIDBuilder getAsIEnumNetEIDBuilder()
          Deprecated. No replacement. The object reference can be directly used where the implemented interface is needed.
 IEnumNetEIDBuilderGEN getAsIEnumNetEIDBuilderGEN()
          Deprecated. No replacement. The object reference can be directly used where the implemented interface is needed.
static java.lang.String getClsid()
           
 int getCount()
          Number of network elements in this enumeration.
 int getElementType()
          Type of network elements in this enumeration.
 INetwork getNetwork()
          Network from which these elements came.
 int hashCode()
          the hashcode for this object
 int last()
          Forces the enumerator pointing at the last element in the enumeration and returns the last element.
 int next()
          Moves the enumerator forward and returns the network element pointed by the enumerator.
 int prev()
          Returns the network element pointed by the enumerator and moves the enumerator backward.
 void reset()
          Forces the enumerator pointing before first network element; a subsequent next gives the first network element in the enumeration.
 void setEIDs(int[] rhs1)
          Array of EIDs in this enumeration.
 void setEIDs(int count, int[] rhs2)
          Array of EIDs in this enumeration.
 void setElementType(int rhs1)
          Type of network elements to be in this enumeration.
 void setNetworkByRef(INetwork rhs1)
          Network from which these elements came.
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

EnumNetEIDArray

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

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

EnumNetEIDArray

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

Construct a EnumNetEIDArray using a reference to such an object returned from ArcGIS Engine or Server. This is semantically equivalent to casting obj to EnumNetEIDArray.
EnumNetEIDArray theEnumNetEIDArray = (EnumNetEIDArray) 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()

getAsIEnumNetEID

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


getAsIEnumNetEIDBuilderGEN

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


getAsIEnumNetEIDBuilder

public IEnumNetEIDBuilder getAsIEnumNetEIDBuilder()
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


getNetwork

public INetwork getNetwork()
                    throws java.io.IOException,
                           AutomationException
Description copied from interface: IEnumNetEID
Network from which these elements came.

Supported Platforms

Windows, Solaris, Linux

Specified by:
getNetwork in interface IEnumNetEID
Returns:
A reference to a com.esri.arcgis.geodatabase.INetwork
Throws:
AutomationException - If the ArcObject component throws an exception.
java.io.IOException - If there are interop problems.

getCount

public int getCount()
             throws java.io.IOException,
                    AutomationException
Description copied from interface: IEnumNetEID
Number of network elements in this enumeration.

Supported Platforms

Windows, Solaris, Linux

Description

Returns the number of elements in the enumeration.

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

getElementType

public int getElementType()
                   throws java.io.IOException,
                          AutomationException
Description copied from interface: IEnumNetEID
Type of network elements in this enumeration.

Supported Platforms

Windows, Solaris, Linux

Remarks

The element type can be:

esriETEdge

esriETJunction

esriETNone

esriETTurn

Turns are only available for street networks and not utility networks.

Specified by:
getElementType in interface IEnumNetEID
Returns:
A com.esri.arcgis.geodatabase.esriElementType constant
Throws:
AutomationException - If the ArcObject component throws an exception.
java.io.IOException - If there are interop problems.

reset

public void reset()
           throws java.io.IOException,
                  AutomationException
Description copied from interface: IEnumNetEID
Forces the enumerator pointing before first network element; a subsequent next gives the first network element in the enumeration.

Supported Platforms

Windows, Solaris, Linux

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

next

public int next()
         throws java.io.IOException,
                AutomationException
Description copied from interface: IEnumNetEID
Moves the enumerator forward and returns the network element pointed by the enumerator.

Supported Platforms

Windows, Solaris, Linux

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

last

public int last()
         throws java.io.IOException,
                AutomationException
Description copied from interface: IEnumNetEID
Forces the enumerator pointing at the last element in the enumeration and returns the last element.

Supported Platforms

Windows, Solaris, Linux

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

prev

public int prev()
         throws java.io.IOException,
                AutomationException
Description copied from interface: IEnumNetEID
Returns the network element pointed by the enumerator and moves the enumerator backward.

Supported Platforms

Windows, Solaris, Linux

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

setNetworkByRef

public void setNetworkByRef(INetwork rhs1)
                     throws java.io.IOException,
                            AutomationException
Description copied from interface: IEnumNetEIDBuilderGEN
Network from which these elements came.

Specified by:
setNetworkByRef in interface IEnumNetEIDBuilderGEN
Parameters:
rhs1 - A reference to a com.esri.arcgis.geodatabase.INetwork (in)
Throws:
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

add

public void add(int eID)
         throws java.io.IOException,
                AutomationException
Description copied from interface: IEnumNetEIDBuilderGEN
Adds an element to this EID enumeration.

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

setElementType

public void setElementType(int rhs1)
                    throws java.io.IOException,
                           AutomationException
Description copied from interface: IEnumNetEIDBuilderGEN
Type of network elements to be in this enumeration.

Specified by:
setElementType in interface IEnumNetEIDBuilderGEN
Parameters:
rhs1 - A com.esri.arcgis.geodatabase.esriElementType constant (in)
Throws:
AutomationException - If the ArcObject component throws an exception.
java.io.IOException - If there are interop problems.

setEIDs

public void setEIDs(int[] rhs1)
             throws java.io.IOException,
                    AutomationException
Description copied from interface: IEnumNetEIDBuilderGEN
Array of EIDs in this enumeration.

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

setEIDs

public void setEIDs(int count,
                    int[] rhs2)
             throws java.io.IOException,
                    AutomationException
Description copied from interface: IEnumNetEIDBuilder
Array of EIDs in this enumeration.

Supported Platforms

Windows, Solaris, Linux

This method is not callable from Java.  Please use IEnumNetEIDBuilderGEN::EIDs.

You can also add EIDs one at a time using the IEnumNetEIDBuilder::Add method.

Specified by:
setEIDs in interface IEnumNetEIDBuilder
Parameters:
count - The count (in)
rhs2 - The rhs2 (in)
Throws:
AutomationException - If the ArcObject component throws an exception.
java.io.IOException - If there are interop problems.