com.supermap.services.rest.encoders

Class FeatureGeoRSSSimpleSerializer

  • java.lang.Object
    • com.supermap.services.rest.encoders.FeatureGeoRSSSimpleSerializer


  • public class FeatureGeoRSSSimpleSerializer
    extends java.lang.Object
    

    The feature serializer serializes the elements into a GeoRSS Simple format.

    Since:
    6.1.3
    • Method Summary

      Methods 
      Modifier and Type Method and Description
      protected static java.lang.String getFeatureFieldsTable(java.lang.String featureTitle, java.lang.String[] fieldNames, java.lang.String[] fieldValues) 
      protected static boolean isSupportedType(GeometryType type) 
      void serialize(GeoRSSObject object, java.io.Writer writer)
      The elements are serialized into the format of GeoRSS Simple.
      protected static void writeGeometry(XMLRecord record, Geometry geometry) 
      protected static void writeItem(XMLRecord record, Feature feature, java.lang.String linkUrl) 
      protected static void writeLine(XMLRecord record, Geometry geometry) 
      protected static void writePoint(XMLRecord record, Geometry geometry) 
      protected static void writePolygon(XMLRecord record, Geometry geometry) 
      • Methods inherited from class java.lang.Object

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

      • FeatureGeoRSSSimpleSerializer

        public FeatureGeoRSSSimpleSerializer()
        
    • Method Detail

      • serialize

        public void serialize(GeoRSSObject object,
                     java.io.Writer writer)
        

        The elements are serialized into the format of GeoRSS Simple.

        Parameters:
        object - needs to serialize the object.
        writer - Writes a character stream after serialization.
        Since:
        6.1.3
      • isSupportedType

        protected static boolean isSupportedType(GeometryType type)
        
      • writeItem

        protected static void writeItem(XMLRecord record,
                     Feature feature,
                     java.lang.String linkUrl)
        
      • getFeatureFieldsTable

        protected static java.lang.String getFeatureFieldsTable(java.lang.String featureTitle,
                                             java.lang.String[] fieldNames,
                                             java.lang.String[] fieldValues)
        
      • writeGeometry

        protected static void writeGeometry(XMLRecord record,
                         Geometry geometry)
        
      • writePoint

        protected static void writePoint(XMLRecord record,
                      Geometry geometry)
        
      • writeLine

        protected static void writeLine(XMLRecord record,
                     Geometry geometry)
        
      • writePolygon

        protected static void writePolygon(XMLRecord record,
                        Geometry geometry)