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 TreeMarshallercreateMarshallingContext(HierarchicalStreamWriter writer, ConverterLookup converterLookup, Mapper mapper) protected abstract TreeUnmarshallercreateUnmarshallingContext(Object root, HierarchicalStreamReader reader, ConverterLookup converterLookup, Mapper mapper) voidmarshal(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:
unmarshalin interfaceMarshallingStrategy
-
marshal
public void marshal(HierarchicalStreamWriter writer, Object obj, ConverterLookup converterLookup, Mapper mapper, DataHolder dataHolder) - Specified by:
marshalin 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)
-