Class ValidationMessageFactory.AbstractValidationMessage
java.lang.Object
org.jboss.logging.processor.validation.ValidationMessageFactory.AbstractValidationMessage
- All Implemented Interfaces:
ValidationMessage
- Direct Known Subclasses:
ValidationMessageFactory.ValidationErrorMessage
,ValidationMessageFactory.ValidationWarningMessage
- Enclosing class:
- ValidationMessageFactory
private abstract static class ValidationMessageFactory.AbstractValidationMessage
extends Object
implements ValidationMessage
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.jboss.logging.processor.validation.ValidationMessage
ValidationMessage.Type
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final AnnotationMirror
private final AnnotationValue
private final Element
private final String
-
Constructor Summary
ConstructorsConstructorDescriptionAbstractValidationMessage
(Element element, String message, AnnotationMirror annotationMirror, AnnotationValue annotationValue) -
Method Summary
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.jboss.logging.processor.validation.ValidationMessage
printMessage, type
-
Field Details
-
element
-
message
-
annotationMirror
-
annotationValue
-
-
Constructor Details
-
AbstractValidationMessage
AbstractValidationMessage(Element element, String message, AnnotationMirror annotationMirror, AnnotationValue annotationValue)
-
-
Method Details
-
getElement
Description copied from interface:ValidationMessage
Returns the element that caused the error.- Specified by:
getElement
in interfaceValidationMessage
- Returns:
- the element that caused the error.
-
getMessage
Description copied from interface:ValidationMessage
Returns the error message.- Specified by:
getMessage
in interfaceValidationMessage
- Returns:
- the error message.
-
getAnnotationMirror
Description copied from interface:ValidationMessage
The annotation the error occurred on.- Specified by:
getAnnotationMirror
in interfaceValidationMessage
- Returns:
- the annotation the error occurred on or
null
if this was not an annotation error
-
getAnnotationValue
Description copied from interface:ValidationMessage
The value of the annotation which caused the error.- Specified by:
getAnnotationValue
in interfaceValidationMessage
- Returns:
- the value of the annotation or
null
-