Package net.fortuna.ical4j.validate
Class ValidationRule<T>
java.lang.Object
net.fortuna.ical4j.validate.ValidationRule<T>
- All Implemented Interfaces:
Serializable
Defines a rule for validating iCalendar content. A rule consists of a validation type (e.g. presence/absence of
specific content), and one or more identifiers (names) of iCalendar content.
For example, a rule might define a test for one or less DTEND properties using the "OneOrLess" validation type
and "DTEND" identifier.
- See Also:
-
Nested Class Summary
Nested Classes -
Constructor Summary
ConstructorsConstructorDescriptionValidationRule(ValidationRule.ValidationType type, boolean relaxedModeSupported, String... instances) ValidationRule(ValidationRule.ValidationType type, String... instances) ValidationRule(ValidationRule.ValidationType type, Predicate<T> predicate, boolean relaxedModeSupported, String... instances) ValidationRule(ValidationRule.ValidationType type, Predicate<T> predicate, String message, boolean relaxedModeSupported, String... instances) ValidationRule(ValidationRule.ValidationType type, Predicate<T> predicate, String message, String... instances) -
Method Summary
-
Constructor Details
-
ValidationRule
- Parameters:
type- rule typeinstances- list of identifiers to check (parameter, property, component, etc.)
-
ValidationRule
public ValidationRule(ValidationRule.ValidationType type, Predicate<T> predicate, String message, String... instances) -
ValidationRule
public ValidationRule(ValidationRule.ValidationType type, boolean relaxedModeSupported, String... instances) - Parameters:
type- rule typerelaxedModeSupported- indicates if rule can be ignored when relaxed mode is enabledinstances- list of identifiers to check (parameter, property, component, etc.)
-
ValidationRule
public ValidationRule(ValidationRule.ValidationType type, Predicate<T> predicate, boolean relaxedModeSupported, String... instances) -
ValidationRule
public ValidationRule(ValidationRule.ValidationType type, Predicate<T> predicate, String message, boolean relaxedModeSupported, String... instances)
-
-
Method Details
-
getType
-
getPredicate
-
getInstances
-
getMessage
-
getSeverity
-