public abstract class AbstractReferenceMarshaller extends TreeMarshaller implements MarshallingContext
| Modifier and Type | Class and Description |
|---|---|
private static class |
AbstractReferenceMarshaller.Id |
static class |
AbstractReferenceMarshaller.ReferencedImplicitElementException |
TreeMarshaller.CircularReferenceException| Modifier and Type | Field and Description |
|---|---|
private ObjectIdDictionary |
implicitElements |
private Path |
lastPath |
private PathTracker |
pathTracker |
private ObjectIdDictionary |
references |
converterLookup, writer| Constructor and Description |
|---|
AbstractReferenceMarshaller(HierarchicalStreamWriter writer,
ConverterLookup converterLookup,
Mapper mapper) |
| Modifier and Type | Method and Description |
|---|---|
void |
convert(java.lang.Object item,
Converter converter) |
protected abstract java.lang.String |
createReference(Path currentPath,
java.lang.Object existingReferenceKey) |
protected abstract java.lang.Object |
createReferenceKey(Path currentPath,
java.lang.Object item) |
protected abstract void |
fireValidReference(java.lang.Object referenceKey) |
convertAnother, convertAnother, get, getMapper, keys, put, startclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitconvertAnother, convertAnotherget, keys, putprivate ObjectIdDictionary references
private ObjectIdDictionary implicitElements
private PathTracker pathTracker
private Path lastPath
public AbstractReferenceMarshaller(HierarchicalStreamWriter writer, ConverterLookup converterLookup, Mapper mapper)
public void convert(java.lang.Object item,
Converter converter)
convert in class TreeMarshallerprotected abstract java.lang.String createReference(Path currentPath, java.lang.Object existingReferenceKey)
protected abstract java.lang.Object createReferenceKey(Path currentPath, java.lang.Object item)
protected abstract void fireValidReference(java.lang.Object referenceKey)