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

com.quorum.tessera.config.constraints.ValidContent Maven / Gradle / Ivy

There is a newer version: 0.11.0.30092019161842
Show newest version
package com.quorum.tessera.config.constraints;

import java.lang.annotation.Documented;
import static java.lang.annotation.ElementType.*;
import java.lang.annotation.Retention;
import static java.lang.annotation.RetentionPolicy.RUNTIME;
import java.lang.annotation.Target;
import javax.validation.Constraint;
import javax.validation.Payload;

@Target({FIELD, METHOD, PARAMETER, ANNOTATION_TYPE, TYPE_PARAMETER, TYPE_USE})
@Retention(RUNTIME)
@Constraint(validatedBy = ValidContentValidator.class)
@Documented
public @interface ValidContent {
    
    String message() default "{ValidContent.message}";

    Class[] groups() default {};

    Class[] payload() default {};
    
    int minLines() default 0;
    
    int maxLines() default Integer.MAX_VALUE;
    
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy