@Target(value=FIELD) @Retention(value=RUNTIME) @Inherited @Documented public @interface ModelField
| Modifier and Type | Optional Element and Description |
|---|---|
String |
dateFormat
Specifies format of date.
|
String |
defaultValue
The default value.
|
ModelType |
type
Type of the field.
|
boolean |
useNull
If true null value is used if value cannot be parsed.
|
String |
value
Name of the field.
|
public abstract String value
If not present the name of the field is used.
public abstract ModelType type
If not present the library tries to figure out the type with
ModelType.
public abstract String defaultValue
public abstract String dateFormat
Will be ignored if the field is not a ModelType.DATE field.
public abstract boolean useNull
Only used if type of field is ModelType.INTEGER,
ModelType.FLOAT, ModelType.STRING or
ModelType.BOOLEAN.
Copyright © 2010-2012. All Rights Reserved.