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
-
-
Field Summary
Fields Modifier and Type Field Description private static java.lang.ObjectNULLprivate FastStackparentStackprivate java.util.Mapvalues-
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.Objectconvert(java.lang.Object parent, java.lang.Class type, Converter converter)protected abstract java.lang.ObjectgetCurrentReferenceKey()protected abstract java.lang.ObjectgetReferenceKey(java.lang.String reference)-
Methods inherited from class com.thoughtworks.xstream.core.TreeUnmarshaller
addCompletionCallback, convertAnother, convertAnother, currentObject, get, getMapper, getRequiredType, keys, put, start
-
-
-
-
Field Detail
-
NULL
private static final java.lang.Object NULL
-
values
private java.util.Map values
-
parentStack
private FastStack parentStack
-
-
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:
convertin classTreeUnmarshaller
-
getReferenceKey
protected abstract java.lang.Object getReferenceKey(java.lang.String reference)
-
getCurrentReferenceKey
protected abstract java.lang.Object getCurrentReferenceKey()
-
-