Class AbstractMarshaller<A>
java.lang.Object
ch.tocco.nice2.persist.history.impl.xml.AbstractMarshaller<A>
- All Implemented Interfaces:
com.thoughtworks.xstream.converters.Converter
,com.thoughtworks.xstream.converters.ConverterMatcher
- Direct Known Subclasses:
DetachedEntityMarshaller
public abstract class AbstractMarshaller<A>
extends Object
implements com.thoughtworks.xstream.converters.Converter
-
Constructor Summary
ModifierConstructorDescriptionprotected
AbstractMarshaller
(Class<? extends A> type) protected
AbstractMarshaller
(Class<? extends A> type, boolean subtypes) -
Method Summary
Modifier and TypeMethodDescriptionboolean
canConvert
(Class type) final void
marshal
(Object source, com.thoughtworks.xstream.io.HierarchicalStreamWriter writer, com.thoughtworks.xstream.converters.MarshallingContext context) protected A
read
(com.thoughtworks.xstream.io.HierarchicalStreamReader reader, com.thoughtworks.xstream.converters.UnmarshallingContext context) final Object
unmarshal
(com.thoughtworks.xstream.io.HierarchicalStreamReader reader, com.thoughtworks.xstream.converters.UnmarshallingContext context) protected abstract void
write
(A source, com.thoughtworks.xstream.io.HierarchicalStreamWriter writer, com.thoughtworks.xstream.converters.MarshallingContext context)
-
Constructor Details
-
AbstractMarshaller
-
AbstractMarshaller
-
-
Method Details
-
unmarshal
public final Object unmarshal(com.thoughtworks.xstream.io.HierarchicalStreamReader reader, com.thoughtworks.xstream.converters.UnmarshallingContext context) - Specified by:
unmarshal
in interfacecom.thoughtworks.xstream.converters.Converter
-
read
protected A read(com.thoughtworks.xstream.io.HierarchicalStreamReader reader, com.thoughtworks.xstream.converters.UnmarshallingContext context) -
marshal
public final void marshal(Object source, com.thoughtworks.xstream.io.HierarchicalStreamWriter writer, com.thoughtworks.xstream.converters.MarshallingContext context) - Specified by:
marshal
in interfacecom.thoughtworks.xstream.converters.Converter
-
write
protected abstract void write(A source, com.thoughtworks.xstream.io.HierarchicalStreamWriter writer, com.thoughtworks.xstream.converters.MarshallingContext context) -
canConvert
- Specified by:
canConvert
in interfacecom.thoughtworks.xstream.converters.ConverterMatcher
-