Top Inners Fields Constructors Methods
com.thoughtworks.xstream.core

public Class TreeMarshaller

extends Object
implements MarshallingContext
Class Inheritance
All Implemented Interfaces
com.thoughtworks.xstream.converters.MarshallingContext, com.thoughtworks.xstream.converters.DataHolder
Known Direct Subclasses
com.thoughtworks.xstream.core.AbstractReferenceMarshaller
Imports
com.thoughtworks.xstream.converters.ConversionException, .Converter, .ConverterLookup, .DataHolder, .MarshallingContext, com.thoughtworks.xstream.core.util.ObjectIdDictionary, com.thoughtworks.xstream.io.HierarchicalStreamWriter, .ExtendedHierarchicalStreamWriterHelper, com.thoughtworks.xstream.mapper.Mapper, java.util.Collections, .Iterator

Nested and Inner Type Summary

Modifier and TypeClass and Description
public static class
TreeMarshaller.CircularReferenceException

Deprecated as a consequence of ConversionException being deprecated.

Field Summary

Modifier and TypeField and Description
protected ConverterLookup
private DataHolder
private Mapper
private ObjectIdDictionary
protected HierarchicalStreamWriter

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
protected void
convert(Object item, Converter converter)

public void
convertAnother(Object
the next item to convert
item
)

Implements com.thoughtworks.xstream.converters.MarshallingContext.convertAnother.

Converts another object searching for the default converter
public void
convertAnother(Object
the next item to convert
item
,
Converter
the Converter to use
converter
)

Implements com.thoughtworks.xstream.converters.MarshallingContext.convertAnother.

Converts another object using the specified converter
public Object
protected Mapper
public Iterator<E>
private void
public void
public void
start(Object item, DataHolder dataHolder)

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

converterLookupback to summary
protected ConverterLookup converterLookup
dataHolderback to summary
private DataHolder dataHolder
mapperback to summary
private Mapper mapper
parentObjectsback to summary
private ObjectIdDictionary parentObjects
writerback to summary
protected HierarchicalStreamWriter writer

Constructor Detail

TreeMarshallerback to summary
public TreeMarshaller(HierarchicalStreamWriter writer, ConverterLookup converterLookup, Mapper mapper)

Method Detail

convertback to summary
protected void convert(Object item, Converter converter)
convertAnotherback to summary
public void convertAnother(Object item)

Implements com.thoughtworks.xstream.converters.MarshallingContext.convertAnother.

Doc from com.thoughtworks.xstream.converters.MarshallingContext.convertAnother.

Converts another object searching for the default converter

Parameters
item:Object

the next item to convert

convertAnotherback to summary
public void convertAnother(Object item, Converter converter)

Implements com.thoughtworks.xstream.converters.MarshallingContext.convertAnother.

Doc from com.thoughtworks.xstream.converters.MarshallingContext.convertAnother.

Converts another object using the specified converter

Parameters
item:Object

the next item to convert

converter:Converter

the Converter to use

getback to summary
public Object get(Object key)

Implements com.thoughtworks.xstream.converters.DataHolder.get.

getMapperback to summary
protected Mapper getMapper()
keysback to summary
public Iterator<E> keys()

Implements com.thoughtworks.xstream.converters.DataHolder.keys.

lazilyCreateDataHolderback to summary
private void lazilyCreateDataHolder()
putback to summary
public void put(Object key, Object value)

Implements com.thoughtworks.xstream.converters.DataHolder.put.

startback to summary
public void start(Object item, DataHolder dataHolder)
com.thoughtworks.xstream.core back to summary

public Class TreeMarshaller.CircularReferenceException

extends ConversionException
Class Inheritance

Deprecated

as a consequence of ConversionException being deprecated. See corresponding docs for further information.

Constructor Summary

AccessConstructor and Description
public

Constructor Detail

CircularReferenceExceptionback to summary
public CircularReferenceException(String msg)