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 ConverterLookupprivate DataHolderprivate Mapperprivate ObjectIdDictionaryprotected HierarchicalStreamWriter -
Constructor Summary
ConstructorsConstructorDescriptionTreeMarshaller(HierarchicalStreamWriter writer, ConverterLookup converterLookup, Mapper mapper) -
Method Summary
Modifier and TypeMethodDescriptionprotected voidvoidconvertAnother(Object item) Converts another object searching for the default convertervoidconvertAnother(Object item, Converter converter) Converts another object using the specified converterprotected Mapperkeys()private voidvoidvoidstart(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:MarshallingContextConverts another object searching for the default converter- Specified by:
convertAnotherin interfaceMarshallingContext- Parameters:
item- the next item to convert
-
convertAnother
Description copied from interface:MarshallingContextConverts another object using the specified converter- Specified by:
convertAnotherin interfaceMarshallingContext- Parameters:
item- the next item to convertconverter- the Converter to use
-
convert
-
start
-
get
- Specified by:
getin interfaceDataHolder
-
put
- Specified by:
putin interfaceDataHolder
-
keys
- Specified by:
keysin interfaceDataHolder
-
lazilyCreateDataHolder
private void lazilyCreateDataHolder() -
getMapper
-