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
public class ReferenceByXPathMarshaller extends AbstractReferenceMarshaller
-
-
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
Fields Modifier and Type Field Description private int
mode
-
Fields inherited from class com.thoughtworks.xstream.core.TreeMarshaller
converterLookup, writer
-
-
Constructor Summary
Constructors Constructor Description ReferenceByXPathMarshaller(HierarchicalStreamWriter writer, ConverterLookup converterLookup, Mapper mapper, int mode)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected java.lang.String
createReference(Path currentPath, java.lang.Object existingReferenceKey)
protected java.lang.Object
createReferenceKey(Path currentPath, java.lang.Object item)
protected void
fireValidReference(java.lang.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
-
-
-
-
Constructor Detail
-
ReferenceByXPathMarshaller
public ReferenceByXPathMarshaller(HierarchicalStreamWriter writer, ConverterLookup converterLookup, Mapper mapper, int mode)
-
-
Method Detail
-
createReference
protected java.lang.String createReference(Path currentPath, java.lang.Object existingReferenceKey)
- Specified by:
createReference
in classAbstractReferenceMarshaller
-
createReferenceKey
protected java.lang.Object createReferenceKey(Path currentPath, java.lang.Object item)
- Specified by:
createReferenceKey
in classAbstractReferenceMarshaller
-
fireValidReference
protected void fireValidReference(java.lang.Object referenceKey)
- Specified by:
fireValidReference
in classAbstractReferenceMarshaller
-
-