com.esri.arcgis.geodatabase
Interface IGPCodedValueDomain

All Superinterfaces:
Serializable
All Known Implementing Classes:
GPCodedValueDomain

public interface IGPCodedValueDomain
extends Serializable

Provides access to members that return and modify coded value domain values.

Product Availability

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


Method Summary
 void addCode(IGPValue value, String name)
          Adds a (value, name) code.
 void addStringCode(String value, String name)
          Adds a (value, name) code.
 void deleteCode(IGPValue value)
          Deletes a code with the specified value.
 void empty()
          Deletes all the codes.
 String findName(IGPValue value)
          Provides the name for the specified value.
 IGPValue findValue(String name)
          Provides the value object for the specified code.
 int getCodeCount()
          The number of codes for the associated attribute.
 String getName(int index)
          The code name for the specified code index.
 IGPValue getValue(int index)
          The value object for the specified code index.
 void populateDomain(String values, String names, IGPDataType gPDataType)
          Populate the domain codes.
 

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

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

Product Availability

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

Parameters:
index - The index (in)
Returns:
A reference to a com.esri.arcgis.geodatabase.IGPValue
Throws:
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

findValue

IGPValue findValue(String name)
                   throws IOException,
                          AutomationException
Provides the value object for the specified code.

Product Availability

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

Parameters:
name - The name (in)
Returns:
A reference to a com.esri.arcgis.geodatabase.IGPValue
Throws:
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

addCode

void addCode(IGPValue 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 reference to a com.esri.arcgis.geodatabase.IGPValue (in)
name - The name (in)
Throws:
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

addStringCode

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

Product Availability

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

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

deleteCode

void deleteCode(IGPValue 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 reference to a com.esri.arcgis.geodatabase.IGPValue (in)
Throws:
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

empty

void empty()
           throws IOException,
                  AutomationException
Deletes all the codes.

Product Availability

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

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

populateDomain

void populateDomain(String values,
                    String names,
                    IGPDataType gPDataType)
                    throws IOException,
                           AutomationException
Populate the domain codes.

Product Availability

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

Parameters:
values - The values (in)
names - The names (in)
gPDataType - A reference to a com.esri.arcgis.geodatabase.IGPDataType (in)
Throws:
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

findName

String findName(IGPValue value)
                throws IOException,
                       AutomationException
Provides the name for the specified value.

Product Availability

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

Parameters:
value - A reference to a com.esri.arcgis.geodatabase.IGPValue (in)
Returns:
The name
Throws:
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.