|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object | +--org.zaval.util.ValidationObject
This abstract class is implementation of the Validationable interface that can
be inherited with other classes. It is necessary to implement recalc
method of the class, the method will be executed when the the validation process
has been performed with validate method and the object is not valid.
It means that the implementation guarantees that recalc method will be
executed only if it is realy necessary.
| Field Summary | |
protected boolean |
isValidFlag
|
| Constructor Summary | |
ValidationObject()
|
|
| Method Summary | |
void |
invalidate()
Invalidates this object. |
boolean |
isValid()
Checks if this object is valid. |
protected abstract void |
recalc()
Invoked with validate method in a case if the object is not valid. |
void |
validate()
Validates this object. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
protected boolean isValidFlag
| Constructor Detail |
public ValidationObject()
| Method Detail |
public void invalidate()
Validationableinvalidate in interface Validationablepublic void validate()
Validationablevalidate in interface Validationablepublic boolean isValid()
ValidationableisValid in interface Validationableorg.zaval.util.Validationabletrue.protected abstract void recalc()
validate method in a case if the object is not valid.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||