com.esri.core.map
Class FeatureType

java.lang.Object
  extended by com.esri.core.map.FeatureType
All Implemented Interfaces:
Serializable

public class FeatureType
extends Object
implements Serializable

The FeatureType class represents a SubType of a feature layer which includes the over-ridden domains for the various fields. For fields with inherited domain, the actual domains (either CodedValueDomain or RangeDomain) of the fields have to be referenced.

See Also:
Serialized Form

Constructor Summary
FeatureType()
          Instantiates an empty FeatureType.
FeatureType(String id, String name, HashMap<String,Domain> domains)
          Instantiates a FeatureType with given values.
 
Method Summary
static FeatureType fromJson(org.codehaus.jackson.JsonParser parser)
          Decodes objects from JSON representation.
 HashMap<String,Domain> getDomains()
          To get the HashMap of over-ridden FieldName(s) -> Domain(s) mapping for this FeatureType.
 String getId()
          To get the id of the FeatureType
 String getName()
          To get the name of the FeatureType
 FeatureTemplate[] getTemplates()
          Returns the template array of the FeatureType
 String toString()
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

FeatureType

public FeatureType(String id,
                   String name,
                   HashMap<String,Domain> domains)
Instantiates a FeatureType with given values.

Parameters:
id - SubType id
name - SubType name
domains - HashMap of FieldName(s) -> Domain(s)

FeatureType

public FeatureType()
Instantiates an empty FeatureType.

Method Detail

getDomains

public HashMap<String,Domain> getDomains()
To get the HashMap of over-ridden FieldName(s) -> Domain(s) mapping for this FeatureType.

Returns:
HashMap of over-ridden FieldName(s) -> Domain(s) mapping

getId

public String getId()
To get the id of the FeatureType

Returns:
FeatureType id

getName

public String getName()
To get the name of the FeatureType

Returns:
FeatureType name

getTemplates

public FeatureTemplate[] getTemplates()
Returns the template array of the FeatureType

Returns:
the template array.

toString

public String toString()
Overrides:
toString in class Object

fromJson

public static FeatureType 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.