|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Object | +--com.cafesoft.core.field.AbstractFieldInfo
Abstract implementation of the FieldInfo interface. All subclasses of the FieldInfo type should extend this class. This class simply implements common functionality that is shared between all subclasses of the AbstractFieldInfo class.
FieldInfo| Constructor Summary | |
AbstractFieldInfo(String name,
Object defaultValue,
boolean allowNull,
boolean isRequired)
Create abstract FieldInfo. |
|
| Method Summary | |
boolean |
allowNull()
Get the null status. |
Object |
getDefaultValue()
Get the default Field value. |
abstract FieldType |
getFieldType()
Get the FieldType. |
FieldValidationRule |
getFieldValidationRule()
Get the FieldValidationRule. |
FieldValueOptions |
getFieldValueOptions()
Get the FieldValueOptions. |
String |
getName()
Get the Field name. |
boolean |
isRequired()
Get the required status. |
void |
setFieldValidationRule(FieldValidationRule rule)
Set the FieldValidationRule. |
void |
setFieldValueOptions(FieldValueOptions options)
Set the FieldValueOptions. |
String |
toString()
Get a String representation of this object. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
public AbstractFieldInfo(String name,
Object defaultValue,
boolean allowNull,
boolean isRequired)
name - the name of the FieldInfo.defaultValue - the default value of the FieldInfo object.allowNull - boolean flag that determines if null is a
valid value.isRequired - boolean flag that determines if a value is required.| Method Detail |
public String getName()
getName in interface FieldInfopublic abstract FieldType getFieldType()
getFieldType in interface FieldInfopublic Object getDefaultValue()
getDefaultValue in interface FieldInfopublic boolean allowNull()
allowNull in interface FieldInfopublic boolean isRequired()
isRequired in interface FieldInfopublic FieldValidationRule getFieldValidationRule()
getFieldValidationRule in interface FieldInfopublic void setFieldValidationRule(FieldValidationRule rule)
setFieldValidationRule in interface FieldInforule - the new FieldValidationRule.public FieldValueOptions getFieldValueOptions()
getFieldValueOptions in interface FieldInfopublic void setFieldValueOptions(FieldValueOptions options)
setFieldValueOptions in interface FieldInfooptions - the new FieldValueOptions.public String toString()
toString in class Object
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||