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.

Since:
1.0
See Also:
Serialized Form

Constructor Summary
FeatureType()
          Instantiates an object of FeatureType.
FeatureType(String id, String name, HashMap<String,Domain> domains)
          Instantiates a FeatureType with given values.
FeatureType(String id, String name, List<FeatureTemplate> templates)
          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
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

FeatureType

public FeatureType()
Instantiates an object of FeatureType.

Since:
1.0

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

FeatureType

public FeatureType(String id,
                   String name,
                   List<FeatureTemplate> templates)
Instantiates a FeatureType with given values.

Parameters:
id - SubType id
name - SubType name
templates - a list of templates
Since:
1.0
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
Since:
1.0

getId

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

Returns:
FeatureType id
Since:
1.0

getName

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

Returns:
FeatureType name
Since:
1.0

getTemplates

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

Returns:
the template array.
Since:
1.0

toString

public String toString()
Overrides:
toString in class Object
Since:
1.0

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


Copyright © 2012. All Rights Reserved.