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 Summary
FieldsModifier and TypeFieldDescriptionprotected static final TimeZoneprotected static final DatatypeFactory -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected abstract XstreamPathValueTrackerbuildPaths(MetacardImpl metacard) Builds up the xml paths and values to write.protected final XmlTreefinal booleancanConvert(Class clazz) protected abstract StringGet the name of the root name.Get a list of aliases to be passed toXStream.alias(String, Class).final voidmarshal(Object source, com.thoughtworks.xstream.io.HierarchicalStreamWriter inWriter, com.thoughtworks.xstream.converters.MarshallingContext context) final Objectunmarshal(com.thoughtworks.xstream.io.HierarchicalStreamReader reader, com.thoughtworks.xstream.converters.UnmarshallingContext context)
-
Field Details
-
XSD_FACTORY
-
UTC_TIME_ZONE
-
-
Constructor Details
-
AbstractGmdConverter
protected AbstractGmdConverter()
-
-
Method Details
-
getXstreamAliases
Get a list of aliases to be passed toXStream.alias(String, Class).- Returns:
- list of aliases
-
canConvert
- Specified by:
canConvertin interfacecom.thoughtworks.xstream.converters.ConverterMatcher
-
unmarshal
public final Object unmarshal(com.thoughtworks.xstream.io.HierarchicalStreamReader reader, com.thoughtworks.xstream.converters.UnmarshallingContext context) - Specified by:
unmarshalin interfacecom.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:
marshalin interfacecom.thoughtworks.xstream.converters.Converter
-
buildPaths
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
Get the name of the root name.- Returns:
- root node
-
buildTree
-