com.esri.core.map
Class CodedValueDomain

java.lang.Object
  extended by com.esri.core.map.Domain
      extended by 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

Constructor Summary
CodedValueDomain()
          Instantiates an empty object of CodedValueDomain.
CodedValueDomain(String domainName, Map<String,String> codedValues)
          Instantiates a CodedValueDomain with the given values.
 
Method Summary
static CodedValueDomain fromJson(org.codehaus.jackson.JsonParser parser)
          Decodes objects from JSON representation.
 Map<String,String> getCodedValues()
          Gets the Code->Name pairs
 String toString()
           
 
Methods inherited from class com.esri.core.map.Domain
getDomainName, setDomainName, toJson
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

CodedValueDomain

public CodedValueDomain(String domainName,
                        Map<String,String> codedValues)
Instantiates a CodedValueDomain with the given values.

Parameters:
domainName - domain name
codedValues - Map of Code->Name (String->String) mappings. Eg: Al->Aluminum

CodedValueDomain

public CodedValueDomain()
Instantiates an empty object of CodedValueDomain.

Method Detail

getCodedValues

public Map<String,String> getCodedValues()
Gets the Code->Name pairs

Returns:
Map of Code->Name

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 © 2012. All Rights Reserved.