Package net.fortuna.ical4j.validate
Interface Validator<T>
- All Superinterfaces:
Serializable
- All Known Implementing Classes:
AbstractValidator,AttachValidator,AvailableValidator,CalendarValidatorImpl,ComponentValidator,DatePropertyValidator,EmptyValidator,ITIPValidator,JsonSchemaValidator,PropertyValidator,RecurValidator,StructuredDataValidator,TriggerValidator,UtcPropertyValidator,VAvailabilityValidator,VEventValidator,VFreeBusyValidator,VTimeZoneValidator,VToDoValidator
Implementors apply validation rules to iCalendar content to determine a level of compliance with the published
specifications.
-
Method Summary
Modifier and TypeMethodDescriptiondefault List<ValidationEntry>apply(ValidationRule rule, String context, ComponentContainer<?> target) Deprecated.default List<ValidationEntry>apply(ValidationRule rule, String context, PropertyContainer target) Deprecated.default List<ValidationEntry>apply(ValidationRule rule, Property target) Deprecated.static <T> voidassertFalse(Predicate<T> predicate, String message, boolean warn, T target, Object... messageParams) Deprecated.Validates the target content by applying validation rules.
-
Method Details
-
assertFalse
@Deprecated static <T> void assertFalse(Predicate<T> predicate, String message, boolean warn, T target, Object... messageParams) throws ValidationException Deprecated.- Throws:
ValidationException
-
validate
Validates the target content by applying validation rules. When content fails validation the validator may throw an exception depending on the implementation.- Parameters:
target- the target of validation- Returns:
- the result of validation applied to the specified target
- Throws:
ValidationException- indicates validation failure (implementation-specific)
-
apply
@Deprecated default List<ValidationEntry> apply(ValidationRule rule, String context, ComponentContainer<?> target) Deprecated.- Parameters:
rule-context-target-- Returns:
-
apply
@Deprecated default List<ValidationEntry> apply(ValidationRule rule, String context, PropertyContainer target) Deprecated.- Parameters:
rule-context-target-- Returns:
-
apply
Deprecated.- Parameters:
rule-target-- Returns:
-
ComponentContainerRuleSet.apply(String, ComponentContainer)