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 AbstractReferenceMarshaller
AbstractReferenceMarshaller.ReferencedImplicitElementExceptionNested classes/interfaces inherited from class TreeMarshaller
TreeMarshaller.CircularReferenceException -
Field Summary
FieldsFields inherited from class 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 StringcreateReference(Path currentPath, Object existingReferenceKey) protected ObjectcreateReferenceKey(Path currentPath, Object item) protected voidfireValidReference(Object referenceKey) Methods inherited from class AbstractReferenceMarshaller
convertMethods inherited from class 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:
createReferencein classAbstractReferenceMarshaller
-
createReferenceKey
- Specified by:
createReferenceKeyin classAbstractReferenceMarshaller
-
fireValidReference
- Specified by:
fireValidReferencein classAbstractReferenceMarshaller
-