public class Feature extends Object implements GjsonObject
| Modifier and Type | Class and Description |
|---|---|
static class |
Feature.Builder |
| Constructor and Description |
|---|
Feature() |
Feature(Feature.Builder builder) |
Feature(GjsonObject geometry) |
| Modifier and Type | Method and Description |
|---|---|
Feature |
decode(String geojson) |
org.json.JSONObject |
encode() |
Enumeration<Point> |
enumeration() |
GjsonObject |
getGeometry() |
String |
getId() |
org.json.JSONObject |
getProperties() |
GjsonObjectType |
getType() |
boolean |
isValid() |
static Feature |
of(String geojson) |
void |
setGeometry(GjsonObject geometry) |
void |
setId(String id) |
void |
setProperties(org.json.JSONObject properties) |
void |
setType(GjsonObjectType type) |
String |
toString() |
String |
toString(int indent) |
void |
validation() |
public Feature(Feature.Builder builder)
builder - public Feature(GjsonObject geometry)
geometry - public Feature()
public Feature decode(String geojson)
decode in interface GjsonObjectpublic org.json.JSONObject encode()
encode in interface GjsonObjectpublic Enumeration<Point> enumeration()
enumeration in interface GjsonObjectpublic boolean isValid()
isValid in interface GjsonObjectpublic void validation()
throws GjsonEncodeException
validation in interface GjsonObjectGjsonEncodeExceptionpublic String toString(int indent)
toString in interface GjsonObjectpublic String toString()
toString in interface GjsonObjecttoString in class Objectpublic GjsonObjectType getType()
getType in interface GjsonObjectpublic void setType(GjsonObjectType type)
setType in interface GjsonObjectpublic org.json.JSONObject getProperties()
public void setProperties(org.json.JSONObject properties)
properties - public GjsonObject getGeometry()
public void setGeometry(GjsonObject geometry)
geometry - public String getId()
public void setId(String id)
id - Copyright © 2018 Terra Software Informatics LLC.. All rights reserved.