|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Object
|
+--com.cafesoft.core.field.AbstractFieldInfo
|
+--com.cafesoft.core.field.IntegerFieldInfo
Integer implementation of the FieldInfo object. This implementation is a subclass of the AbstractFieldInfo object. In addition, this class includes several methods that are specific to integer values. Such as minimum and maximum values allowed within a field.
AbstractFieldInfo,
FieldInfo| Constructor Summary | |
IntegerFieldInfo(String name,
Object defaultValue,
boolean allowNull,
boolean isRequired)
Create Integer FieldInfo. |
|
| Method Summary | |
FieldType |
getFieldType()
Get the FieldType. |
int |
getMaximum()
Get the maximum integer value. |
int |
getMinimum()
Get the minimum integer value. |
boolean |
hasMaximum()
Determine if FieldInfo has a maximum value defined. |
boolean |
hasMinimum()
Determine if FieldInfo has a minimum value defined. |
void |
setMaximum(String value)
Set the maximum value of the IntegerFieldInfo |
void |
setMinimum(String value)
Set the minimum value of the IntegerFieldInfo |
String |
toString()
Get a String representation of this object. |
| Methods inherited from class com.cafesoft.core.field.AbstractFieldInfo |
allowNull, getDefaultValue, getFieldValidationRule, getFieldValueOptions, getName, isRequired, setFieldValidationRule, setFieldValueOptions |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
public IntegerFieldInfo(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 FieldType getFieldType()
getFieldType in interface FieldInfogetFieldType in class AbstractFieldInfo
public void setMaximum(String value)
throws IllegalConstraintException
value - a String representation of the maximum integer
value allowed by the IntegerFieldInfo object.
IllegalConstraintException - if an error occurs setting
the maximum accepted value, or if the maximum value is less
than the minimum value.public int getMaximum()
public boolean hasMaximum()
public void setMinimum(String value)
throws IllegalConstraintException
value - a String representation of the minimum integer
value allowed by the IntegerFieldInfo object.
IllegalConstraintException - if an error occurs setting
the minimum accepted value.public int getMinimum()
public boolean hasMinimum()
public String toString()
toString in class AbstractFieldInfo
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||