BeanProvider used as default is based on
java.beans.BeanInfo . Indexed properties are currently not supported.
| Modifier and Type | Class and Description |
|---|---|
| public static class | JavaBeanConverter.DuplicateFieldException
Deprecated
As of 1.3
|
| public static class | JavaBeanConverter.DuplicatePropertyException
Deprecated
as a consequence of Exception to indicate double processing of a property to avoid silent clobbering.
ConversionException being deprecated.
|
| Modifier and Type | Field and Description |
|---|---|
| protected final JavaBeanProvider | |
| private String | classAttributeIdentifier
Deprecated
As of 1.3, no necessity for field anymore.
|
| protected final Mapper | |
| private final Class |
| Access | Constructor and Description |
|---|---|
| public | |
| public | |
| public | |
| public | |
| public | JavaBeanConverter(Mapper mapper, String classAttributeIdentifier)
Deprecated
As of 1.3, use
JavaBeanConverter(Mapper) and com.
|
| Modifier and Type | Method and Description |
|---|---|
| public boolean | canConvert(Class<T>
the Class representing the object type to be converted type)Implements com. |
| private Class | |
| private Object | |
| public void | marshal(final Object
The object to be marshalled. source, final HierarchicalStreamWriter A stream to write to. writer, final MarshallingContext A context that allows nested objects to be processed by XStream. context)Implements com. |
| public Object | unmarshal(final HierarchicalStreamReader
The stream to read the text from. reader, final UnmarshallingContext context)Implements com. |
| beanProvider | back to summary |
|---|---|
| protected final JavaBeanProvider beanProvider | |
| classAttributeIdentifier | back to summary |
|---|---|
| private String classAttributeIdentifier
Deprecated As of 1.3, no necessity for field anymore. | |
| mapper | back to summary |
|---|---|
| protected final Mapper mapper | |
| type | back to summary |
|---|---|
| private final Class<T> type | |
| JavaBeanConverter | back to summary |
|---|---|
| public JavaBeanConverter(Mapper mapper) | |
| JavaBeanConverter | back to summary |
|---|---|
| public JavaBeanConverter(Mapper mapper, Class<T> type) | |
| JavaBeanConverter | back to summary |
|---|---|
| public JavaBeanConverter(Mapper mapper, JavaBeanProvider beanProvider) | |
| JavaBeanConverter | back to summary |
|---|---|
| public JavaBeanConverter(Mapper mapper, JavaBeanProvider beanProvider, Class<T> type) | |
| JavaBeanConverter | back to summary |
|---|---|
| public JavaBeanConverter(Mapper mapper, String classAttributeIdentifier)
Deprecated As of 1.3, use | |
| canConvert | back to summary |
|---|---|
| public boolean canConvert(Class<T> type) Implements com. Checks if the bean provider can instantiate this type. If you need less strict checks, subclass JavaBeanConverter
| |
| determineType | back to summary |
|---|---|
| private Class | |
| instantiateNewInstance | back to summary |
|---|---|
| private Object instantiateNewInstance(UnmarshallingContext context) | |
| marshal | back to summary |
|---|---|
| public void marshal(final Object source, final HierarchicalStreamWriter writer, final MarshallingContext context) Implements com. Doc from com. Convert an object to textual data.
| |
| unmarshal | back to summary |
|---|---|
| public Object unmarshal(final HierarchicalStreamReader reader, final UnmarshallingContext context) Implements com. Doc from com. Convert textual data back into an object.
| |
Deprecated
As of 1.3
| Access | Constructor and Description |
|---|---|
| public |
| DuplicateFieldException | back to summary |
|---|---|
| public DuplicateFieldException(String msg) | |
Deprecated
as a consequence of ConversionException being deprecated. See corresponding docs for further information.
| Access | Constructor and Description |
|---|---|
| public |
| DuplicatePropertyException | back to summary |
|---|---|
| public DuplicatePropertyException(String msg) | |