|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.dbforms.validation.DbFormsValidatorUtil
public class DbFormsValidatorUtil
This class generate error string from ResourceBundle if enable, else generate error in DbForms-Error.xml standard.
Constructor Summary | |
---|---|
DbFormsValidatorUtil()
|
Method Summary | |
---|---|
static String[] |
getArgs(String actionName,
Locale locale,
Field field)
Retrieve |
static StringBuffer |
getJavascript(List formNames,
Locale locale,
Hashtable fieldsName,
ValidatorResources resources,
String javascriptValidationSrcFile,
DbFormsErrors errors)
J A V S C R I P T G E N E R A T I O N. |
static String |
getMessage(String type,
ValidatorAction va,
Locale locale,
Field field,
DbFormsErrors errors)
Get the error message from ResourceBundle if present, else generate a DbForms-Error.xml standard. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public DbFormsValidatorUtil()
Method Detail |
---|
public static String[] getArgs(String actionName, Locale locale, Field field)
String
- : Type of validation (required, range, email,...).Locale
- : Locale object to map with the good ResourceBundleField
- : Field validator information. (retrieve String
: Message resolve.public static StringBuffer getJavascript(List formNames, Locale locale, Hashtable fieldsName, ValidatorResources resources, String javascriptValidationSrcFile, DbFormsErrors errors)
formName
- : Name to match with public static String getMessage(String type, ValidatorAction va, Locale locale, Field field, DbFormsErrors errors)
String
- : Type of validation (required, range, email,...).ValidatorAction
- : ValidatorAction to retrieve validation definition.Locale
- : Locale object to map with the good ResourceBundleField
- : Field validator information. (retrieve DbFormsErrors
- : DbForms Error class to retrieve error message in DbForm-Errors.xml format.
String
: Message resolve.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |