Package com.thoughtworks.xstream.core
Class AbstractReferenceUnmarshaller
- java.lang.Object
-
- com.thoughtworks.xstream.core.TreeUnmarshaller
-
- 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
Constructors Constructor Description AbstractReferenceUnmarshaller(java.lang.Object root, HierarchicalStreamReader reader, ConverterLookup converterLookup, Mapper mapper)
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description protected java.lang.Object
convert(java.lang.Object parent, java.lang.Class type, Converter converter)
protected abstract java.lang.Object
getCurrentReferenceKey()
protected abstract java.lang.Object
getReferenceKey(java.lang.String reference)
-
Methods inherited from class com.thoughtworks.xstream.core.TreeUnmarshaller
addCompletionCallback, convertAnother, convertAnother, currentObject, get, getMapper, getRequiredType, keys, put, start
-
-
-
-
Constructor Detail
-
AbstractReferenceUnmarshaller
public AbstractReferenceUnmarshaller(java.lang.Object root, HierarchicalStreamReader reader, ConverterLookup converterLookup, Mapper mapper)
-
-
Method Detail
-
convert
protected java.lang.Object convert(java.lang.Object parent, java.lang.Class type, Converter converter)
- Overrides:
convert
in classTreeUnmarshaller
-
getReferenceKey
protected abstract java.lang.Object getReferenceKey(java.lang.String reference)
-
getCurrentReferenceKey
protected abstract java.lang.Object getCurrentReferenceKey()
-
-