|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.esri.arcgis.interop.Dispatch
com.esri.arcgis.geodatabase.INetworkAttributeProxy
public class INetworkAttributeProxy
Provides access to members that specify the properties of an attribute in a network dataset.
The INetworkAttribute and INetworkAttribute2 interfaces are used to access the properties of the network attribute, such as its name and usage type.
To access the NetworkAttribute or EvaluatedNetworkAttribute object for an existing network dataset attribute, use the Attribute, AttributeByID, or AttributeByName methods on the INetworkDataset interface.
The INetworkAttribute and INetworkAttribute2 interfaces are also used to define a new network attribute. To create a new network attribute, cocreate an EvaluatedNetworkAttribute object, specify its properties, and pass the object to the INetworkBuild::AddAttribute method on the network dataset.
| Field Summary |
|---|
| Fields inherited from class com.esri.arcgis.interop.Dispatch |
|---|
DISPATCH_METHOD, DISPATCH_PROPERTYGET, DISPATCH_PROPERTYPUT, DISPATCH_PROPERTYPUTREF, E |
| Constructor Summary | |
|---|---|
|
INetworkAttributeProxy()
|
|
INetworkAttributeProxy(Object obj)
|
protected |
INetworkAttributeProxy(Object obj,
String iid)
|
| Method Summary | |
|---|---|
void |
addListener(String iidStr,
Object theListener,
Object theSource)
|
int |
getDataType()
Type of data used in this network attribute. |
int |
getID()
Unique identifier of this network attribute. |
String |
getName()
Name of this network attribute. |
int |
getUnits()
Units of this network attribute. |
int |
getUsageType()
Usage type of this network attribute. |
void |
readExternal(ObjectInput in)
|
void |
removeListener(String iidStr,
Object theListener)
|
void |
setDataType(int dataType)
Type of data used in this network attribute. |
void |
setName(String attributeName)
Name of this network attribute. |
void |
setUnits(int units)
Units of this network attribute. |
void |
setUsageType(int usageType)
Usage type of this network attribute. |
void |
writeExternal(ObjectOutput out)
|
| Methods inherited from class com.esri.arcgis.interop.Dispatch |
|---|
bindUsingMoniker, constructVtblPosTable, convertToNative, cookieForListener, createDispatch, createObjrefMonikerDisplayName, equals, getActiveObject, getActiveObject, getDefaultProperty, getDispatchIdOfName, getLastErrorCode, getMtsObjectContext, getObjRef, getPropertyByName, getPropertyByName, getVtblPos, hashCode, initDispatch, invoke, invokeMethodByName, invokeMethodByName, invokeMethodByName, invokePropertyGetByName, invokePropertyPutByName, invokePropertyPutByRefByName, isNativeMode, isObjRef, queryInterface, release, setNativeMode, setPropertyByName, toString, vtblInvoke |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public INetworkAttributeProxy()
public INetworkAttributeProxy(Object obj)
throws IOException
IOException
protected INetworkAttributeProxy(Object obj,
String iid)
throws IOException
IOException| Method Detail |
|---|
public void addListener(String iidStr,
Object theListener,
Object theSource)
throws IOException
addListener in class com.esri.arcgis.interop.DispatchIOException
public void removeListener(String iidStr,
Object theListener)
throws IOException
removeListener in class com.esri.arcgis.interop.DispatchIOException
public String getName()
throws IOException,
AutomationException
getName in interface INetworkAttributeIOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public void setName(String attributeName)
throws IOException,
AutomationException
setName in interface INetworkAttributeattributeName - The attributeName (in)
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public int getID()
throws IOException,
AutomationException
getID in interface INetworkAttributeIOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public int getDataType()
throws IOException,
AutomationException
The DataType for the network attribute can be either Integer, Float, Double, or Boolean.
Depending on the UsageType for the network attribute, only certain DataTypes are allowed:
| UsageType: | Allowed DataTypes: |
| esriNAUTCost | esriNADTInteger, esriNADTFloat, esriNADTDouble |
| esriNAUTDescriptor | esriNADTInteger, esriNADTFloat, esriNADTDouble, esriNADTBoolean |
| esriNAUTRestriction | esriNADTBoolean |
| esriNAUTHierarchy | esriNADTInteger |
getDataType in interface INetworkAttributeIOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public void setDataType(int dataType)
throws IOException,
AutomationException
setDataType in interface INetworkAttributedataType - A com.esri.arcgis.geodatabase.esriNetworkAttributeDataType constant (in)
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public int getUsageType()
throws IOException,
AutomationException
The UsageType for the network attribute can be either Cost, Descriptor, Restriction, or Hierarchy.
Depending on the UsageType for the network attribute, only certain DataTypes are allowed:
| UsageType: | Allowed DataTypes: |
| esriNAUTCost | esriNADTInteger, esriNADTFloat, esriNADTDouble |
| esriNAUTDescriptor | esriNADTInteger, esriNADTFloat, esriNADTDouble, esriNADTBoolean |
| esriNAUTRestriction | esriNADTBoolean |
| esriNAUTHierarchy | esriNADTInteger |
getUsageType in interface INetworkAttributeIOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public void setUsageType(int usageType)
throws IOException,
AutomationException
setUsageType in interface INetworkAttributeusageType - A com.esri.arcgis.geodatabase.esriNetworkAttributeUsageType constant (in)
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public int getUnits()
throws IOException,
AutomationException
If the attribute is not measured in units of distance or time, specify the Units as esriNAUUnknown.
getUnits in interface INetworkAttributeIOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public void setUnits(int units)
throws IOException,
AutomationException
setUnits in interface INetworkAttributeunits - A com.esri.arcgis.geodatabase.esriNetworkAttributeUnits constant (in)
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public void writeExternal(ObjectOutput out)
throws IOException
writeExternal in interface ExternalizablewriteExternal in class com.esri.arcgis.interop.DispatchIOException
public void readExternal(ObjectInput in)
throws IOException,
ClassNotFoundException
readExternal in interface ExternalizablereadExternal in class com.esri.arcgis.interop.DispatchIOException
ClassNotFoundException
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||