java.lang.Object | |
↳ | com.thoughtworks.xstream.converters.javabean.JavaBeanConverter |
Can convert any bean with a public default constructor. BeanInfo are not taken into consideration, this class looks for bean patterns for simple properties
Nested Classes | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
JavaBeanConverter.DuplicateFieldException | This class is deprecated. since 1.3 |
Public Constructors | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
This constructor is deprecated.
As of 1.3, use
JavaBeanConverter(Mapper) and aliasAttribute(String, String)
| |||||||||||
This constructor is deprecated.
As of 1.2, use
JavaBeanConverter(Mapper) and aliasAttribute(String, String)
|
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Only checks for the availability of a public default constructor.
| |||||||||||
Convert an object to textual data.
| |||||||||||
Convert textual data back into an object.
|
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
From class
java.lang.Object
| |||||||||||
From interface
com.thoughtworks.xstream.converters.Converter
| |||||||||||
From interface
com.thoughtworks.xstream.converters.ConverterMatcher
|
This constructor is deprecated.
As of 1.3, use JavaBeanConverter(Mapper)
and aliasAttribute(String, String)
This constructor is deprecated.
As of 1.2, use JavaBeanConverter(Mapper)
and aliasAttribute(String, String)
Only checks for the availability of a public default constructor. If you need stricter checks, subclass JavaBeanConverter
type | the Class representing the object type to be converted |
---|
Convert an object to textual data.
source | The object to be marshalled. |
---|---|
writer | A stream to write to. |
context | A context that allows nested objects to be processed by XStream. |
Convert textual data back into an object.
reader | The stream to read the text from. |
---|