Class CodedValueDescription


  • public final class CodedValueDescription
    extends Object
    An object that describes a CodedValue 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 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 name
        value - the coded value's value
        Throws:
        IllegalArgumentException - if name is null
        IllegalArgumentException - 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