public final class Feature
extends com.google.api.client.json.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: https://developers.google.com/api-client-library/java/google-http-java-client/json
com.google.api.client.util.GenericData.Flags| Constructor and Description |
|---|
Feature() |
| Modifier and Type | Method and Description |
|---|---|
Feature |
clone() |
GeoJsonGeometry |
getGeometry()
The geometry member of this Feature.
|
java.util.Map<java.lang.String,java.lang.Object> |
getProperties()
Key/value pairs of this Feature.
|
java.lang.String |
getType()
Identifies this object as a feature.
|
Feature |
set(java.lang.String fieldName,
java.lang.Object value) |
Feature |
setGeometry(GeoJsonGeometry geometry)
The geometry member of this Feature.
|
Feature |
setProperties(java.util.Map<java.lang.String,java.lang.Object> properties)
Key/value pairs of this Feature.
|
Feature |
setType(java.lang.String type)
Identifies this object as a feature.
|
getFactory, setFactory, toPrettyString, toStringentrySet, get, getClassInfo, getUnknownKeys, put, putAll, remove, setUnknownKeyspublic GeoJsonGeometry getGeometry()
null for nonepublic Feature setGeometry(GeoJsonGeometry geometry)
geometry - geometry or null for nonepublic java.util.Map<java.lang.String,java.lang.Object> getProperties()
null for nonepublic Feature setProperties(java.util.Map<java.lang.String,java.lang.Object> properties)
properties - properties or null for nonepublic java.lang.String getType()
null for nonepublic Feature setType(java.lang.String type)
type - type or null for nonepublic Feature set(java.lang.String fieldName, java.lang.Object value)
set in class com.google.api.client.json.GenericJsonpublic Feature clone()
clone in class com.google.api.client.json.GenericJson