org.geotools.geojson.geom
Class GeometryHandlerBase<G extends Geometry>

Object
  extended by HandlerBase
      extended by GeometryHandlerBase<G>
All Implemented Interfaces:
IContentHandler<G>, ContentHandler
Direct Known Subclasses:
LineHandler, MultiLineHandler, MultiPointHandler, MultiPolygonHandler, PointHandler, PolygonHandler

public class GeometryHandlerBase<G extends Geometry>
extends HandlerBase
implements IContentHandler<G>


Field Summary
protected  GeometryFactory factory
           
protected  List<Object> ordinates
           
protected  G value
           
 
Constructor Summary
GeometryHandlerBase(GeometryFactory factory)
           
 
Method Summary
protected  Coordinate coordinate(List ordinates)
           
protected  Coordinate[] coordinates(List coordinates)
           
 G getValue()
           
 boolean primitive(Object value)
           
 
Methods inherited from class HandlerBase
endArray, endJSON, endObject, endObjectEntry, startArray, startJSON, startObject, startObjectEntry
 
Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface ContentHandler
endArray, endJSON, endObject, endObjectEntry, startArray, startJSON, startObject, startObjectEntry
 

Field Detail

factory

protected GeometryFactory factory

ordinates

protected List<Object> ordinates

value

protected G extends Geometry value
Constructor Detail

GeometryHandlerBase

public GeometryHandlerBase(GeometryFactory factory)
Method Detail

getValue

public G getValue()
Specified by:
getValue in interface IContentHandler<G extends Geometry>

coordinate

protected Coordinate coordinate(List ordinates)

coordinates

protected Coordinate[] coordinates(List coordinates)

primitive

public boolean primitive(Object value)
                  throws ParseException,
                         IOException
Specified by:
primitive in interface ContentHandler
Overrides:
primitive in class HandlerBase
Throws:
ParseException
IOException


Copyright © 1996-2014 Geotools. All Rights Reserved.