com.esri.arcgis.geodatabase
Interface IGPCodedValueDomain2

All Superinterfaces:
Serializable
All Known Implementing Classes:
GPCodedValueDomain2

public interface IGPCodedValueDomain2
extends Serializable

.

Product Availability

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


Method Summary
 void addCode(Object value, String name)
          Adds a (value, name) code.
 void deleteCode(Object value)
          Deletes a code with the specified value.
 int getCodeCount()
          The number of codes for the associated attribute.
 String getName(int index)
          The code name for the specified code index.
 Object getValue(int index)
          The value for the specified code index.
 

Method Detail

getCodeCount

int getCodeCount()
                 throws IOException,
                        AutomationException
The number of codes for the associated attribute.

Product Availability

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

Returns:
The values
Throws:
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

getName

String getName(int index)
               throws IOException,
                      AutomationException
The code name for the specified code index.

Product Availability

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

Parameters:
index - The index (in)
Returns:
The name
Throws:
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

getValue

Object getValue(int index)
                throws IOException,
                       AutomationException
The value for the specified code index.

Product Availability

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

Parameters:
index - The index (in)
Returns:
A Variant
Throws:
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

addCode

void addCode(Object value,
             String name)
             throws IOException,
                    AutomationException
Adds a (value, name) code.

Product Availability

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

Parameters:
value - A Variant (in)
name - The name (in)
Throws:
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

deleteCode

void deleteCode(Object value)
                throws IOException,
                       AutomationException
Deletes a code with the specified value.

Product Availability

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

Parameters:
value - A Variant (in)
Throws:
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.