Class AbstractFeatureConverter

java.lang.Object
org.codice.ddf.spatial.ogc.wfs.catalog.converter.impl.AbstractFeatureConverter
All Implemented Interfaces:
com.thoughtworks.xstream.converters.Converter, com.thoughtworks.xstream.converters.ConverterMatcher, org.codice.ddf.spatial.ogc.wfs.catalog.converter.FeatureConverter
Direct Known Subclasses:
GenericFeatureConverter

public abstract class AbstractFeatureConverter extends Object implements org.codice.ddf.spatial.ogc.wfs.catalog.converter.FeatureConverter
  • Field Details

    • ERROR_PARSING_MESSAGE

      protected static final String ERROR_PARSING_MESSAGE
      See Also:
    • UTF8_ENCODING

      protected static final String UTF8_ENCODING
      See Also:
    • sourceId

      protected String sourceId
    • wfsUrl

      protected String wfsUrl
    • metacardType

      protected ddf.catalog.data.MetacardType metacardType
    • coordinateOrder

      protected String coordinateOrder
  • Constructor Details

    • AbstractFeatureConverter

      public AbstractFeatureConverter()
    • AbstractFeatureConverter

      public AbstractFeatureConverter(org.codice.ddf.spatial.ogc.wfs.catalog.mapper.MetacardMapper metacardMapper)
  • Method Details

    • canConvert

      public boolean canConvert(Class clazz)
      Specified by:
      canConvert in interface com.thoughtworks.xstream.converters.ConverterMatcher
    • setSourceId

      public void setSourceId(String sourceId)
      Specified by:
      setSourceId in interface org.codice.ddf.spatial.ogc.wfs.catalog.converter.FeatureConverter
    • setWfsUrl

      public void setWfsUrl(String url)
      Specified by:
      setWfsUrl in interface org.codice.ddf.spatial.ogc.wfs.catalog.converter.FeatureConverter
    • getMetacardType

      public ddf.catalog.data.MetacardType getMetacardType()
      Specified by:
      getMetacardType in interface org.codice.ddf.spatial.ogc.wfs.catalog.converter.FeatureConverter
    • setMetacardType

      public void setMetacardType(ddf.catalog.data.MetacardType metacardType)
      Specified by:
      setMetacardType in interface org.codice.ddf.spatial.ogc.wfs.catalog.converter.FeatureConverter
    • setCoordinateOrder

      public void setCoordinateOrder(String coordinateOrder)
      Specified by:
      setCoordinateOrder in interface org.codice.ddf.spatial.ogc.wfs.catalog.converter.FeatureConverter
    • copyXml

      protected com.thoughtworks.xstream.io.HierarchicalStreamReader copyXml(com.thoughtworks.xstream.io.HierarchicalStreamReader hreader, StringWriter writer)
    • createMetacardFromFeature

      protected ddf.catalog.data.Metacard createMetacardFromFeature(com.thoughtworks.xstream.io.HierarchicalStreamReader hreader, ddf.catalog.data.MetacardType metacardType)
    • getValueForMetacardAttribute

      protected Serializable getValueForMetacardAttribute(ddf.catalog.data.AttributeType.AttributeFormat attributeFormat, com.thoughtworks.xstream.io.HierarchicalStreamReader reader)
    • parseDateFromXml

      protected Date parseDateFromXml(com.thoughtworks.xstream.io.HierarchicalStreamReader reader)
    • setSrs

      public void setSrs(String srs)
    • getSrs

      public String getSrs()