Package 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
Abstract base class for a TreeMarshaller, that can build references.- Since:
- 1.2
- Author:
- Joe Walnes, Jörg Schaible, Mauro Talevi
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classAbstractReferenceMarshaller.ReferencedImplicitElementException-
Nested classes/interfaces inherited from class com.thoughtworks.xstream.core.TreeMarshaller
TreeMarshaller.CircularReferenceException
-
-
Field Summary
-
Fields inherited from class com.thoughtworks.xstream.core.TreeMarshaller
converterLookup, writer
-
-
Constructor Summary
Constructors Constructor Description AbstractReferenceMarshaller(HierarchicalStreamWriter writer, ConverterLookup converterLookup, Mapper mapper)
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description voidconvert(java.lang.Object item, Converter converter)protected abstract java.lang.StringcreateReference(Path currentPath, java.lang.Object existingReferenceKey)protected abstract java.lang.ObjectcreateReferenceKey(Path currentPath, java.lang.Object item)protected abstract voidfireValidReference(java.lang.Object referenceKey)-
Methods inherited from class com.thoughtworks.xstream.core.TreeMarshaller
convertAnother, convertAnother, get, getMapper, keys, put, start
-
-
-
-
Constructor Detail
-
AbstractReferenceMarshaller
public AbstractReferenceMarshaller(HierarchicalStreamWriter writer, ConverterLookup converterLookup, Mapper mapper)
-
-
Method Detail
-
convert
public void convert(java.lang.Object item, Converter converter)- Overrides:
convertin classTreeMarshaller
-
createReference
protected abstract java.lang.String createReference(Path currentPath, java.lang.Object existingReferenceKey)
-
createReferenceKey
protected abstract java.lang.Object createReferenceKey(Path currentPath, java.lang.Object item)
-
fireValidReference
protected abstract void fireValidReference(java.lang.Object referenceKey)
-
-