com.esri.core.map
Class FeatureTemplate

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

public class FeatureTemplate
extends Object
implements Serializable

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

See Also:
Serialized Form

Nested Class Summary
static class FeatureTemplate.DRAWING_TOOL
          The default drawing tool to use when creating features based on this template..
 
Constructor Summary
FeatureTemplate()
           
 
Method Summary
static FeatureTemplate fromJson(org.codehaus.jackson.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.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FeatureTemplate

public FeatureTemplate()
Method Detail

getName

public String getName()
Gets the name of the FeatureTemplate.

Returns:
Returns the name.

getDescription

public String getDescription()
Gets the description of the FeatureTemplate.

Returns:
Returns the description.

getPrototype

public Map<String,Object> getPrototype()
Gets the prototype of the FeatureTemplate.

Returns:
Returns the prototype.

getDrawingTool

public FeatureTemplate.DRAWING_TOOL getDrawingTool()
Gets the drawingTool of the FeatureTemplate.

Returns:
Returns the drawingTool.

fromJson

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