@SupportedAnnotationTypes(value="*")
@SupportedOptions(value={"diagnosticKind","verbose","methodConstraintsSupported"})
public class ConstraintValidationProcessor
extends javax.annotation.processing.AbstractProcessor
diagnosticKind
: the severity with which any occurred
problems shall be reported. Must be given in form of the string
representation of a value from Diagnostic.Kind
, e.g.
"diagnosticKind=WARNING". Default is Kind.ERROR.verbose
: whether a verbose output shall be created or not.
Must be given as String parsable by Boolean.parseBoolean(java.lang.String)
. Default is
false
.methodConstraintsSupported
: Whether constraints at other
methods than JavaBeans getter methods may be annotated with constraints or
not. Must be given as String parsable by Boolean.parseBoolean(java.lang.String)
. Can be
set to false
in order to allow only getter based property
constraints but not method level constraints as supported by Hibernate
Validator. Default is true
.Constructor and Description |
---|
ConstraintValidationProcessor() |
Modifier and Type | Method and Description |
---|---|
javax.lang.model.SourceVersion |
getSupportedSourceVersion() |
void |
init(javax.annotation.processing.ProcessingEnvironment processingEnv) |
boolean |
process(java.util.Set<? extends javax.lang.model.element.TypeElement> annotations,
javax.annotation.processing.RoundEnvironment roundEnvironment) |
public void init(javax.annotation.processing.ProcessingEnvironment processingEnv)
init
in interface javax.annotation.processing.Processor
init
in class javax.annotation.processing.AbstractProcessor
public javax.lang.model.SourceVersion getSupportedSourceVersion()
getSupportedSourceVersion
in interface javax.annotation.processing.Processor
getSupportedSourceVersion
in class javax.annotation.processing.AbstractProcessor
public boolean process(java.util.Set<? extends javax.lang.model.element.TypeElement> annotations, javax.annotation.processing.RoundEnvironment roundEnvironment)
process
in interface javax.annotation.processing.Processor
process
in class javax.annotation.processing.AbstractProcessor
Copyright © 2007-2022 Red Hat, Inc. All Rights Reserved