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
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionprivate static classstatic classNested classes/interfaces inherited from class TreeMarshaller
TreeMarshaller.CircularReferenceException -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate ObjectIdDictionaryprivate Pathprivate PathTrackerprivate ObjectIdDictionaryFields 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
-
Field Details
-
references
-
implicitElements
-
pathTracker
-
lastPath
-
-
Constructor Details
-
AbstractReferenceMarshaller
public AbstractReferenceMarshaller(HierarchicalStreamWriter writer, ConverterLookup converterLookup, Mapper mapper)
-
-
Method Details
-
convert
- Overrides:
convertin classTreeMarshaller
-
createReference
-
createReferenceKey
-
fireValidReference
-