Package com.thoughtworks.xstream.core
Class ReferenceByIdMarshaller
- java.lang.Object
-
- com.thoughtworks.xstream.core.TreeMarshaller
-
- com.thoughtworks.xstream.core.AbstractReferenceMarshaller
-
- com.thoughtworks.xstream.core.ReferenceByIdMarshaller
-
- All Implemented Interfaces:
DataHolder
,MarshallingContext
public class ReferenceByIdMarshaller extends AbstractReferenceMarshaller
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interface
ReferenceByIdMarshaller.IDGenerator
-
Nested classes/interfaces inherited from class com.thoughtworks.xstream.core.AbstractReferenceMarshaller
AbstractReferenceMarshaller.ReferencedImplicitElementException
-
Nested classes/interfaces inherited from class com.thoughtworks.xstream.core.TreeMarshaller
TreeMarshaller.CircularReferenceException
-
-
Field Summary
Fields Modifier and Type Field Description private ReferenceByIdMarshaller.IDGenerator
idGenerator
-
Fields inherited from class com.thoughtworks.xstream.core.TreeMarshaller
converterLookup, writer
-
-
Constructor Summary
Constructors Constructor Description ReferenceByIdMarshaller(HierarchicalStreamWriter writer, ConverterLookup converterLookup, Mapper mapper)
ReferenceByIdMarshaller(HierarchicalStreamWriter writer, ConverterLookup converterLookup, Mapper mapper, ReferenceByIdMarshaller.IDGenerator idGenerator)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected java.lang.String
createReference(Path currentPath, java.lang.Object existingReferenceKey)
protected java.lang.Object
createReferenceKey(Path currentPath, java.lang.Object item)
protected void
fireValidReference(java.lang.Object referenceKey)
-
Methods inherited from class com.thoughtworks.xstream.core.AbstractReferenceMarshaller
convert
-
Methods inherited from class com.thoughtworks.xstream.core.TreeMarshaller
convertAnother, convertAnother, get, getMapper, keys, put, start
-
-
-
-
Field Detail
-
idGenerator
private final ReferenceByIdMarshaller.IDGenerator idGenerator
-
-
Constructor Detail
-
ReferenceByIdMarshaller
public ReferenceByIdMarshaller(HierarchicalStreamWriter writer, ConverterLookup converterLookup, Mapper mapper, ReferenceByIdMarshaller.IDGenerator idGenerator)
-
ReferenceByIdMarshaller
public ReferenceByIdMarshaller(HierarchicalStreamWriter writer, ConverterLookup converterLookup, Mapper mapper)
-
-
Method Detail
-
createReference
protected java.lang.String createReference(Path currentPath, java.lang.Object existingReferenceKey)
- Specified by:
createReference
in classAbstractReferenceMarshaller
-
createReferenceKey
protected java.lang.Object createReferenceKey(Path currentPath, java.lang.Object item)
- Specified by:
createReferenceKey
in classAbstractReferenceMarshaller
-
fireValidReference
protected void fireValidReference(java.lang.Object referenceKey)
- Specified by:
fireValidReference
in classAbstractReferenceMarshaller
-
-