Class AbstractGmdConverter

java.lang.Object
org.codice.ddf.spatial.ogc.csw.catalog.converter.AbstractGmdConverter
All Implemented Interfaces:
com.thoughtworks.xstream.converters.Converter, com.thoughtworks.xstream.converters.ConverterMatcher
Direct Known Subclasses:
GmdConverter

public abstract class AbstractGmdConverter extends Object implements com.thoughtworks.xstream.converters.Converter
  • Field Details

    • XSD_FACTORY

      protected static final DatatypeFactory XSD_FACTORY
    • UTC_TIME_ZONE

      protected static final TimeZone UTC_TIME_ZONE
  • Constructor Details

    • AbstractGmdConverter

      protected AbstractGmdConverter()
  • Method Details

    • getXstreamAliases

      protected abstract List<String> getXstreamAliases()
      Get a list of aliases to be passed to XStream.alias(String, Class).
      Returns:
      list of aliases
    • canConvert

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

      public final Object unmarshal(com.thoughtworks.xstream.io.HierarchicalStreamReader reader, com.thoughtworks.xstream.converters.UnmarshallingContext context)
      Specified by:
      unmarshal in interface com.thoughtworks.xstream.converters.Converter
    • marshal

      public final void marshal(Object source, com.thoughtworks.xstream.io.HierarchicalStreamWriter inWriter, com.thoughtworks.xstream.converters.MarshallingContext context)
      Specified by:
      marshal in interface com.thoughtworks.xstream.converters.Converter
    • buildPaths

      protected abstract XstreamPathValueTracker buildPaths(MetacardImpl metacard)
      Builds up the xml paths and values to write. Order matters! Paths should be added in the order they must be written.
      Parameters:
      metacard - must be non-null
      Returns:
      XstreamPathValueTracker containing XML paths and values to write
    • getRootNodeName

      protected abstract String getRootNodeName()
      Get the name of the root name.
      Returns:
      root node
    • buildTree

      protected final XmlTree buildTree(Set<com.thoughtworks.xstream.io.path.Path> paths)