org.beanfabrics.validation
Interface Validatable

All Known Subinterfaces:
CustomizerPM, IBigDecimalPM, IBooleanPM, IDatePM, IIconPM, IImagePM, IIntegerPM, IListPM<T>, IMapPM<K,V>, IOperationPM, ITextPM, IValuePM, PresentationModel
All Known Implementing Classes:
AbstractCustomizerPM, AbstractOperationPM, AbstractPM, AbstractValuePM, BigDecimalPM, BnListCustomizerPM, BnTableCustomizerPM, BooleanPM, ColumnListConfigurationPM, ColumnListPM, ColumnPM, ContactPM, DatePM, DecimalPM, EntryPM, GroupPM, HorizontalAlignmentPM, IconPM, IconTextPM, ImageTextPM, IntegerPM, ListPM, LoginPM, LoginPM, MapPM, ModelSubscriberCustomizerPM, MoneyPM, OperationPM, PathBrowserPM, PathChooserPM, PathNodePM, PathPM, PhoneNumberPM, PropertiesPM, RegexPM, RegexTesterPM, TextPM, TimeSpanPM, TitlePM, ValidatableBean

public interface Validatable

The Validatable interface declares the interface for classes that can be validated.

See the online  documentation on validation for more information.


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().
 

Method Detail

revalidate

void revalidate()
Updates the validation state of this object, usually by calling Validator.validate().


getValidationState

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

Returns:
the current validation state of this object

isValid

boolean isValid()
Returns whether this object is valid. This object is valid if its validation state is null.

Returns:
true if this object is valid, otherwise false.

getValidator

Validator getValidator()
Returns the Validator of this object. The validator is responsible for creating the ValidationState of this object by evaluating a specific set of ValidationRules.

Returns:
the Validator of this object