Package com.thoughtworks.xstream.core
Class TreeMarshaller
java.lang.Object
com.thoughtworks.xstream.core.TreeMarshaller
- All Implemented Interfaces:
DataHolder
,MarshallingContext
- Direct Known Subclasses:
AbstractReferenceMarshaller
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionprotected ConverterLookup
private DataHolder
private Mapper
private ObjectIdDictionary
protected HierarchicalStreamWriter
-
Constructor Summary
ConstructorsConstructorDescriptionTreeMarshaller
(HierarchicalStreamWriter writer, ConverterLookup converterLookup, Mapper mapper) -
Method Summary
Modifier and TypeMethodDescriptionprotected void
void
convertAnother
(Object item) Converts another object searching for the default convertervoid
convertAnother
(Object item, Converter converter) Converts another object using the specified converterprotected Mapper
keys()
private void
void
void
start
(Object item, DataHolder dataHolder)
-
Field Details
-
writer
-
converterLookup
-
mapper
-
parentObjects
-
dataHolder
-
-
Constructor Details
-
TreeMarshaller
public TreeMarshaller(HierarchicalStreamWriter writer, ConverterLookup converterLookup, Mapper mapper)
-
-
Method Details
-
convertAnother
Description copied from interface:MarshallingContext
Converts another object searching for the default converter- Specified by:
convertAnother
in interfaceMarshallingContext
- Parameters:
item
- the next item to convert
-
convertAnother
Description copied from interface:MarshallingContext
Converts another object using the specified converter- Specified by:
convertAnother
in interfaceMarshallingContext
- Parameters:
item
- the next item to convertconverter
- the Converter to use
-
convert
-
start
-
get
- Specified by:
get
in interfaceDataHolder
-
put
- Specified by:
put
in interfaceDataHolder
-
keys
- Specified by:
keys
in interfaceDataHolder
-
lazilyCreateDataHolder
private void lazilyCreateDataHolder() -
getMapper
-