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.

Since:
1.0
See Also:
Serialized Form

Field Summary
protected  String domainName
          The name of the domain.
 
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
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

domainName

protected String domainName
The name of the domain.

Constructor Detail

Domain

public Domain()
Method Detail

getDomainName

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

Returns:
Returns the domainName.
Since:
1.0

setDomainName

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

Parameters:
domainName - The domainName to set.
Since:
1.0

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 - the exception
Since:
1.0

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.
Since:
1.0


Copyright © 2012. All Rights Reserved.