com.esri.arcgis.datasourcesfile
Class SMNetAttribute

java.lang.Object
  extended by com.esri.arcgis.datasourcesfile.SMNetAttribute
All Implemented Interfaces:
ISMNetAttribute, ISMNetAttribute2, com.esri.arcgis.interop.RemoteObjRef, Serializable

public class SMNetAttribute
extends Object
implements com.esri.arcgis.interop.RemoteObjRef, ISMNetAttribute, ISMNetAttribute2

Information about network attribute properties.

Product Availability

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

See Also:
Serialized Form

Constructor Summary
SMNetAttribute(Object obj)
          Construct a SMNetAttribute using a reference to such an object returned from ArcGIS Engine or Server.
 
Method Summary
 boolean equals(Object o)
          Compare this object with another
 String getName()
          The network attribute name.
 int getType()
          The network attribute type.
 int getUsageType()
          The network attribute usage type.
 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

SMNetAttribute

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

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

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

getName

public String getName()
               throws IOException,
                      AutomationException
The network attribute name.

Description

Contains the name of the network attribute property.

Product Availability

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

Specified by:
getName in interface ISMNetAttribute
Returns:
The pVal
Throws:
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

getType

public int getType()
            throws IOException,
                   AutomationException
The network attribute type. Returns an esriSMNetAttributeType constant.

Description

Contains the type of the network attribute.

Product Availability

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

Specified by:
getType in interface ISMNetAttribute
Returns:
A com.esri.arcgis.datasourcesfile.esriSMNetAttributeType constant
Throws:
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

getUsageType

public int getUsageType()
                 throws IOException,
                        AutomationException
The network attribute usage type. Returns an esriSMNetAttributeUsageType constant.

Product Availability

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

Specified by:
getUsageType in interface ISMNetAttribute2
Returns:
A com.esri.arcgis.datasourcesfile.esriSMNetAttributeUsageType constant
Throws:
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.