com.thoughtworks.xstream.core
Class AbstractReferenceMarshaller
java.lang.Object
com.thoughtworks.xstream.core.TreeMarshaller
com.thoughtworks.xstream.core.AbstractReferenceMarshaller
- All Implemented Interfaces:
- DataHolder, MarshallingContext
- Direct Known Subclasses:
- ReferenceByIdMarshaller, ReferenceByXPathMarshaller
public abstract class AbstractReferenceMarshaller
- extends TreeMarshaller
- implements MarshallingContext
Abstract base class for a TreeMarshaller, that can build references.
- Since:
- 1.2
- Author:
- Joe Walnes, Jörg Schaible, Mauro Talevi
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
AbstractReferenceMarshaller
public AbstractReferenceMarshaller(HierarchicalStreamWriter writer,
ConverterLookup converterLookup,
Mapper mapper)
convert
public void convert(Object item,
Converter converter)
- Overrides:
convert
in class TreeMarshaller
createReference
protected abstract String createReference(Path currentPath,
Object existingReferenceKey)
createReferenceKey
protected abstract Object createReferenceKey(Path currentPath,
Object item)
fireValidReference
protected abstract void fireValidReference(Object referenceKey)
Copyright © 2004-2014 XStream. All Rights Reserved.