|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object
|
+--com.kbmj.svt.Rule
|
+--com.kbmj.svt.rules.Required
Field is required. The value must be a String or an array of any Object. With String, validation will fail when it is null or empty. With Object[], validation will fail when the length is zero. With any other Object, validation will fail when it is null.
| Field Summary | |
static java.lang.String |
ERROR_KEY
|
| Constructor Summary | |
Required()
|
|
| Method Summary | |
InputErrors |
validate(java.lang.Object value)
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
public static java.lang.String ERROR_KEY
| Constructor Detail |
public Required()
| Method Detail |
public InputErrors validate(java.lang.Object value)
validate in class Rule
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||