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

nl.vpro.domain.media.PomsValidCountry Maven / Gradle / Ivy

Go to download

The basic domain classes for 'media', the core of POMS. Also, the 'update' XML bindings for it. It also contains some closely related domain classes like the enum to contain NICAM kijkwijzer settings.

There is a newer version: 8.3.1
Show newest version
package nl.vpro.domain.media;

import java.lang.annotation.*;

import jakarta.validation.Constraint;
import jakarta.validation.Payload;
import jakarta.validation.constraints.NotNull;

import org.meeuw.i18n.countries.Country;
import org.meeuw.i18n.countries.validation.ValidCountry;
import org.meeuw.i18n.regions.validation.ValidRegion;

import static java.lang.annotation.ElementType.*;
import static java.lang.annotation.RetentionPolicy.RUNTIME;


/**
 * A meta annotation for country codes which are considered valid in poms.
 * 

* These are all former, officially assigned and most known user assigned countries. * Additionally, the countries of UK are accepted (these are really subdivisions). * * @since 5.31 */ @ValidRegion(classes = {Country.class}, includes = {"GB-ENG", "GB-NIR", "GB-SCT", "GB-WLS"}) @ValidCountry(value = ValidCountry.OFFICIAL | ValidCountry.USER_ASSIGNED | ValidCountry.FORMER, excludes = {"XN"} // patent institute assigned ) @NotNull @Target({ METHOD, FIELD, ANNOTATION_TYPE, CONSTRUCTOR, PARAMETER, TYPE_USE, TYPE_PARAMETER }) @Retention(RUNTIME) @Constraint(validatedBy = {}) @Documented public @interface PomsValidCountry { String message() default ""; Class[] groups() default {}; Class[] payload() default {}; }





© 2015 - 2024 Weber Informatics LLC | Privacy Policy