Class AbstractGeometrySerializer<T>

java.lang.Object
com.fasterxml.jackson.databind.JsonSerializer<T>
com.fasterxml.jackson.databind.ser.std.StdSerializer<T>
io.jmix.mapsflowui.kit.component.serialization.AbstractSerializer<T>
io.jmix.mapsflowui.component.serialization.AbstractGeometrySerializer<T>
All Implemented Interfaces:
com.fasterxml.jackson.databind.jsonFormatVisitors.JsonFormatVisitable, com.fasterxml.jackson.databind.jsonschema.SchemaAware, Serializable
Direct Known Subclasses:
GeometrySerializer, SimpleGeometrySerializer

public abstract class AbstractGeometrySerializer<T> extends AbstractSerializer<T>
See Also:
  • Nested Class Summary

    Nested classes/interfaces inherited from class com.fasterxml.jackson.databind.JsonSerializer

    com.fasterxml.jackson.databind.JsonSerializer.None
  • Field Summary

    Fields inherited from class com.fasterxml.jackson.databind.ser.std.StdSerializer

    _handledType
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    protected double[]
    getCoordinates(org.locationtech.jts.geom.Coordinate coordinate)
     
    protected List<double[]>
    getCoordinates(org.locationtech.jts.geom.LineString lineString)
     
    protected List<List<double[]>>
    getCoordinates(org.locationtech.jts.geom.MultiLineString multiLineString)
     
    protected List<double[]>
    getCoordinates(org.locationtech.jts.geom.MultiPoint multiPoint)
     
    protected List<List<List<double[]>>>
    getCoordinates(org.locationtech.jts.geom.MultiPolygon multiPolygon)
     
    protected double[]
    getCoordinates(org.locationtech.jts.geom.Point point)
     
    protected List<List<double[]>>
    getCoordinates(org.locationtech.jts.geom.Polygon polygon)
     
    protected void
    writeCoordinates(double[] coordinates, com.fasterxml.jackson.core.JsonGenerator gen)
     
    protected void
    writeCoordinatesList(List<double[]> coordinates, com.fasterxml.jackson.core.JsonGenerator gen)
     
    protected void
    writeCoordinatesListOfTwoNestedList(List<List<List<double[]>>> coordinates, com.fasterxml.jackson.core.JsonGenerator gen)
     
    protected void
    writeCoordinatesListOneNestedList(List<List<double[]>> coordinates, com.fasterxml.jackson.core.JsonGenerator gen)
     

    Methods inherited from class io.jmix.mapsflowui.kit.component.serialization.AbstractSerializer

    serialize, serializeNonNullValue, writeIfNotNull, writeListIfNotEmpty

    Methods inherited from class com.fasterxml.jackson.databind.ser.std.StdSerializer

    _neitherNull, _nonEmpty, acceptJsonFormatVisitor, createSchemaNode, createSchemaNode, findAnnotatedContentSerializer, findContextualConvertingSerializer, findConvertingContentSerializer, findFormatFeature, findFormatOverrides, findIncludeOverrides, findPropertyFilter, getSchema, getSchema, handledType, isDefaultSerializer, visitArrayFormat, visitArrayFormat, visitFloatFormat, visitIntFormat, visitIntFormat, visitStringFormat, visitStringFormat, wrapAndThrow, wrapAndThrow

    Methods inherited from class com.fasterxml.jackson.databind.JsonSerializer

    getDelegatee, isEmpty, isEmpty, isUnwrappingSerializer, properties, replaceDelegatee, serializeWithType, unwrappingSerializer, usesObjectId, withFilterId, withIgnoredProperties

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • AbstractGeometrySerializer

      public AbstractGeometrySerializer(Class<T> t)
  • Method Details

    • getCoordinates

      protected double[] getCoordinates(org.locationtech.jts.geom.Coordinate coordinate)
    • getCoordinates

      protected double[] getCoordinates(org.locationtech.jts.geom.Point point)
    • getCoordinates

      protected List<double[]> getCoordinates(org.locationtech.jts.geom.LineString lineString)
    • getCoordinates

      protected List<List<double[]>> getCoordinates(org.locationtech.jts.geom.Polygon polygon)
    • getCoordinates

      protected List<double[]> getCoordinates(org.locationtech.jts.geom.MultiPoint multiPoint)
    • getCoordinates

      protected List<List<double[]>> getCoordinates(org.locationtech.jts.geom.MultiLineString multiLineString)
    • getCoordinates

      protected List<List<List<double[]>>> getCoordinates(org.locationtech.jts.geom.MultiPolygon multiPolygon)
    • writeCoordinates

      protected void writeCoordinates(double[] coordinates, com.fasterxml.jackson.core.JsonGenerator gen) throws IOException
      Throws:
      IOException
    • writeCoordinatesList

      protected void writeCoordinatesList(List<double[]> coordinates, com.fasterxml.jackson.core.JsonGenerator gen) throws IOException
      Throws:
      IOException
    • writeCoordinatesListOneNestedList

      protected void writeCoordinatesListOneNestedList(List<List<double[]>> coordinates, com.fasterxml.jackson.core.JsonGenerator gen) throws IOException
      Throws:
      IOException
    • writeCoordinatesListOfTwoNestedList

      protected void writeCoordinatesListOfTwoNestedList(List<List<List<double[]>>> coordinates, com.fasterxml.jackson.core.JsonGenerator gen) throws IOException
      Throws:
      IOException