Hide Table of Contents
esri/dijit/util
esri/layer/pixelFilters
esri/process
esri/workers
Class: CodedValueDomain

require(["esri/layers/CodedValueDomain"], function(CodedValueDomain) { /* code goes here */ });

Description

(Added at v2.0)
Information about the coded values belonging to the domain. Coded value domains specify a set of valid values for an attribute.

See also

Samples

Search for samples that use this class.

Class hierarchy

esri/layers/Domain
|_esri/layers/CodedValueDomain

Properties

NameTypeSummary
codedValuesObject[]An array of the coded values in the domain.
nameStringThe domain name.
typeStringThe domain type.

Methods

NameReturn typeSummary
getName(code)StringReturns the name of the coded-value associated with the specified code.
toJson()ObjectConverts object to its ArcGIS Server JSON representation.
Property Details

<Object[]> codedValues

An array of the coded values in the domain. Each object consists of two properties: name and code.

<String> name

The domain name.

<String> type

The domain type. Valid values are "range" or "codedValue".
Method Details

getName(code)

Returns the name of the coded-value associated with the specified code. (Added at v3.12)
Return type: String
Parameters:
<Number | String> code Required The code in which you wish to search for the name. It can be a number or a string depending on the field type.

toJson()

Converts object to its ArcGIS Server JSON representation. (Added at v2.1)
Return type: Object