public class

FeatureTemplate

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

Class Overview

Feature templates define the information required to create a new feature.

Summary

Nested Classes
enum FeatureTemplate.DRAWING_TOOL The default drawing tool to use when creating features based on this template.. 
Public Constructors
FeatureTemplate(String name, String description, Map<String, Object> prototype, FeatureTemplate.DRAWING_TOOL drawingTool)
FeatureTemplate()
Instantiates an object of FeatureTemplate.
Public Methods
static FeatureTemplate fromJson(JsonParser parser)
Decodes objects from JSON representation.
String getDescription()
Gets the description of the FeatureTemplate.
FeatureTemplate.DRAWING_TOOL getDrawingTool()
Gets the drawingTool of the FeatureTemplate.
String getName()
Gets the name of the FeatureTemplate.
Map<String, Object> getPrototype()
Gets the prototype of the FeatureTemplate.
[Expand]
Inherited Methods
From class java.lang.Object

Public Constructors

public FeatureTemplate (String name, String description, Map<String, Object> prototype, FeatureTemplate.DRAWING_TOOL drawingTool)

Parameters
name String: the name
description String: the description
prototype Map: the prototype

public FeatureTemplate ()

Instantiates an object of FeatureTemplate.

Public Methods

public static FeatureTemplate fromJson (JsonParser parser)

Decodes objects from JSON representation.

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

public String getDescription ()

Gets the description of the FeatureTemplate.

Returns
String Returns the description.

public FeatureTemplate.DRAWING_TOOL getDrawingTool ()

Gets the drawingTool of the FeatureTemplate.

Returns
FeatureTemplate.DRAWING_TOOL Returns the drawingTool.

public String getName ()

Gets the name of the FeatureTemplate.

Returns
String Returns the name.

public Map<String, Object> getPrototype ()

Gets the prototype of the FeatureTemplate.

Returns
Map<String, Object> Returns the prototype.