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
,StructuredDataValidator
,TriggerValidator
,UtcPropertyValidator
,VAvailabilityValidator
,VEventValidator
,VFreeBusyValidator
,VTimeZoneValidator
,VToDoValidator
public interface Validator<T> extends Serializable
Implementors apply validation rules to iCalendar content to determine a level of compliance with the published specifications.
-
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Default Methods Deprecated Methods Modifier and Type Method Description default 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> void
assertFalse(Predicate<T> predicate, String message, boolean warn, T target, Object... messageParams)
Deprecated.ValidationResult
validate(T target)
Validates the target content by applying validation rules.
-
-
-
Method Detail
-
assertFalse
@Deprecated static <T> void assertFalse(Predicate<T> predicate, String message, boolean warn, T target, Object... messageParams) throws ValidationException
Deprecated.- Throws:
ValidationException
-
validate
ValidationResult validate(T target) throws ValidationException
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 default List<ValidationEntry> apply(ValidationRule rule, Property target)
Deprecated.- Parameters:
rule
-target
-- Returns:
-
-