com.esri.core.map
Class CodedValueDomain
java.lang.Object
com.esri.core.map.Domain
com.esri.core.map.CodedValueDomain
- All Implemented Interfaces:
- Serializable
public class CodedValueDomain
- extends Domain
The CodedValueDomain class represents the 'Coded Value Domain'
details in the Feature Layer of the Feature Service.
- See Also:
- Serialized Form
CodedValueDomain
public CodedValueDomain(String domainName,
Hashtable<String,String> codedValues)
- Instantiates a CodedValueDomain with the given values.
- Parameters:
domainName - domain namecodedValues - Hashtable of Code->Value (String->String) mappings. Eg:
AL->Aluminum
CodedValueDomain
public CodedValueDomain()
- Instantiates an empty object of CodedValueDomain.
getCodedValues
public Hashtable<String,String> getCodedValues()
- To get the Hashtable of Code->Value pairs
- Returns:
- Hashtable of Code->Value
toString
public String toString()
- Overrides:
toString in class Object
fromJson
public static CodedValueDomain fromJson(org.codehaus.jackson.JsonParser parser)
throws Exception
- Decodes objects from JSON representation.
- Parameters:
parser - the Jackson parser holding the JSON data.
- Returns:
- the decoded object from JSON representation.
- Throws:
Exception
Copyright © 2010. All Rights Reserved.