|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.barracudamvc.core.forms.FormType
public abstract class FormType
This class defines all valid FormTypes. Currently we support:
Field Summary | |
---|---|
static FormType |
BIG_DECIMAL
|
static FormType |
BOOLEAN
|
static FormType |
DATE
|
static Locale |
DEFAULT_LOCALE
|
static FormType |
DOUBLE
|
static FormType |
FLOAT
|
static FormType |
INTEGER
|
static FormType |
LONG
|
static FormType |
SHORT
|
static FormType |
STRING
|
static FormType |
TIME
Time type definition |
static FormType |
TIMESTAMP
|
Constructor Summary | |
---|---|
protected |
FormType()
Protected constructor to prevent external instantiation. |
Method Summary | |
---|---|
abstract Class |
getFormClass()
Returns the class associated with this particular form type. |
abstract Object[] |
getTypeArray(int size)
create an array of the FormType's type - if heterogenous types are returned, an array of Object will be returned. |
Object |
parse(String origVal)
Parses an object based on the specific form type. |
abstract Object |
parse(String origVal,
Locale loc)
Parses an object based on the specific form type. |
String |
toString()
Returns a string representation of this particular formt type. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public static final Locale DEFAULT_LOCALE
public static FormType STRING
public static FormType BOOLEAN
public static FormType INTEGER
public static FormType LONG
public static FormType SHORT
public static FormType DOUBLE
public static FormType FLOAT
public static FormType BIG_DECIMAL
public static FormType DATE
public static FormType TIMESTAMP
public static FormType TIME
Constructor Detail |
---|
protected FormType()
Method Detail |
---|
public abstract Class getFormClass()
public Object parse(String origVal) throws ParseException
ParseException
public abstract Object parse(String origVal, Locale loc) throws ParseException
ParseException
public abstract Object[] getTypeArray(int size)
public String toString()
toString
in class Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |