public abstract class AbstractGmdConverter extends Object implements com.thoughtworks.xstream.converters.Converter
| Modifier and Type | Field and Description |
|---|---|
protected static TimeZone |
UTC_TIME_ZONE |
protected static DatatypeFactory |
XSD_FACTORY |
| Modifier | Constructor and Description |
|---|---|
protected |
AbstractGmdConverter() |
| Modifier and Type | Method and Description |
|---|---|
protected abstract XstreamPathValueTracker |
buildPaths(MetacardImpl metacard)
Builds up the xml paths and values to write.
|
protected XmlTree |
buildTree(Set<com.thoughtworks.xstream.io.path.Path> paths) |
boolean |
canConvert(Class clazz) |
protected abstract String |
getRootNodeName()
Get the name of the root name.
|
protected abstract List<String> |
getXstreamAliases()
Get a list of aliases to be passed to
XStream.alias(String, Class). |
void |
marshal(Object source,
com.thoughtworks.xstream.io.HierarchicalStreamWriter inWriter,
com.thoughtworks.xstream.converters.MarshallingContext context) |
Object |
unmarshal(com.thoughtworks.xstream.io.HierarchicalStreamReader reader,
com.thoughtworks.xstream.converters.UnmarshallingContext context) |
protected static final DatatypeFactory XSD_FACTORY
protected static final TimeZone UTC_TIME_ZONE
protected abstract List<String> getXstreamAliases()
XStream.alias(String, Class).public final boolean canConvert(Class clazz)
canConvert in interface com.thoughtworks.xstream.converters.ConverterMatcherpublic final Object unmarshal(com.thoughtworks.xstream.io.HierarchicalStreamReader reader, com.thoughtworks.xstream.converters.UnmarshallingContext context)
unmarshal in interface com.thoughtworks.xstream.converters.Converterpublic final void marshal(Object source, com.thoughtworks.xstream.io.HierarchicalStreamWriter inWriter, com.thoughtworks.xstream.converters.MarshallingContext context)
marshal in interface com.thoughtworks.xstream.converters.Converterprotected abstract XstreamPathValueTracker buildPaths(MetacardImpl metacard)
metacard - must be non-nullprotected abstract String getRootNodeName()
This work is licensed under a Creative Commons Attribution 4.0 International License.