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
public abstract class AbstractTreeMarshallingStrategy extends java.lang.Object implements MarshallingStrategy
Basic functionality of a tree based marshalling strategy.- Since:
- 1.3
-
-
Constructor Summary
Constructors Constructor Description AbstractTreeMarshallingStrategy()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description protected abstract TreeMarshaller
createMarshallingContext(HierarchicalStreamWriter writer, ConverterLookup converterLookup, Mapper mapper)
protected abstract TreeUnmarshaller
createUnmarshallingContext(java.lang.Object root, HierarchicalStreamReader reader, ConverterLookup converterLookup, Mapper mapper)
void
marshal(HierarchicalStreamWriter writer, java.lang.Object obj, ConverterLookup converterLookup, Mapper mapper, DataHolder dataHolder)
java.lang.Object
unmarshal(java.lang.Object root, HierarchicalStreamReader reader, DataHolder dataHolder, ConverterLookup converterLookup, Mapper mapper)
-
-
-
Method Detail
-
unmarshal
public java.lang.Object unmarshal(java.lang.Object root, HierarchicalStreamReader reader, DataHolder dataHolder, ConverterLookup converterLookup, Mapper mapper)
- Specified by:
unmarshal
in interfaceMarshallingStrategy
-
marshal
public void marshal(HierarchicalStreamWriter writer, java.lang.Object obj, ConverterLookup converterLookup, Mapper mapper, DataHolder dataHolder)
- Specified by:
marshal
in interfaceMarshallingStrategy
-
createUnmarshallingContext
protected abstract TreeUnmarshaller createUnmarshallingContext(java.lang.Object root, HierarchicalStreamReader reader, ConverterLookup converterLookup, Mapper mapper)
-
createMarshallingContext
protected abstract TreeMarshaller createMarshallingContext(HierarchicalStreamWriter writer, ConverterLookup converterLookup, Mapper mapper)
-
-