Package com.thoughtworks.xstream.core
Class AbstractTreeMarshallingStrategy
java.lang.Object
com.thoughtworks.xstream.core.AbstractTreeMarshallingStrategy
- All Implemented Interfaces:
MarshallingStrategy
- Direct Known Subclasses:
ReferenceByIdMarshallingStrategy
,ReferenceByXPathMarshallingStrategy
,TreeMarshallingStrategy
Basic functionality of a tree based marshalling strategy.
- Since:
- 1.3
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected abstract TreeMarshaller
createMarshallingContext
(HierarchicalStreamWriter writer, ConverterLookup converterLookup, Mapper mapper) protected abstract TreeUnmarshaller
createUnmarshallingContext
(Object root, HierarchicalStreamReader reader, ConverterLookup converterLookup, Mapper mapper) void
marshal
(HierarchicalStreamWriter writer, Object obj, ConverterLookup converterLookup, Mapper mapper, DataHolder dataHolder) unmarshal
(Object root, HierarchicalStreamReader reader, DataHolder dataHolder, ConverterLookup converterLookup, Mapper mapper)
-
Constructor Details
-
AbstractTreeMarshallingStrategy
public AbstractTreeMarshallingStrategy()
-
-
Method Details
-
unmarshal
public Object unmarshal(Object root, HierarchicalStreamReader reader, DataHolder dataHolder, ConverterLookup converterLookup, Mapper mapper) - Specified by:
unmarshal
in interfaceMarshallingStrategy
-
marshal
public void marshal(HierarchicalStreamWriter writer, Object obj, ConverterLookup converterLookup, Mapper mapper, DataHolder dataHolder) - Specified by:
marshal
in interfaceMarshallingStrategy
-
createUnmarshallingContext
protected abstract TreeUnmarshaller createUnmarshallingContext(Object root, HierarchicalStreamReader reader, ConverterLookup converterLookup, Mapper mapper) -
createMarshallingContext
protected abstract TreeMarshaller createMarshallingContext(HierarchicalStreamWriter writer, ConverterLookup converterLookup, Mapper mapper)
-