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
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 ClassesModifier and TypeClassDescriptionstatic classNested classes/interfaces inherited from class TreeMarshaller
TreeMarshaller.CircularReferenceException -
Field Summary
Fields inherited from class TreeMarshaller
converterLookup, writer -
Constructor Summary
ConstructorsConstructorDescriptionAbstractReferenceMarshaller(HierarchicalStreamWriter writer, ConverterLookup converterLookup, Mapper mapper) -
Method Summary
Modifier and TypeMethodDescriptionvoidprotected abstract StringcreateReference(Path currentPath, Object existingReferenceKey) protected abstract ObjectcreateReferenceKey(Path currentPath, Object item) protected abstract voidfireValidReference(Object referenceKey) Methods inherited from class TreeMarshaller
convertAnother, convertAnother, get, getMapper, keys, put, start
-
Constructor Details
-
AbstractReferenceMarshaller
public AbstractReferenceMarshaller(HierarchicalStreamWriter writer, ConverterLookup converterLookup, Mapper mapper)
-
-
Method Details
-
convert
- Overrides:
convertin classTreeMarshaller
-
createReference
-
createReferenceKey
-
fireValidReference
-