com.thoughtworks.xstream.core
Class ReferenceByXPathMarshaller

java.lang.Object
  extended by com.thoughtworks.xstream.core.TreeMarshaller
      extended by com.thoughtworks.xstream.core.AbstractReferenceMarshaller
          extended by 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 inherited from class com.thoughtworks.xstream.core.TreeMarshaller
classMapper, converterLookup, writer
 
Constructor Summary
ReferenceByXPathMarshaller(HierarchicalStreamWriter writer, ConverterLookup converterLookup, ClassMapper classMapper)
          Deprecated. As of 1.2, use ReferenceByXPathMarshaller(HierarchicalStreamWriter, ConverterLookup, Mapper, int)
ReferenceByXPathMarshaller(HierarchicalStreamWriter writer, ConverterLookup converterLookup, Mapper mapper, int mode)
           
 
Method Summary
protected  String createReference(Path currentPath, Object existingReferenceKey)
           
protected  Object createReferenceKey(Path currentPath)
           
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
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ReferenceByXPathMarshaller

public ReferenceByXPathMarshaller(HierarchicalStreamWriter writer,
                                  ConverterLookup converterLookup,
                                  Mapper mapper,
                                  int mode)

ReferenceByXPathMarshaller

public ReferenceByXPathMarshaller(HierarchicalStreamWriter writer,
                                  ConverterLookup converterLookup,
                                  ClassMapper classMapper)
Deprecated. As of 1.2, use ReferenceByXPathMarshaller(HierarchicalStreamWriter, ConverterLookup, Mapper, int)

Method Detail

createReference

protected String createReference(Path currentPath,
                                 Object existingReferenceKey)
Specified by:
createReference in class AbstractReferenceMarshaller

createReferenceKey

protected Object createReferenceKey(Path currentPath)
Specified by:
createReferenceKey in class AbstractReferenceMarshaller

fireValidReference

protected void fireValidReference(Object referenceKey)
Specified by:
fireValidReference in class AbstractReferenceMarshaller


Copyright © 2004-2007 XStream. All Rights Reserved.