com.esri.arcgis.catalogUI
Class AttributesEditContext

java.lang.Object
  extended by com.esri.arcgis.catalogUI.AttributesEditContext
All Implemented Interfaces:
IAttributesEditContext, com.esri.arcgis.interop.RemoteObjRef, Serializable

public class AttributesEditContext
extends Object
implements com.esri.arcgis.interop.RemoteObjRef, IAttributesEditContext

Provides Attributes Editing Contextual Information.

Remarks

The AttributesEditContext object contains the current state of the Attributes tab on ArcCatalog's Network Dataset Properties dialog, such as whether the network attribute settings are read-only and the state of each EditEvaluatorContext object.

The AttributesEditContext object is accessed from the EditEvaluators object by calling IEditEvaluators::AttributesEditContext.

Product Availability

Available with ArcGIS Desktop.

See Also:
Serialized Form

Field Summary
 
Fields inherited from interface com.esri.arcgis.catalogUI.IAttributesEditContext
IID, IIDf54484af_d0bf_4407_8a52_342212299d0f, xxDummy
 
Constructor Summary
AttributesEditContext(Object obj)
          Construct a AttributesEditContext using a reference to such an object returned from ArcGIS Engine or Server.
 
Method Summary
 boolean equals(Object o)
          Compare this object with another
 INetworkAttributeConfiguration getAttributeTemplates()
          The network attribute templates.
 IDatasetContainer2 getContainer()
          The network dataset container.
 IDENetworkDataset getDENetwork()
          The network dataset data element.
 IEditEvaluatorContext getEditEvaluatorContext(boolean defaultMode, int index)
          The edit evaluator context.
 int getEditEvaluatorContextCount(boolean defaultMode)
          The number of edit evaluator contexts.
 int hashCode()
          the hashcode for this object
 boolean isReadOnly()
          Indicates whether the attribute edit context is read only.
 
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

AttributesEditContext

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

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

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

getContainer

public IDatasetContainer2 getContainer()
                                throws IOException,
                                       AutomationException
The network dataset container.

Specified by:
getContainer in interface IAttributesEditContext
Returns:
A reference to a com.esri.arcgis.geodatabase.IDatasetContainer2
Throws:
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

getDENetwork

public IDENetworkDataset getDENetwork()
                               throws IOException,
                                      AutomationException
The network dataset data element.

Specified by:
getDENetwork in interface IAttributesEditContext
Returns:
A reference to a com.esri.arcgis.geodatabase.IDENetworkDataset
Throws:
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

isReadOnly

public boolean isReadOnly()
                   throws IOException,
                          AutomationException
Indicates whether the attribute edit context is read only.

Specified by:
isReadOnly in interface IAttributesEditContext
Returns:
The readOnly
Throws:
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

getEditEvaluatorContextCount

public int getEditEvaluatorContextCount(boolean defaultMode)
                                 throws IOException,
                                        AutomationException
The number of edit evaluator contexts.

Specified by:
getEditEvaluatorContextCount in interface IAttributesEditContext
Parameters:
defaultMode - The defaultMode (in)
Returns:
The count
Throws:
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

getEditEvaluatorContext

public IEditEvaluatorContext getEditEvaluatorContext(boolean defaultMode,
                                                     int index)
                                              throws IOException,
                                                     AutomationException
The edit evaluator context.

Specified by:
getEditEvaluatorContext in interface IAttributesEditContext
Parameters:
defaultMode - The defaultMode (in)
index - The index (in)
Returns:
A reference to a com.esri.arcgis.catalogUI.IEditEvaluatorContext
Throws:
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

getAttributeTemplates

public INetworkAttributeConfiguration getAttributeTemplates()
                                                     throws IOException,
                                                            AutomationException
The network attribute templates.

Specified by:
getAttributeTemplates in interface IAttributesEditContext
Returns:
A reference to a com.esri.arcgis.catalogUI.INetworkAttributeConfiguration
Throws:
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.