com.thoughtworks.xstream.core
Class TreeMarshaller
java.lang.Object
com.thoughtworks.xstream.core.TreeMarshaller
- All Implemented Interfaces:
- DataHolder, MarshallingContext
- Direct Known Subclasses:
- AbstractReferenceMarshaller
public class TreeMarshaller
- extends java.lang.Object
- implements MarshallingContext
|
Method Summary |
protected void |
convert(java.lang.Object item,
Converter converter)
|
void |
convertAnother(java.lang.Object item)
Converts another object searching for the default converter |
void |
convertAnother(java.lang.Object item,
Converter converter)
Converts another object using the specified converter |
java.lang.Object |
get(java.lang.Object key)
|
protected Mapper |
getMapper()
|
java.util.Iterator |
keys()
|
void |
put(java.lang.Object key,
java.lang.Object value)
|
void |
start(java.lang.Object item,
DataHolder dataHolder)
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
writer
protected HierarchicalStreamWriter writer
converterLookup
protected ConverterLookup converterLookup
classMapper
protected ClassMapper classMapper
- Deprecated. As of 1.2, use
mapper
TreeMarshaller
public TreeMarshaller(HierarchicalStreamWriter writer,
ConverterLookup converterLookup,
Mapper mapper)
TreeMarshaller
public TreeMarshaller(HierarchicalStreamWriter writer,
ConverterLookup converterLookup,
ClassMapper classMapper)
- Deprecated. As of 1.2, use
TreeMarshaller(HierarchicalStreamWriter, ConverterLookup, Mapper)
convertAnother
public void convertAnother(java.lang.Object item)
- Description copied from interface:
MarshallingContext
- Converts another object searching for the default converter
- Specified by:
convertAnother in interface MarshallingContext
- Parameters:
item - the next item to convert
convertAnother
public void convertAnother(java.lang.Object item,
Converter converter)
- Description copied from interface:
MarshallingContext
- Converts another object using the specified converter
- Specified by:
convertAnother in interface MarshallingContext
- Parameters:
item - the next item to convertconverter - the Converter to use
convert
protected void convert(java.lang.Object item,
Converter converter)
start
public void start(java.lang.Object item,
DataHolder dataHolder)
get
public java.lang.Object get(java.lang.Object key)
- Specified by:
get in interface DataHolder
put
public void put(java.lang.Object key,
java.lang.Object value)
- Specified by:
put in interface DataHolder
keys
public java.util.Iterator keys()
- Specified by:
keys in interface DataHolder
getMapper
protected Mapper getMapper()
Copyright © 2006 null. All Rights Reserved.