All Downloads are FREE. Search and download functionalities are using the official Maven repository.

net.fortuna.ical4j.validate.DefaultCalendarValidatorFactory Maven / Gradle / Ivy

There is a newer version: 4.0.8
Show newest version
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