com.esri.core.map
Class Domain

java.lang.Object
  extended by com.esri.core.map.Domain
All Implemented Interfaces:
Serializable
Direct Known Subclasses:
CodedValueDomain, InheritedDomain, RangeDomain

public abstract class Domain
extends Object
implements Serializable

The abstract class Domain is the superclass of classes CodedValueDomain and RangeDomain. Subclasses of Domain must provide method to create a deep copy of itself.

See Also:
Serialized Form

Constructor Summary
Domain()
           
 
Method Summary
static Domain fromJson(org.codehaus.jackson.JsonParser parser)
          Decodes objects from JSON representation.
 String getDomainName()
          Gets the domainName of the Domain.
 void setDomainName(String domainName)
          Sets the domainName of the Domain.
static String toJson(Domain domain)
          Serializes the given Domain object into a JSON string.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Domain

public Domain()
Method Detail

getDomainName

public String getDomainName()
Gets the domainName of the Domain.

Returns:
Returns the domainName.

setDomainName

public void setDomainName(String domainName)
Sets the domainName of the Domain.

Parameters:
domainName - The domainName to set.

fromJson

public static Domain 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

toJson

public static String toJson(Domain domain)
                     throws Exception
Serializes the given Domain object into a JSON string.

Parameters:
domain - a Domain object
Returns:
a String in json format
Throws:
Exception - An exception thrown the object cannot be serialized into json string.


Copyright © 2012. All Rights Reserved.