public static final class NodeList.ConverterImpl extends RobustCollectionConverter
Converter
implementation for XStream.
Serialization form is compatible with plain List
.Constructor and Description |
---|
ConverterImpl(com.thoughtworks.xstream.XStream xstream) |
Modifier and Type | Method and Description |
---|---|
boolean |
canConvert(Class type) |
protected Object |
createCollection(Class type) |
void |
marshal(Object source,
com.thoughtworks.xstream.io.HierarchicalStreamWriter writer,
com.thoughtworks.xstream.converters.MarshallingContext context) |
Object |
unmarshal(com.thoughtworks.xstream.io.HierarchicalStreamReader reader,
com.thoughtworks.xstream.converters.UnmarshallingContext context) |
populateCollection
addCurrentElementToCollection, populateCollection
public boolean canConvert(Class type)
canConvert
in interface com.thoughtworks.xstream.converters.ConverterMatcher
canConvert
in class RobustCollectionConverter
public void marshal(Object source, com.thoughtworks.xstream.io.HierarchicalStreamWriter writer, com.thoughtworks.xstream.converters.MarshallingContext context)
marshal
in interface com.thoughtworks.xstream.converters.Converter
marshal
in class com.thoughtworks.xstream.converters.collections.CollectionConverter
protected Object createCollection(Class type)
createCollection
in class com.thoughtworks.xstream.converters.collections.CollectionConverter
public Object unmarshal(com.thoughtworks.xstream.io.HierarchicalStreamReader reader, com.thoughtworks.xstream.converters.UnmarshallingContext context)
unmarshal
in interface com.thoughtworks.xstream.converters.Converter
unmarshal
in class RobustCollectionConverter
Copyright © 2004–2021. All rights reserved.