de.japkit.metaannotations.Constraint Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of japkit-annotations Show documentation
Show all versions of japkit-annotations Show documentation
Contains the meta annotations that comprise the DSL for writing code templates.
package de.japkit.metaannotations;
import javax.tools.Diagnostic.Kind;
public @interface Constraint {
/**
*
* @return the expression. Must be boolean. If it evaluates to false, the constraint is violated.
*/
String expr();
/**
*
* @return the message to be displayed if the constraint is violated.
*/
String msg();
/**
*
* @return the severity for the message.
*/
Kind msgKind() default Kind.ERROR;
/**
*
* @return the language of the expression. Default is Java EL.
*/
String lang() default "";
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy