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

net.fortuna.ical4j.vcard.validate.OrganizationalPropertyValidators Maven / Gradle / Ivy

The newest version!
package net.fortuna.ical4j.vcard.validate;

import net.fortuna.ical4j.validate.PropertyValidator;
import net.fortuna.ical4j.validate.ValidationRule;
import net.fortuna.ical4j.validate.Validator;
import net.fortuna.ical4j.vcard.PropertyName;
import net.fortuna.ical4j.vcard.property.*;

import static net.fortuna.ical4j.validate.ValidationRule.ValidationType.OneOrLess;
import static net.fortuna.ical4j.vcard.ParameterName.*;

public interface OrganizationalPropertyValidators extends PropertyValidatorSupport {

    Validator LOGO = new PropertyValidator<>(PropertyName.LOGO.toString(),
            new ValidationRule<>(OneOrLess, LANGUAGE.toString(), PID.toString(),
                    PREF.toString(), ALTID.toString(), TYPE.toString(),
                    MEDIATYPE.toString()),
            URI_VALUE);

    Validator MEMBER = new PropertyValidator<>(PropertyName.MEMBER.toString(),
            new ValidationRule<>(OneOrLess, PID.toString(), PREF.toString(),
                    ALTID.toString(), MEDIATYPE.toString()),
            URI_VALUE);

    Validator ORG = new PropertyValidator<>(PropertyName.ORG.toString(),
            new ValidationRule<>(OneOrLess, SORT_AS.toString(), LANGUAGE.toString(),
                    PID.toString(), PREF.toString(), ALTID.toString(),
                    TYPE.toString()),
            TEXT_VALUE);

    Validator RELATED_TEXT = new PropertyValidator<>(PropertyName.RELATED.toString(),
            new ValidationRule<>(OneOrLess, PID.toString(), PREF.toString(),
                    ALTID.toString(), TYPE.toString(), LANGUAGE.toString()),
            TEXT_VALUE);

    Validator RELATED_URI = new PropertyValidator<>(PropertyName.RELATED.toString(),
            new ValidationRule<>(OneOrLess, PID.toString(), PREF.toString(),
                    ALTID.toString(), TYPE.toString(), MEDIATYPE.toString()),
            URI_VALUE);

    Validator ROLE = new PropertyValidator<>(PropertyName.ROLE.toString(),
            new ValidationRule<>(OneOrLess, LANGUAGE.toString(), PID.toString(),
                    PREF.toString(), ALTID.toString(), TYPE.toString()),
            TEXT_VALUE);

    Validator TITLE = new PropertyValidator<>(PropertyName.TITLE.toString(),
            new ValidationRule<>(OneOrLess, LANGUAGE.toString(), PID.toString(),
                    PREF.toString(), ALTID.toString(), TYPE.toString()),
            TEXT_VALUE);
}
</code></pre>    <br/>
    <br/>
<div class='clear'></div>
</main>
</div>
<br/><br/>
    <div class="align-center">© 2015 - 2025 <a href="/legal-notice.php">Weber Informatics LLC</a> | <a href="/data-protection.php">Privacy Policy</a></div>
<br/><br/><br/><br/><br/><br/>
</body>
</html>