com.thoughtworks.xstream.core
Class AbstractTreeMarshallingStrategy

java.lang.Object
  extended by com.thoughtworks.xstream.core.AbstractTreeMarshallingStrategy
All Implemented Interfaces:
MarshallingStrategy
Direct Known Subclasses:
ReferenceByIdMarshallingStrategy, ReferenceByXPathMarshallingStrategy, TreeMarshallingStrategy

public abstract class AbstractTreeMarshallingStrategy
extends Object
implements MarshallingStrategy

Basic functionality of a tree based marshalling strategy.

Since:
1.3
Author:
Joe Walnes, Jörg Schaible

Constructor Summary
AbstractTreeMarshallingStrategy()
           
 
Method Summary
protected 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)
           
 Object unmarshal(Object root, HierarchicalStreamReader reader, DataHolder dataHolder, ConverterLookup converterLookup, Mapper mapper)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AbstractTreeMarshallingStrategy

public AbstractTreeMarshallingStrategy()
Method Detail

unmarshal

public Object unmarshal(Object root,
                        HierarchicalStreamReader reader,
                        DataHolder dataHolder,
                        ConverterLookup converterLookup,
                        Mapper mapper)
Specified by:
unmarshal in interface MarshallingStrategy

marshal

public void marshal(HierarchicalStreamWriter writer,
                    Object obj,
                    ConverterLookup converterLookup,
                    Mapper mapper,
                    DataHolder dataHolder)
Specified by:
marshal in interface MarshallingStrategy

createUnmarshallingContext

protected abstract TreeUnmarshaller createUnmarshallingContext(Object root,
                                                               HierarchicalStreamReader reader,
                                                               ConverterLookup converterLookup,
                                                               Mapper mapper)

createMarshallingContext

protected abstract TreeMarshaller createMarshallingContext(HierarchicalStreamWriter writer,
                                                           ConverterLookup converterLookup,
                                                           Mapper mapper)


Copyright © 2004-2014 XStream. All Rights Reserved.