Class PolygonParser
- Object
-
- BaseParser
-
- PolygonParser
-
- All Implemented Interfaces:
GeometryParser<Polygon>
public class PolygonParser extends BaseParser implements GeometryParser<Polygon>
Created by mihaildoronin on 11/11/15.
-
-
Field Summary
-
Fields inherited from class BaseParser
geometryFactory
-
-
Constructor Summary
Constructors Constructor Description PolygonParser(GeometryFactory geometryFactory)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Polygon
geometryFromJson(JsonNode node)
Polygon
polygonFromJson(JsonNode node)
Polygon
polygonFromJsonArrayOfRings(JsonNode arrayOfRings)
-
-
-
Constructor Detail
-
PolygonParser
public PolygonParser(GeometryFactory geometryFactory)
-
-
Method Detail
-
polygonFromJson
public Polygon polygonFromJson(JsonNode node)
-
polygonFromJsonArrayOfRings
public Polygon polygonFromJsonArrayOfRings(JsonNode arrayOfRings)
-
geometryFromJson
public Polygon geometryFromJson(JsonNode node) throws JsonMappingException
- Specified by:
geometryFromJson
in interfaceGeometryParser<Polygon>
- Throws:
JsonMappingException
-
-