com.thoughtworks.xstream.core
Class AbstractReferenceUnmarshaller

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

public abstract class AbstractReferenceUnmarshaller
extends TreeUnmarshaller

Abstract base class for a TreeUnmarshaller, that resolves references.

Since:
1.2
Author:
Joe Walnes, Jörg Schaible, Mauro Talevi

Field Summary
 
Fields inherited from class com.thoughtworks.xstream.core.TreeUnmarshaller
reader
 
Constructor Summary
AbstractReferenceUnmarshaller(Object root, HierarchicalStreamReader reader, ConverterLookup converterLookup, Mapper mapper)
           
 
Method Summary
protected  Object convert(Object parent, Class type, Converter converter)
           
protected abstract  Object getCurrentReferenceKey()
           
protected abstract  Object getReferenceKey(String reference)
           
 
Methods inherited from class com.thoughtworks.xstream.core.TreeUnmarshaller
addCompletionCallback, convertAnother, convertAnother, currentObject, get, getMapper, getRequiredType, keys, put, start
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AbstractReferenceUnmarshaller

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

convert

protected Object convert(Object parent,
                         Class type,
                         Converter converter)
Overrides:
convert in class TreeUnmarshaller

getReferenceKey

protected abstract Object getReferenceKey(String reference)

getCurrentReferenceKey

protected abstract Object getCurrentReferenceKey()


Copyright © 2004-2014 XStream. All Rights Reserved.