Package com.esri.arcgisruntime.data
Class CodedValueDescription
- java.lang.Object
-
- com.esri.arcgisruntime.data.CodedValueDescription
-
public final class CodedValueDescription extends Object
An object that describes aCodedValue
to be created.Creation of domains is currently only supported on mobile geodatabases, either created in ArcGIS Pro or via
Geodatabase.createAsync(String)
.- Since:
- 100.14.0
-
-
Constructor Summary
Constructors Constructor Description CodedValueDescription(String name, Object value)
Creates a new coded value description object with the specified name and value.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
getName()
Gets the coded value's name.Object
getValue()
Gets the coded value's value.void
setName(String name)
Sets the coded value's name.void
setValue(Object value)
Sets the coded value's value.
-
-
-
Constructor Detail
-
CodedValueDescription
public CodedValueDescription(String name, Object value)
Creates a new coded value description object with the specified name and value.- Parameters:
name
- the coded value's namevalue
- the coded value's value- Throws:
IllegalArgumentException
- if name is nullIllegalArgumentException
- if value is null- Since:
- 100.14.0
-
-
Method Detail
-
getName
public String getName()
Gets the coded value's name.- Returns:
- the coded value's name
- Since:
- 100.14.0
-
setName
public void setName(String name)
Sets the coded value's name.- Parameters:
name
- the coded value's name- Throws:
IllegalArgumentException
- if name is null- Since:
- 100.14.0
-
getValue
public Object getValue()
Gets the coded value's value.For fields that utilize a coded value domain, the field type must match the type of the coded values.
- Returns:
- the coded value's value
- Since:
- 100.14.0
-
setValue
public void setValue(Object value)
Sets the coded value's value.For fields that utilize a coded value domain, the field type must match the type of the coded values.
- Parameters:
value
- the coded value's value- Throws:
IllegalArgumentException
- if value is null- Since:
- 100.14.0
-
-