Class ReferenceByXPathMarshaller
java.lang.Object
com.thoughtworks.xstream.core.TreeMarshaller
com.thoughtworks.xstream.core.AbstractReferenceMarshaller
com.thoughtworks.xstream.core.ReferenceByXPathMarshaller
- All Implemented Interfaces:
DataHolder, MarshallingContext
-
Nested Class Summary
Nested 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
ConstructorsConstructorDescriptionReferenceByXPathMarshaller(HierarchicalStreamWriter writer, ConverterLookup converterLookup, Mapper mapper, int mode) -
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
-
mode
private final int mode
-
-
Constructor Details
-
ReferenceByXPathMarshaller
public ReferenceByXPathMarshaller(HierarchicalStreamWriter writer, ConverterLookup converterLookup, Mapper mapper, int mode)
-
-
Method Details
-
createReference
- Specified by:
createReferencein classAbstractReferenceMarshaller
-
createReferenceKey
- Specified by:
createReferenceKeyin classAbstractReferenceMarshaller
-
fireValidReference
- Specified by:
fireValidReferencein classAbstractReferenceMarshaller
-