org.beanfabrics.validation
Interface Validatable

All Known Subinterfaces:
IBigDecimalPM, IBooleanPM, IDatePM, IIconPM, IIntegerPM, IListPM<T>, IMapPM<K,V>, IOperationPM, ITextPM, IValuePM, PresentationModel
All Known Implementing Classes:
AbstractOperationPM, AbstractPM, AbstractValuePM, BigDecimalPM, BooleanPM, DatePM, DecimalPM, IconPM, IconTextPM, IntegerPM, ListPM, MapPM, MoneyPM, OperationPM, TextPM, ValidatableBean

public interface Validatable

The Validatable is an interface for classes that can be validated.

Author:
Michael Karneim

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.
 

Method Detail

revalidate

void revalidate()
Updates the validation state of this object.


getValidationState

ValidationState getValidationState()
Returns the current validation state of this object.

Returns:
the current validation state of this object

isValid

boolean isValid()
Returns true if this object is valid. This object is valid if it's validation state is null.

Returns:
true if this object is valid

getValidator

Validator getValidator()
Returns the Validator of this validatable object.

Returns:
the Validator of this validatable object


© 2010 by Michael Karneim, http://www.beanfabrics.org