Package com.esri.arcgisruntime.data
Class CodedValueDescription
- java.lang.Object
-
- com.esri.arcgisruntime.data.CodedValueDescription
-
public final class CodedValueDescription extends java.lang.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(java.lang.String name, java.lang.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 java.lang.String
getName()
Gets the coded value's name.java.lang.Object
getValue()
Gets the coded value's value.void
setName(java.lang.String name)
Sets the coded value's name.void
setValue(java.lang.Object value)
Sets the coded value's value.
-
-
-
Constructor Detail
-
CodedValueDescription
public CodedValueDescription(java.lang.String name, java.lang.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:
java.lang.IllegalArgumentException
- if name is nulljava.lang.IllegalArgumentException
- if value is null- Since:
- 100.14.0
-
-
Method Detail
-
getName
public java.lang.String getName()
Gets the coded value's name.- Returns:
- the coded value's name
- Since:
- 100.14.0
-
setName
public void setName(java.lang.String name)
Sets the coded value's name.- Parameters:
name
- the coded value's name- Throws:
java.lang.IllegalArgumentException
- if name is null- Since:
- 100.14.0
-
getValue
public java.lang.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(java.lang.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:
java.lang.IllegalArgumentException
- if value is null- Since:
- 100.14.0
-
-