Package net.fortuna.ical4j.validate
Class AbstractValidator<T>
- java.lang.Object
-
- net.fortuna.ical4j.validate.AbstractValidator<T>
-
- All Implemented Interfaces:
Serializable
,Validator<T>
- Direct Known Subclasses:
ComponentValidator
,PropertyValidator
public abstract class AbstractValidator<T> extends Object implements Validator<T>
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description AbstractValidator(String context, AbstractValidationRuleSet<? super T>... ruleSets)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ValidationResult
validate(T target)
Validates the target content by applying validation rules.
-
-
-
Constructor Detail
-
AbstractValidator
@SafeVarargs public AbstractValidator(String context, AbstractValidationRuleSet<? super T>... ruleSets)
-
-
Method Detail
-
validate
public ValidationResult validate(T target) throws ValidationException
Description copied from interface:Validator
Validates the target content by applying validation rules. When content fails validation the validator may throw an exception depending on the implementation.- Specified by:
validate
in interfaceValidator<T>
- Parameters:
target
- the target of validation- Returns:
- the result of validation applied to the specified target
- Throws:
ValidationException
- indicates validation failure (implementation-specific)
-
-