public final class Feature extends GenericJson
This is the Java data model class that specifies how to parse/serialize into the JSON that is transmitted over HTTP when working with the Google Maps Engine API. For a detailed explanation see: http://code.google.com/p/google-api-java-client/wiki/Json
GenericData.FlagsAbstractMap.SimpleEntry<K,V>, AbstractMap.SimpleImmutableEntry<K,V>| Constructor and Description |
|---|
Feature() |
| Modifier and Type | Method and Description |
|---|---|
Feature |
clone() |
GeoJsonGeometry |
getGeometry()
The geometry member of this Feature.
|
Map<String,Object> |
getProperties()
Key/value pairs of this Feature.
|
String |
getType()
Identifies this object as a feature.
|
Feature |
set(String fieldName,
Object value) |
Feature |
setGeometry(GeoJsonGeometry geometry)
The geometry member of this Feature.
|
Feature |
setProperties(Map<String,Object> properties)
Key/value pairs of this Feature.
|
Feature |
setType(String type)
Identifies this object as a feature.
|
getFactory, setFactory, toPrettyString, toStringentrySet, get, getClassInfo, getUnknownKeys, put, putAll, remove, setUnknownKeysclear, containsKey, containsValue, equals, hashCode, isEmpty, keySet, size, valuespublic GeoJsonGeometry getGeometry()
null for nonepublic Feature setGeometry(GeoJsonGeometry geometry)
geometry - geometry or null for nonepublic Map<String,Object> getProperties()
null for nonepublic Feature setProperties(Map<String,Object> properties)
properties - properties or null for nonepublic String getType()
null for nonepublic Feature setType(String type)
type - type or null for nonepublic Feature set(String fieldName, Object value)
set in class GenericJsonpublic Feature clone()
clone in class GenericJson