|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.joda.beans.ser.SerOptional
public class SerOptional
Assists with serialization and deserialization of optional properties.
| Constructor Summary | |
|---|---|
SerOptional()
|
|
| Method Summary | |
|---|---|
static Class<?> |
extractType(MetaProperty<?> metaProp,
Class<?> beanType)
Extracts the value of the property from a bean, unwrapping any optional. |
static Object |
extractValue(MetaProperty<?> metaProp,
Bean bean)
Extracts the value of the property from a bean, unwrapping any optional. |
static Object |
wrapValue(MetaProperty<?> metaProp,
Class<?> beanType,
Object value)
Wraps the value of a property if it is an optional. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public SerOptional()
| Method Detail |
|---|
public static Object extractValue(MetaProperty<?> metaProp,
Bean bean)
metaProp - the property to query, not nullbean - the bean to query, not null
public static Class<?> extractType(MetaProperty<?> metaProp,
Class<?> beanType)
metaProp - the property to query, not nullbeanType - the type of the bean, not null
public static Object wrapValue(MetaProperty<?> metaProp,
Class<?> beanType,
Object value)
metaProp - the property to query, not nullbeanType - the type of the bean, not nullvalue - the value to wrap, may be null
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||