| Home >> All >> de >> caffeine >> [ jargus Javadoc ] |
| | de.caffeine.jargus.tag.* (7) |
de.caffeine.jargus: Javadoc index of package de.caffeine.jargus.
Package Samples:
de.caffeine.jargus.tag
Classes:
Validation: This class provides an simple framework for http parameter validation, useful in java servlets, jsp pages (using taglibs) and other java based application with the need of validation of parameters before processing. It comes with common validation cases, which can be extended with appropriate validations by implementing validator interface. Design of these classes was lead by the feeling that implementation of validation and processing of validation results have to be separated and plugable. It contains three basic elements Validator which carry out validation as simple and encapsulated operations, ...
XMLValidationHandler: A validation handler which uses xml configuration files for setup. Sample configuration file: <jargus> Mapping tags are used for mapping parameter keys to labels which are put in error messages instead. <mapping parameter="p1" label="Name"/> <mapping parameter="p2" label="E-Mail" /> Summarized error message starts with: <error-message>Validation Failed</error-message> For every error type of validation an error message text can be set. The tokens: ${parameter} ${parameters} ${argument} ${arguments} will be replaced. <check validation="exist"> <error-message>Parameter ...
Validator: Validators carry of a certain validation of given parameters and arguments. Validation is done be calling validate method which results in a boolean value signalling if the validation was passed. Validator have to implement getValidationParameters and getValidationArguments methods to give ValidationHandler the possiblity to give appropriate information about validations.
ValidatorLoader: Classloader for Validator classes. Used to load the appropriate validator class according to a key in a given amount of directories. E.g. directories de.caffeine.jargus and com.yourcompany.val and parameter "myCustom" are given. ValidatorLoader tries to load classes with classname de.caffeine.jargus.MyCustomValidator and if it fails com.yourcompany.val.MyCustomValiador.
ValidationHandler: ValidationHandler process results of validation process. The intend of ValidationHandlers is similar to those which encouraged the use of listeners in AWT or Handler in SAX: give a simple interface for notification. ValidationHandler are notified if errors or warnings (not yet implemented) occure. They can access the validator object which triggered the event.
FormTag: Form. If validation passed the client will be redirected to action. todo: flush everthing if request provides no parameter keys, e.g. validation canceled.
GreaterValidator: Parameter[0] and parameter[1] are compared. x > y ? true : false; Values are processed as doubles.
CheckTag: CheckTag gathers all parameter and arguments off a validation together.
StringUtil: Used by XMLValidationHandler for String manipulation.
EqualValidator: Checks if all parameters and arguments are equal.
FontTag: Set color depending on the result of validation.
AbstractValidator: Implementation of common methods of validators.
MessageTag: Tag for displaying validation error messages.
OrValidator: Checks if one of the given parameter exists.
ExorValidator: Checks if exactly one parameter is present.
InputTag: Input tag according to html input tag.
IntegerValidator: Checks if a parameter is an integer.
ContainsValidator: Checks if parameters contain args.
ExtendedValidationHandler: An extended ValidationHandler.
ArgumentTag: Set arguments for validation.
ExistValidator: Check if parameter exists.
| Home | Contact Us | Privacy Policy | Terms of Service |