|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.beanfabrics.AbstractBean
org.beanfabrics.ValidatableBean
public class ValidatableBean
This is an implementation of Validatable
that uses a
Validator
for producing a fresh ValidationState
.
Constructor Summary | |
---|---|
ValidatableBean()
Constructs a new instance. |
Method Summary | |
---|---|
ValidationState |
getValidationState()
Returns the current validation state of this object. |
Validator |
getValidator()
Returns the Validator of this object. |
boolean |
isValid()
Returns whether this object is valid. |
void |
revalidate()
Updates the validation state of this object, usually by calling Validator.validate() . |
protected void |
setValidationState(ValidationState validationState)
Replaces the validation state. |
Methods inherited from class org.beanfabrics.AbstractBean |
---|
addPropertyChangeListener, addPropertyChangeListener, equals, getPropertyChangeSupport, removePropertyChangeListener, removePropertyChangeListener |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ValidatableBean()
Method Detail |
---|
public void revalidate()
Validator.validate()
.
revalidate
in interface Validatable
public final ValidationState getValidationState()
getValidationState
in interface Validatable
public final boolean isValid()
null
.
isValid
in interface Validatable
true
if this object is valid, otherwise
false
.public final Validator getValidator()
Validator
of this object. The validator is
responsible for creating the ValidationState
of this object by
evaluating a specific set of ValidationRule
s.
getValidator
in interface Validatable
Validator
of this objectprotected final void setValidationState(ValidationState validationState)
revalidate()
method.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |