Class Configuration
java.lang.Object
org.hibernate.validator.ap.internal.util.Configuration
Provides access to the processor options supported by the Hibernate Validator
annotation processor.
- Author:
- Gunnar Morling
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final Diagnostic.Kind
The diagnostic kind to be used if no or an invalid kind is given as processor option.static final String
The name of the processor option for setting the diagnostic kind to be used when reporting errors during annotation processing.static final String
The name of the processor option for allowing constraints at methods other than getter methods.static final String
The name of the processor option for activating verbose message reporting. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionReturns the diagnosticKind to be used when reporting failing constraint checks.boolean
Whether logging information shall be put out in a verbose way or not.boolean
Whether method constraints are allowed at any method (true
) or only getter methods (false
).
-
Field Details
-
DIAGNOSTIC_KIND_PROCESSOR_OPTION
The name of the processor option for setting the diagnostic kind to be used when reporting errors during annotation processing.- See Also:
-
VERBOSE_PROCESSOR_OPTION
The name of the processor option for activating verbose message reporting.- See Also:
-
METHOD_CONSTRAINTS_SUPPORTED_PROCESSOR_OPTION
The name of the processor option for allowing constraints at methods other than getter methods.- See Also:
-
DEFAULT_DIAGNOSTIC_KIND
The diagnostic kind to be used if no or an invalid kind is given as processor option.
-
-
Constructor Details
-
Configuration
-
-
Method Details
-
getDiagnosticKind
Returns the diagnosticKind to be used when reporting failing constraint checks.- Returns:
- the diagnosticKind to be used when reporting failing constraint checks
-
isVerbose
public boolean isVerbose()Whether logging information shall be put out in a verbose way or not.- Returns:
true
if logging information shall be put out in a verbose,false
otherwise
-
methodConstraintsSupported
public boolean methodConstraintsSupported()Whether method constraints are allowed at any method (true
) or only getter methods (false
).- Returns:
true
if method constraints are allowed on any method, {code false} if only on getter methods
-