Module ical4j.core
Package net.fortuna.ical4j.validate
Class ComponentValidator<T extends Component>
java.lang.Object
net.fortuna.ical4j.validate.AbstractValidator<T>
net.fortuna.ical4j.validate.ComponentValidator<T>
- All Implemented Interfaces:
Serializable,ContentValidator<Property>,Validator<T>
- Direct Known Subclasses:
VEventValidator,VToDoValidator
public class ComponentValidator<T extends Component>
extends AbstractValidator<T>
implements ContentValidator<Property>
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final ComponentValidator<Available>static final ValidationRule<ComponentContainer<?>>static final ComponentValidator<Observance>static final ComponentValidator<Participant>static final ComponentValidator<VAlarm>static final ComponentValidator<VAlarm>static final ComponentValidator<VAlarm>static final ComponentValidator<VAlarm>static final ComponentValidator<VAvailability>static final ComponentValidator<VEvent>static final ComponentValidator<VFreeBusy>static final ComponentValidator<VJournal>static final ComponentValidator<VLocation>static final ComponentValidator<VResource>static final ComponentValidator<VTimeZone>static final ComponentValidator<VToDo>static final ComponentValidator<VVenue>Fields inherited from interface net.fortuna.ical4j.validate.ContentValidator
ASSERT_NONE_MESSAGE, ASSERT_ONE_MESSAGE, ASSERT_ONE_OR_LESS_MESSAGE, ASSERT_ONE_OR_MORE_MESSAGE -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic voidassertNone(String componentName, ComponentList<?> components) Deprecated.static voidassertOneOrLess(String componentName, ComponentList<?> components) Deprecated.Validates the target content by applying validation rules.
-
Field Details
-
AVAILABLE
-
PARTICIPANT
-
VAVAILABILITY
-
VEVENT
-
VFREEBUSY
-
VJOURNAL
-
VLOCATION
-
VRESOURCE
-
VTIMEZONE
-
VTODO
-
VVENUE
-
OBSERVANCE_ITIP
-
VALARM_AUDIO
-
VALARM_DISPLAY
-
VALARM_EMAIL
-
VALARM_ITIP
-
NO_ALARMS
-
-
Constructor Details
-
ComponentValidator
-
-
Method Details
-
validate
Description copied from interface:ValidatorValidates the target content by applying validation rules. When content fails validation the validator may throw an exception depending on the implementation.- Specified by:
validatein interfaceValidator<T extends Component>- Overrides:
validatein classAbstractValidator<T extends Component>- Parameters:
target- the target of validation- Returns:
- the result of validation applied to the specified target
- Throws:
ValidationException- indicates validation failure (implementation-specific)
-
assertNone
@Deprecated public static void assertNone(String componentName, ComponentList<?> components) throws ValidationException Deprecated.- Parameters:
componentName- a component name used in the assertioncomponents- a list of components- Throws:
ValidationException- where the assertion fails
-
assertOneOrLess
@Deprecated public static void assertOneOrLess(String componentName, ComponentList<?> components) throws ValidationException Deprecated.- Parameters:
componentName- a component name used in the assertioncomponents- a list of components- Throws:
ValidationException- where the assertion fails
-
ContentValidator.assertNone(String, List, boolean)