com.esri.arcgis.geodatabase
Class NetElementClass

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

public class NetElementClass
extends Object
implements com.esri.arcgis.interop.RemoteObjRef, INetElementClass

A container for describing a class in the network.

Product Availability

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

Supported Platforms

Windows, Solaris, Linux

See Also:
Serialized Form

Constructor Summary
NetElementClass(Object obj)
          Construct a NetElementClass 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 getUserClassID()
          UserClassID of an element class in the logical network.
 int hashCode()
          the hashcode for this object
 
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

NetElementClass

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

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

Throws:
IOException - if there are interop problems NetElementClass theNetElementClass = (NetElementClass) 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

getUserClassID

public int getUserClassID()
                   throws IOException,
                          AutomationException
UserClassID of an element class in the logical network.

Remarks

Each NetElementClass in a network has a unique identifier called a UserClassID.

Product Availability

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

Supported Platforms

Windows, Solaris, Linux

Specified by:
getUserClassID in interface INetElementClass
Returns:
The userClassID
Throws:
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.