public class BeanWrapperSerializer extends Object implements Serializer
Handles a java bean beans, and calls specific serializers for each of its properties.
Constructor and Description |
---|
BeanWrapperSerializer(JuffrouBeanMetadata xmlBeanMetadata) |
Modifier and Type | Method and Description |
---|---|
void |
deserialize(JuffrouReader reader,
JuffrouBeanWrapper valueOwner,
String valuePropertyName)
Reads the serialized form of a bean property and sets its value to the bean.
|
void |
deserializeBeanProperties(JuffrouReader reader,
JuffrouBeanWrapper instance) |
void |
deserializeElement(JuffrouReader reader,
JuffrouBeanWrapper instance,
BeanClassBinding beanClassBinding,
String xmlElementName) |
void |
serialize(JuffrouWriter writer,
JuffrouBeanWrapper valueOwner,
String valuePropertyName)
Serializes a bean property and writes it.
|
void |
serializeBeanProperties(JuffrouWriter writer,
JuffrouBeanWrapper bw) |
public BeanWrapperSerializer(JuffrouBeanMetadata xmlBeanMetadata)
public void serialize(JuffrouWriter writer, JuffrouBeanWrapper valueOwner, String valuePropertyName)
Serializer
serialize
in interface Serializer
writer
- the writer to write the object tovalueOwner
- bean wrapper that holds the object in one of its propertiesvaluePropertyName
- property in the bean wrapper to access the objectpublic void deserialize(JuffrouReader reader, JuffrouBeanWrapper valueOwner, String valuePropertyName)
Serializer
deserialize
in interface Serializer
reader
- the reader from which to readvalueOwner
- bean wrapper that holds the object in one of its propertiesvaluePropertyName
- property in the bean wrapper to access the objectpublic void serializeBeanProperties(JuffrouWriter writer, JuffrouBeanWrapper bw)
public void deserializeBeanProperties(JuffrouReader reader, JuffrouBeanWrapper instance)
public void deserializeElement(JuffrouReader reader, JuffrouBeanWrapper instance, BeanClassBinding beanClassBinding, String xmlElementName)
Copyright © 2011–2020 Juffrou. All rights reserved.