public class

FeatureType

extends Object
implements Serializable
java.lang.Object
   ↳ com.esri.core.map.FeatureType

Class Overview

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.

Summary

Public Constructors
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.
Public Methods
static FeatureType fromJson(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()
[Expand]
Inherited Methods
From class java.lang.Object

Public Constructors

public FeatureType ()

Instantiates an object of FeatureType.

public FeatureType (String id, String name, HashMap<String, Domain> domains)

Instantiates a FeatureType with given values.

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

public FeatureType (String id, String name, List<FeatureTemplate> templates)

Instantiates a FeatureType with given values.

Parameters
id String: SubType id
name String: SubType name
templates List: a list of templates

Public Methods

public static FeatureType fromJson (JsonParser parser)

Decodes objects from JSON representation.

Parameters
parser JsonParser: the Jackson parser holding the JSON data.
Returns
FeatureType the decoded object from JSON representation.
Throws
Exception the exception

public HashMap<String, Domain> getDomains ()

To get the HashMap of over-ridden FieldName(s) -> Domain(s) mapping for this FeatureType.

Returns
HashMap<String, Domain> HashMap of over-ridden FieldName(s) -> Domain(s) mapping

public String getId ()

To get the id of the FeatureType.

Returns
String FeatureType id

public String getName ()

To get the name of the FeatureType.

Returns
String FeatureType name

public FeatureTemplate[] getTemplates ()

Returns the template array of the FeatureType.

Returns
FeatureTemplate[] the template array.

public String toString ()

Returns
String