public class ERXBeanSerializer
extends org.jabsorb.serializer.AbstractSerializer
Modifier and Type | Class and Description |
---|---|
protected static class |
ERXBeanSerializer.BeanData
Stores the readable and writable properties for the Bean.
|
Constructor and Description |
---|
ERXBeanSerializer(Class clazz) |
Modifier and Type | Method and Description |
---|---|
static ERXBeanSerializer.BeanData |
analyzeBean(Class<?> clazz)
Analyses a bean, returning a BeanData with the data extracted from it.
|
boolean |
canSerialize(Class clazz,
Class jsonClazz) |
static ERXBeanSerializer.BeanData |
getBeanData(Class<?> clazz)
Gets the bean data from cache if possible, otherwise analyses the bean.
|
Class<?>[] |
getJSONClasses() |
Class<?>[] |
getSerializableClasses() |
Object |
marshall(org.jabsorb.serializer.SerializerState state,
Object p,
Object o) |
org.jabsorb.serializer.ObjectMatch |
tryUnmarshall(org.jabsorb.serializer.SerializerState state,
Class clazz,
Object o) |
Object |
unmarshall(org.jabsorb.serializer.SerializerState state,
Class clazz,
Object o) |
public ERXBeanSerializer(Class clazz)
public static ERXBeanSerializer.BeanData analyzeBean(Class<?> clazz) throws IntrospectionException
clazz
- The class of the bean to analyseIntrospectionException
- If a problem occurs during getting the bean
info.public static ERXBeanSerializer.BeanData getBeanData(Class<?> clazz) throws IntrospectionException
clazz
- The class of the bean to analyseIntrospectionException
- If a problem occurs during getting the bean
info.public boolean canSerialize(Class clazz, Class jsonClazz)
canSerialize
in interface org.jabsorb.serializer.Serializer
canSerialize
in class org.jabsorb.serializer.AbstractSerializer
public Class<?>[] getJSONClasses()
public Class<?>[] getSerializableClasses()
public Object marshall(org.jabsorb.serializer.SerializerState state, Object p, Object o) throws org.jabsorb.serializer.MarshallException
org.jabsorb.serializer.MarshallException
public org.jabsorb.serializer.ObjectMatch tryUnmarshall(org.jabsorb.serializer.SerializerState state, Class clazz, Object o) throws org.jabsorb.serializer.UnmarshallException
org.jabsorb.serializer.UnmarshallException
Copyright © 2002 – 2020 Project Wonder.