|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnet.sf.doolin.gui.validation.AbstractValidator<B>
B - Type of the bean to validatepublic abstract class AbstractValidator<B>
Abstract validator.
| Constructor Summary | |
|---|---|
AbstractValidator()
|
|
| Method Summary | |
|---|---|
String |
getMsgMandatoryKey()
Gets the msg mandatory key. |
protected void |
isNotBlank(GUIValidation result,
String value,
Object key,
Object name)
Checks if is not blank. |
protected void |
isNotNull(GUIValidation result,
Object value,
Object key,
Object name)
Checks if is not null. |
void |
setMsgMandatoryKey(String msgMandatoryKey)
Sets the msg mandatory key. |
GUIValidation |
validate(B model)
Validates the model |
protected abstract void |
validate(GUIValidation validationResult,
B model)
Validate. |
protected void |
validate(GUIValidation result,
boolean test,
Object key,
String msgKey,
Object... params)
Validate. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface net.sf.doolin.gui.validation.GUIValidator |
|---|
subscribe |
| Constructor Detail |
|---|
public AbstractValidator()
| Method Detail |
|---|
public GUIValidation validate(B model)
validate in interface GUIValidator<B>model - the bean
protected void isNotNull(GUIValidation result,
Object value,
Object key,
Object name)
result - the resultvalue - the valuekey - the keyname - the name
protected void isNotBlank(GUIValidation result,
String value,
Object key,
Object name)
result - the resultvalue - the valuekey - the keyname - the name
protected void validate(GUIValidation result,
boolean test,
Object key,
String msgKey,
Object... params)
result - the resulttest - the testkey - the keymsgKey - the msg keyparams - the params
protected abstract void validate(GUIValidation validationResult,
B model)
validationResult - the validation resultmodel - the model to validatepublic String getMsgMandatoryKey()
public void setMsgMandatoryKey(String msgMandatoryKey)
msgMandatoryKey - the new msg mandatory key
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||