| Constructor and Description |
|---|
ModelFieldBean(String name,
ModelType type)
Creates a new ModelFieldBean with name and type
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object obj) |
String |
getDateFormat() |
Object |
getDefaultValue() |
String |
getName() |
ModelType |
getType() |
Boolean |
getUseNull() |
int |
hashCode() |
void |
setDateFormat(String dateFormat)
Specifies format of date.
|
void |
setDefaultValue(Object defaultValue)
The default value.
|
void |
setName(String name)
Name of the field.
|
void |
setType(ModelType type)
Type of the field.
|
void |
setUseNull(Boolean useNull)
If true null value is used if value cannot be parsed.
|
public String getName()
public void setName(String name)
name - new name for the fieldpublic ModelType getType()
public void setType(ModelType type)
type - new type for the fieldpublic Object getDefaultValue()
public void setDefaultValue(Object defaultValue)
defaultValue - new defaultValuepublic String getDateFormat()
public void setDateFormat(String dateFormat)
Will be ignored if the field is not a ModelType.DATE field.
dateFormat - new dateFormat Stringpublic Boolean getUseNull()
public void setUseNull(Boolean useNull)
Only used if type of field is ModelType.INTEGER,
ModelType.FLOAT, ModelType.STRING or
ModelType.BOOLEAN.
useNull - new value for useNullCopyright © 2010-2012. All Rights Reserved.