net.fortuna.ical4j.validate.DefaultCalendarValidatorFactory Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of ical4j Show documentation
Show all versions of ical4j Show documentation
A Java library for reading and writing iCalendar (*.ics) files
package net.fortuna.ical4j.validate;
import net.fortuna.ical4j.model.Calendar;
import static net.fortuna.ical4j.model.Property.*;
import static net.fortuna.ical4j.validate.ValidationRule.ValidationType.One;
import static net.fortuna.ical4j.validate.ValidationRule.ValidationType.OneOrLess;
/**
* Created by fortuna on 13/09/15.
*/
public class DefaultCalendarValidatorFactory implements CalendarValidatorFactory {
@Override
public Validator newInstance() {
return new CalendarValidatorImpl(new ValidationRule<>(One, PRODID, VERSION),
new ValidationRule<>(OneOrLess, CALSCALE, METHOD));
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy