|
||||||||||
| 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 validatable object. |
boolean |
isValid()
Returns true if this object is valid. |
void |
revalidate()
Updates the validation state of this object. |
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()
revalidate in interface Validatablepublic final ValidationState getValidationState()
getValidationState in interface Validatablepublic final boolean isValid()
true if this object is valid. This object is valid
if it's validation state is null.
isValid in interface Validatabletrue if this object is validpublic final Validator getValidator()
Validator of this validatable object.
getValidator in interface ValidatableValidator of this validatable objectprotected final void setValidationState(ValidationState validationState)
revalidate() method.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||