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

com.realcomp.prime.annotation.Validator Maven / Gradle / Ivy

The newest version!
package com.realcomp.prime.annotation;



import java.lang.annotation.Documented;
import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;

/**
 * Marker annotation for a Prime Validator.
 *
 * The annotated class must have a default no-arg constructor.
 * The constructor requirement is enforced by a custom annotation processor.
 *
 * @author krenfro
 */
@Target(ElementType.TYPE)
@Retention(RetentionPolicy.RUNTIME)
@Documented
public @interface Validator {

    /**
     * The name for the validator.  This name should be unique and will be used
     * for operations like schema serialization.
     *
     * @return the name for the validator.
     */
    String value();
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy