Package net.fortuna.ical4j.validate
Class CalendarValidatorImpl
- java.lang.Object
-
- net.fortuna.ical4j.validate.CalendarValidatorImpl
-
- All Implemented Interfaces:
Serializable
,Validator<Calendar>
public class CalendarValidatorImpl extends Object implements Validator<Calendar>
Created by fortuna on 13/09/15.- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description protected List<Class<? extends Property>>
calendarProperties
-
Constructor Summary
Constructors Constructor Description CalendarValidatorImpl(ValidationRule... rules)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ValidationResult
validate(Calendar target)
Validates the target content by applying validation rules.
-
-
-
Constructor Detail
-
CalendarValidatorImpl
public CalendarValidatorImpl(ValidationRule... rules)
-
-
Method Detail
-
validate
public ValidationResult validate(Calendar 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<Calendar>
- Parameters:
target
- the target of validation- Returns:
- the result of validation applied to the specified target
- Throws:
ValidationException
- indicates validation failure (implementation-specific)
-
-