org.hibernate.validator.ap
Class ConstraintValidationProcessor
java.lang.Object
javax.annotation.processing.AbstractProcessor
org.hibernate.validator.ap.ConstraintValidationProcessor
- All Implemented Interfaces:
- javax.annotation.processing.Processor
@SupportedAnnotationTypes(value="*")
@SupportedSourceVersion(value=RELEASE_6)
@SupportedOptions(value={"diagnosticKind","verbose"})
public class ConstraintValidationProcessor- extends javax.annotation.processing.AbstractProcessor
An annotation processor for checking Bean Validation constraints.
The processor supports the following options:
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.
- TODO GM: validationMode: whether spec compliance shall be checked
strictly or loosely (e.g. by allowing validators for parametrized types)
- Author:
- Hardy Ferentschik, Gunnar Morling
| Fields inherited from class javax.annotation.processing.AbstractProcessor |
processingEnv |
|
Method Summary |
void |
init(javax.annotation.processing.ProcessingEnvironment processingEnv)
|
boolean |
process(Set<? extends javax.lang.model.element.TypeElement> annotations,
javax.annotation.processing.RoundEnvironment roundEnvironment)
|
| Methods inherited from class javax.annotation.processing.AbstractProcessor |
getCompletions, getSupportedAnnotationTypes, getSupportedOptions, getSupportedSourceVersion, isInitialized |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DIAGNOSTIC_KIND_PROCESSOR_OPTION_NAME
public static final String DIAGNOSTIC_KIND_PROCESSOR_OPTION_NAME
- The name of the processor option for setting the diagnostic kind to be
used when reporting errors during annotation processing.
- See Also:
- Constant Field Values
VERBOSE_PROCESSOR_OPTION_NAME
public static final String VERBOSE_PROCESSOR_OPTION_NAME
- The name of the processor option for activating verbose message reporting.
- See Also:
- Constant Field Values
DEFAULT_DIAGNOSTIC_KIND
public static final javax.tools.Diagnostic.Kind DEFAULT_DIAGNOSTIC_KIND
- The diagnostic kind to be used if no or an invalid kind is given as processor option.
ConstraintValidationProcessor
public ConstraintValidationProcessor()
init
public void init(javax.annotation.processing.ProcessingEnvironment processingEnv)
- Specified by:
init in interface javax.annotation.processing.Processor- Overrides:
init in class javax.annotation.processing.AbstractProcessor
process
public boolean process(Set<? extends javax.lang.model.element.TypeElement> annotations,
javax.annotation.processing.RoundEnvironment roundEnvironment)
- Specified by:
process in interface javax.annotation.processing.Processor- Specified by:
process in class javax.annotation.processing.AbstractProcessor
Copyright © 2007-2010. All Rights Reserved.