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.

Since:
1.0
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()
          Instantiates an object of FeatureTemplate.
FeatureTemplate(String name, String description, Map<String,Object> prototype, FeatureTemplate.DRAWING_TOOL drawingTool)
          <<<<<<< HEAD Instantiates an object of 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
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FeatureTemplate

public FeatureTemplate(String name,
                       String description,
                       Map<String,Object> prototype,
                       FeatureTemplate.DRAWING_TOOL drawingTool)
<<<<<<< HEAD Instantiates an object of FeatureTemplate.

Parameters:
name - the name
description - the description
prototype - the prototype
drawingTool - >>>>>>> refs/remotes/AndroidSDK/CatalogSignIn
Since:
1.0

FeatureTemplate

public FeatureTemplate()
Instantiates an object of FeatureTemplate.

Since:
1.0
Method Detail

getName

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

Returns:
Returns the name.
Since:
1.0

getDescription

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

Returns:
Returns the description.
Since:
1.0

getPrototype

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

Returns:
Returns the prototype.
Since:
1.0

getDrawingTool

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

Returns:
Returns the drawingTool.
Since:
1.0

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


Copyright © 2012. All Rights Reserved.