|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
T - the type of values supported by this providerpublic interface DefaultProvider<T>
Provides default values for fields marked with the XStreamDefault
annotation.
| Nested Class Summary | |
|---|---|
static class |
DefaultProvider.EmptyString
Implementation of DefaultProvider that allows fields to default to
an empty string. |
| Method Summary | |
|---|---|
T |
getDefault(java.lang.String name,
java.lang.Class<?> type,
java.lang.Class<?> definedIn)
Get a default value. |
java.lang.Class<T> |
getSupportedType()
Get the type of values supported by this provider. |
| Method Detail |
|---|
T getDefault(java.lang.String name,
java.lang.Class<?> type,
java.lang.Class<?> definedIn)
name - the field nametype - the field typedefinedIn - the class in which the field is defined
java.lang.Class<T> getSupportedType()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||