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:
  • Field Details

    • calendarProperties

      protected final List<Class<? extends Property>> calendarProperties
  • Constructor Details

    • CalendarValidatorImpl

      public CalendarValidatorImpl(ValidationRule... rules)
  • Method Details

    • 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 interface Validator<Calendar>
      Parameters:
      target - the target of validation
      Returns:
      the result of validation applied to the specified target
      Throws:
      ValidationException - indicates validation failure (implementation-specific)