Package com.thoughtworks.xstream.core
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 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
ConstructorsConstructorDescriptionReferenceByXPathMarshaller
(HierarchicalStreamWriter writer, ConverterLookup converterLookup, Mapper mapper, int mode) -
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
-
mode
private final int mode
-
-
Constructor Details
-
ReferenceByXPathMarshaller
public ReferenceByXPathMarshaller(HierarchicalStreamWriter writer, ConverterLookup converterLookup, Mapper mapper, int mode)
-
-
Method Details
-
createReference
- Specified by:
createReference
in classAbstractReferenceMarshaller
-
createReferenceKey
- Specified by:
createReferenceKey
in classAbstractReferenceMarshaller
-
fireValidReference
- Specified by:
fireValidReference
in classAbstractReferenceMarshaller
-