com.thoughtworks.xstream.core
Class TreeUnmarshaller

java.lang.Object
  extended by com.thoughtworks.xstream.core.TreeUnmarshaller
All Implemented Interfaces:
DataHolder, UnmarshallingContext
Direct Known Subclasses:
AbstractReferenceUnmarshaller

public class TreeUnmarshaller
extends Object
implements UnmarshallingContext


Field Summary
protected  HierarchicalStreamReader reader
           
 
Constructor Summary
TreeUnmarshaller(Object root, HierarchicalStreamReader reader, ConverterLookup converterLookup, Mapper mapper)
           
 
Method Summary
 void addCompletionCallback(Runnable work, int priority)
           
protected  Object convert(Object parent, Class type, Converter converter)
           
 Object convertAnother(Object parent, Class type)
           
 Object convertAnother(Object parent, Class type, Converter converter)
           
 Object currentObject()
           
 Object get(Object key)
           
protected  Mapper getMapper()
           
 Class getRequiredType()
           
 Iterator keys()
           
 void put(Object key, Object value)
           
 Object start(DataHolder dataHolder)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

reader

protected HierarchicalStreamReader reader
Constructor Detail

TreeUnmarshaller

public TreeUnmarshaller(Object root,
                        HierarchicalStreamReader reader,
                        ConverterLookup converterLookup,
                        Mapper mapper)
Method Detail

convertAnother

public Object convertAnother(Object parent,
                             Class type)
Specified by:
convertAnother in interface UnmarshallingContext

convertAnother

public Object convertAnother(Object parent,
                             Class type,
                             Converter converter)
Specified by:
convertAnother in interface UnmarshallingContext

convert

protected Object convert(Object parent,
                         Class type,
                         Converter converter)

addCompletionCallback

public void addCompletionCallback(Runnable work,
                                  int priority)
Specified by:
addCompletionCallback in interface UnmarshallingContext

currentObject

public Object currentObject()
Specified by:
currentObject in interface UnmarshallingContext

getRequiredType

public Class getRequiredType()
Specified by:
getRequiredType in interface UnmarshallingContext

get

public Object get(Object key)
Specified by:
get in interface DataHolder

put

public void put(Object key,
                Object value)
Specified by:
put in interface DataHolder

keys

public Iterator keys()
Specified by:
keys in interface DataHolder

start

public Object start(DataHolder dataHolder)

getMapper

protected Mapper getMapper()


Copyright © 2004-2014 XStream. All Rights Reserved.