Package com.esri.arcgisruntime.data
Class Domain
- java.lang.Object
 - 
- com.esri.arcgisruntime.data.Domain
 
 
- 
- All Implemented Interfaces:
 JsonSerializable
- Direct Known Subclasses:
 CodedValueDomain,InheritedDomain,RangeDomain
public abstract class Domain extends Object implements JsonSerializable
Represents a domain used to define and restrict the valid values for aField.- Since:
 - 100.0.0
 
 
- 
- 
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static DomainfromJson(String json)Creates a Domain instance from a JSON string.Field.TypegetFieldType()Gets the field type of the domain.StringgetName()Gets the domain name.Map<String,Object>getUnknownJson()If this object was created from JSON, this method gets unknown data from the source JSON.Map<String,Object>getUnsupportedJson()If this object was created from JSON, this method gets unsupported data from the source JSON.StringtoJson()Serializes this object to a JSON string. 
 - 
 
- 
- 
Method Detail
- 
getFieldType
public Field.Type getFieldType()
Gets the field type of the domain.- Returns:
 - the field type of the domain
 - Since:
 - 100.14.0
 
 
- 
getName
public String getName()
Gets the domain name.- Returns:
 - the domain name
 - Since:
 - 100.0.0
 
 
- 
toJson
public String toJson()
Description copied from interface:JsonSerializableSerializes this object to a JSON string. Note that unknown JSON is omitted from the serialized string.- Specified by:
 toJsonin interfaceJsonSerializable- Returns:
 - a JSON string
 
 
- 
getUnknownJson
public Map<String,Object> getUnknownJson()
Description copied from interface:JsonSerializableIf this object was created from JSON, this method gets unknown data from the source JSON. Unknown JSON is a Map of values that were in the source JSON but are not known by the Runtime and therefore not exposed in the API.- Specified by:
 getUnknownJsonin interfaceJsonSerializable- Returns:
 - an unmodifiable Map containing unknown JSON data. The keys are Strings containing names. The types of 
 the values depend on the types of tokens within the JSON as follows:
 
- a 
Map<String, Object>represents an object in the JSON - a 
List<Object>represents an array in the JSON - a 
Stringrepresents a string in the JSON - a 
Doublerepresents a number in the JSON - a 
Booleanrepresents true or false in the JSON nullrepresents null in the JSON
 - a 
 
 
- 
getUnsupportedJson
public Map<String,Object> getUnsupportedJson()
Description copied from interface:JsonSerializableIf this object was created from JSON, this method gets unsupported data from the source JSON. Unsupported JSON is a Map of values that are supported by webmaps and known to the version of the webmap specification the API supports (see system requirements), but are not explicitly exposed through the Runtime API.- Specified by:
 getUnsupportedJsonin interfaceJsonSerializable- Returns:
 - an unmodifiable Map containing unsupported JSON data. The keys are Strings containing names. The types of
 the values depend on the types of tokens within the JSON as follows:
 
- a 
Map<String, Object>represents an object in the JSON - a 
List<Object>represents an array in the JSON - a 
Stringrepresents a string in the JSON - a 
Doublerepresents a number in the JSON - a 
Booleanrepresents true or false in the JSON nullrepresents null in the JSON
 - a 
 
 
- 
fromJson
public static Domain fromJson(String json)
Creates a Domain instance from a JSON string.- Parameters:
 json- the JSON representation of a Domain- Returns:
 - a Domain instance deserialized from the JSON string
 - Throws:
 IllegalArgumentException- if json is null or empty- Since:
 - 100.9.0
 
 
 - 
 
 -