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
-
Nested Class Summary
Nested ClassesNested 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
FieldsFields inherited from class com.thoughtworks.xstream.core.TreeMarshaller
converterLookup, writer
-
Constructor Summary
ConstructorsConstructorDescriptionReferenceByIdMarshaller
(HierarchicalStreamWriter writer, ConverterLookup converterLookup, Mapper mapper) ReferenceByIdMarshaller
(HierarchicalStreamWriter writer, ConverterLookup converterLookup, Mapper mapper, ReferenceByIdMarshaller.IDGenerator idGenerator) -
Method Summary
Modifier and TypeMethodDescriptionprotected String
createReference
(Path currentPath, Object existingReferenceKey) protected Object
createReferenceKey
(Path currentPath, Object item) protected void
fireValidReference
(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 Details
-
idGenerator
-
-
Constructor Details
-
ReferenceByIdMarshaller
public ReferenceByIdMarshaller(HierarchicalStreamWriter writer, ConverterLookup converterLookup, Mapper mapper, ReferenceByIdMarshaller.IDGenerator idGenerator) -
ReferenceByIdMarshaller
public ReferenceByIdMarshaller(HierarchicalStreamWriter writer, ConverterLookup converterLookup, Mapper mapper)
-
-
Method Details
-
createReference
- Specified by:
createReference
in classAbstractReferenceMarshaller
-
createReferenceKey
- Specified by:
createReferenceKey
in classAbstractReferenceMarshaller
-
fireValidReference
- Specified by:
fireValidReference
in classAbstractReferenceMarshaller
-