public class ValuesTableConverter
extends com.thoughtworks.xstream.converters.reflection.ReflectionConverter
com.thoughtworks.xstream.converters.reflection.AbstractReflectionConverter.DuplicateFieldException, com.thoughtworks.xstream.converters.reflection.AbstractReflectionConverter.UnknownFieldException| Constructor and Description |
|---|
ValuesTableConverter(com.thoughtworks.xstream.mapper.Mapper mapper,
com.thoughtworks.xstream.converters.reflection.ReflectionProvider reflectionProvider)
Constructs new ValuesTableConverter.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
canConvert(java.lang.Class type)
Determines whether the converter can marshall a particular type.
|
void |
marshal(java.lang.Object source,
com.thoughtworks.xstream.io.HierarchicalStreamWriter writer,
com.thoughtworks.xstream.converters.MarshallingContext context)
Convert an object to textual data.
|
java.lang.Object |
unmarshal(com.thoughtworks.xstream.io.HierarchicalStreamReader reader,
com.thoughtworks.xstream.converters.UnmarshallingContext context)
Convert textual data back into an object.
|
public ValuesTableConverter(com.thoughtworks.xstream.mapper.Mapper mapper,
com.thoughtworks.xstream.converters.reflection.ReflectionProvider reflectionProvider)
mapper - reflectionProvider - public boolean canConvert(java.lang.Class type)
canConvert in interface com.thoughtworks.xstream.converters.ConverterMatchercanConvert in class com.thoughtworks.xstream.converters.reflection.ReflectionConvertertype - the Class representing the object type to be convertedpublic void marshal(java.lang.Object source,
com.thoughtworks.xstream.io.HierarchicalStreamWriter writer,
com.thoughtworks.xstream.converters.MarshallingContext context)
marshal in interface com.thoughtworks.xstream.converters.Convertermarshal in class com.thoughtworks.xstream.converters.reflection.AbstractReflectionConvertersource - object to be marshalledwriter - stream to write tocontext - context that allows nested objects to be processed by XStreampublic java.lang.Object unmarshal(com.thoughtworks.xstream.io.HierarchicalStreamReader reader,
com.thoughtworks.xstream.converters.UnmarshallingContext context)
unmarshal in interface com.thoughtworks.xstream.converters.Converterunmarshal in class com.thoughtworks.xstream.converters.reflection.AbstractReflectionConverterreader - stream to read the text fromcontext - unmarshalling context