org.iscreen |
This package contains classes and interfaces that are considered "public" to applications
that are using this framework. This means that applications using this framework only need to
import this package.
The ValidationService interface defines the primary entry point into the
iScreen validation framework. It's validate() and validateObject() methods executes all appropriate
validators that are represented by the service. An instance of the service represents
a "Validation Set" defined in a configuration file.
The ValidationException (ObjectValidationException) is thrown when a failure is found (or a warning). From
it, individual ValidationFailure objects can be retrieved (or just the messages,
themselves, as String objects). The ValidationFailure objects contain information about the service,
Validator, and context in which a failure occurs.
|
Java Source File Name | Type | Comment |
BaseValidator.java | Class | This abstract class acts as a base class for custom validators. |
ConfigurationException.java | Class | This is an unchecked, runtime exception that is thrown when a
programmer's error is detected (such as invalid configuration), etc. |
DocumentationIterator.java | Class | For each validation service, a set of documentation may exist (on a per
validator basis). |
FailureMessage.java | Interface | A failure message is a holding interface for objects that represent
failure messages. |
MockBean.java | Class | |
MockValidationFactory.java | Class | This ValidationFactory is used to test the ValidationFactory base class. |
MockValidator.java | Class | This mock validator is for unit testing. |
ObjectValidationException.java | Class | When a validation failure occurs, eventually an ObjectValidationException is
thrown to the caller. |
SimpleBean.java | Class | This is a JavaBean that has a single "value" property that can be used to
map a single value for validation. |
ValidationException.java | Class | When a validation failure occurs, eventually a ValidationException is
thrown to the caller. |
ValidationFactory.java | Class | This class represents factories that can generate validation services from
configuration files (or however the factory generates them). |
ValidationFactoryConfig.java | Class | This JavaBean is purely for configuration. |
ValidationFactoryTest.java | Class | |
ValidationFailure.java | Class | A validation failure represents a single failure reported by a Validator
(Validators can report multiple failures, each represented by a separate
instance of this class). |
ValidationService.java | Interface | This interface represents the main entry point for performing
validations. |
ValidationServiceWrapper.java | Class | This wrapper around a ValidationService is itself a ValidationService
implementation. |
Validator.java | Interface | Implementations of this interface are expected to validate a JavaBean's
properties. |
ValidatorContext.java | Interface | During validation, a Validator is given a reference to the context in which
it is validating. |