com.esri.arcgis.networkanalyst
Class INAClassProxy

java.lang.Object
  extended by com.esri.arcgis.interop.Dispatch
      extended by com.esri.arcgis.networkanalyst.INAClassProxy
All Implemented Interfaces:
INAClass, Externalizable, Serializable

public class INAClassProxy
extends com.esri.arcgis.interop.Dispatch
implements INAClass, Serializable

Provides access to properties/methods common to all network analysis classes.

Remarks

INAClass is the interface provided on the NAClass object to access the NAClassDefinition and to quickly delete all the rows on the NAClass object.

Product Availability

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

See Also:
Serialized Form

Field Summary
 boolean noncastable
           
 
Fields inherited from class com.esri.arcgis.interop.Dispatch
DISPATCH_METHOD, DISPATCH_PROPERTYGET, DISPATCH_PROPERTYPUT, DISPATCH_PROPERTYPUTREF, objRef
 
Constructor Summary
  INAClassProxy()
           
  INAClassProxy(Object obj)
           
protected INAClassProxy(Object obj, String iid)
           
 
Method Summary
 void addListener(String iidStr, Object theListener, Object theSource)
           
 void deleteAllRows()
          Remove all items added to the class (for example, stops or incidents).
 INAClassDefinition getClassDefinition()
          The network analyst class definition.
 boolean isSaveRowsOnPersist()
          Indicates if rows are stored with the map document.
 void removeListener(String iidStr, Object theListener)
           
 void setSaveRowsOnPersist(boolean pFlag)
          Indicates if rows are stored with the map document.
 
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, optimizedVtblInvoke, queryInterface, readExternal, release, setNativeMode, setPropertyByName, toString, vtblInvoke, writeExternal
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

noncastable

public boolean noncastable
Constructor Detail

INAClassProxy

public INAClassProxy()

INAClassProxy

public INAClassProxy(Object obj)
              throws IOException
Throws:
IOException

INAClassProxy

protected INAClassProxy(Object obj,
                        String iid)
                 throws IOException
Throws:
IOException
Method Detail

addListener

public void addListener(String iidStr,
                        Object theListener,
                        Object theSource)
                 throws IOException
Overrides:
addListener in class com.esri.arcgis.interop.Dispatch
Throws:
IOException

removeListener

public void removeListener(String iidStr,
                           Object theListener)
                    throws IOException
Overrides:
removeListener in class com.esri.arcgis.interop.Dispatch
Throws:
IOException

getClassDefinition

public INAClassDefinition getClassDefinition()
                                      throws IOException,
                                             AutomationException
The network analyst class definition.

Remarks

Returns the ClassDefinition object associated with this NAClass.

Product Availability

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

Specified by:
getClassDefinition in interface INAClass
Returns:
A reference to a com.esri.arcgis.networkanalyst.INAClassDefinition
Throws:
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

deleteAllRows

public void deleteAllRows()
                   throws IOException,
                          AutomationException
Remove all items added to the class (for example, stops or incidents).

Remarks

DeleteAllRows quickly removes all of the rows from the NAClass. This is the quickest method to clear all of the NetworkLocationObjects from an NAClass.

Product Availability

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

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

setSaveRowsOnPersist

public void setSaveRowsOnPersist(boolean pFlag)
                          throws IOException,
                                 AutomationException
Indicates if rows are stored with the map document.

Remarks

SaveRowsOnPersist specifies if the rows in the NAClass should be saved in the stream when IPersistStream::Save is called.

Product Availability

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

Specified by:
setSaveRowsOnPersist in interface INAClass
Parameters:
pFlag - The pFlag (in)
Throws:
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

isSaveRowsOnPersist

public boolean isSaveRowsOnPersist()
                            throws IOException,
                                   AutomationException
Indicates if rows are stored with the map document.

Remarks

SaveRowsOnPersist specifies if the rows in the NAClass should be saved in the stream when IPersistStream::Save is called.

Product Availability

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

Specified by:
isSaveRowsOnPersist in interface INAClass
Returns:
The pFlag
Throws:
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.