public class ConstraintCheckIssue
extends java.lang.Object
ConstraintCheck
. Comprises
information about the location at which the issue occurred and a message
describing the occurred issue.Modifier and Type | Class and Description |
---|---|
static class |
ConstraintCheckIssue.IssueKind |
Constructor and Description |
---|
ConstraintCheckIssue(javax.lang.model.element.Element element,
javax.lang.model.element.AnnotationMirror annotationMirror,
ConstraintCheckIssue.IssueKind kind,
java.lang.String messageKey,
java.lang.Object... messageParameters)
Creates a new ConstraintCheckIssue.
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object obj) |
static ConstraintCheckIssue |
error(javax.lang.model.element.Element element,
javax.lang.model.element.AnnotationMirror annotationMirror,
java.lang.String messageKey,
java.lang.Object... messageParameters)
Creates a new ConstraintCheckIssue of error kind (
ConstraintCheckIssue.IssueKind.ERROR ). |
javax.lang.model.element.AnnotationMirror |
getAnnotationMirror() |
javax.lang.model.element.Element |
getElement() |
ConstraintCheckIssue.IssueKind |
getKind() |
java.lang.String |
getMessageKey() |
java.lang.Object[] |
getMessageParameters() |
int |
hashCode() |
boolean |
isError()
Determine if issue is an error
|
boolean |
isWarning()
Determine if issue is a warning
|
java.lang.String |
toString() |
static ConstraintCheckIssue |
warning(javax.lang.model.element.Element element,
javax.lang.model.element.AnnotationMirror annotationMirror,
java.lang.String messageKey,
java.lang.Object... messageParameters)
Creates a new ConstraintCheckIssue of warning kind (
ConstraintCheckIssue.IssueKind.WARNING ). |
public ConstraintCheckIssue(javax.lang.model.element.Element element, javax.lang.model.element.AnnotationMirror annotationMirror, ConstraintCheckIssue.IssueKind kind, java.lang.String messageKey, java.lang.Object... messageParameters)
element
- The element at which the error occurred.annotationMirror
- The annotation that causes the error.messageKey
- A key for retrieving an error message template from the bundle
org.hibernate.validator.ap.ValidationProcessorMessages.
messageParameters
- An array with values to put into the error message template
using MessageFormat
. The number of elements must match
the number of place holders in the message template.public javax.lang.model.element.Element getElement()
public javax.lang.model.element.AnnotationMirror getAnnotationMirror()
public ConstraintCheckIssue.IssueKind getKind()
public java.lang.String getMessageKey()
public java.lang.Object[] getMessageParameters()
public boolean isError()
getKind()
equals to ConstraintCheckIssue.IssueKind.ERROR
public boolean isWarning()
getKind()
equals to ConstraintCheckIssue.IssueKind.WARNING
public static ConstraintCheckIssue error(javax.lang.model.element.Element element, javax.lang.model.element.AnnotationMirror annotationMirror, java.lang.String messageKey, java.lang.Object... messageParameters)
ConstraintCheckIssue.IssueKind.ERROR
).element
- The element at which the error occurred.annotationMirror
- The annotation that causes the error.messageKey
- A key for retrieving an error message template from the bundle
org.hibernate.validator.ap.ValidationProcessorMessages.
messageParameters
- An array with values to put into the error message template
using MessageFormat
. The number of elements must match
the number of place holders in the message template.public static ConstraintCheckIssue warning(javax.lang.model.element.Element element, javax.lang.model.element.AnnotationMirror annotationMirror, java.lang.String messageKey, java.lang.Object... messageParameters)
ConstraintCheckIssue.IssueKind.WARNING
).element
- The element at which the error occurred.annotationMirror
- The annotation that causes the error.messageKey
- A key for retrieving an error message template from the bundle
org.hibernate.validator.ap.ValidationProcessorMessages.
messageParameters
- An array with values to put into the error message template
using MessageFormat
. The number of elements must match
the number of place holders in the message template.public java.lang.String toString()
toString
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
Copyright © 2007-2022 Red Hat, Inc. All Rights Reserved