com.esri.arcgis.networkanalyst
Class INAContextHelperProxy

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

public class INAContextHelperProxy
extends com.esri.arcgis.interop.Dispatch
implements INAContextHelper, Serializable

Provides access to the helper class to get the network analysis context.

Remarks

The INAContextHelper interface is the main interface of the NAContextHelper object whose purpose is to maintain a weak reference to the NAContext to avoid circular references.

When passed a reference to a INAContextHelper interface, it is because you should not have a strong reference to the NAContext object itself. Instead, keep a reference to the NAContextHelper and get the NAContext object from the NAContext property on the INAContextHelper interface instead.

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
  INAContextHelperProxy()
           
  INAContextHelperProxy(Object obj)
           
protected INAContextHelperProxy(Object obj, String iid)
           
 
Method Summary
 void addListener(String iidStr, Object theListener, Object theSource)
           
 INAContext getNAContext()
          The network analysis context.
 void removeListener(String iidStr, Object theListener)
           
 
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

INAContextHelperProxy

public INAContextHelperProxy()

INAContextHelperProxy

public INAContextHelperProxy(Object obj)
                      throws IOException
Throws:
IOException

INAContextHelperProxy

protected INAContextHelperProxy(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

getNAContext

public INAContext getNAContext()
                        throws IOException,
                               AutomationException
The network analysis context.

Remarks

NAContext returns the NAContext.

When passed a reference to an INAContextHelper interface, it is because you should not have a strong reference to the NAContext object itself. Instead, keep a reference to the NAContextHelper and get the NAContext object from the NAContext property on the INAContextHelper interface instead.

Product Availability

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

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