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.ReferencedImplicitElementExceptionNested 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 StringcreateReference(Path currentPath, Object existingReferenceKey) protected ObjectcreateReferenceKey(Path currentPath, Object item) protected voidfireValidReference(Object referenceKey) Methods inherited from class com.thoughtworks.xstream.core.AbstractReferenceMarshaller
convertMethods 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:
createReferencein classAbstractReferenceMarshaller
-
createReferenceKey
- Specified by:
createReferenceKeyin classAbstractReferenceMarshaller
-
fireValidReference
- Specified by:
fireValidReferencein classAbstractReferenceMarshaller
-