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 ValidationMessage
ValidationMessage.Type -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final AnnotationMirrorprivate final AnnotationValueprivate final Elementprivate final String -
Constructor Summary
ConstructorsConstructorDescriptionAbstractValidationMessage(Element element, String message, AnnotationMirror annotationMirror, AnnotationValue annotationValue) -
Method Summary
Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface 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:ValidationMessageReturns the element that caused the error.- Specified by:
getElementin interfaceValidationMessage- Returns:
- the element that caused the error.
-
getMessage
Description copied from interface:ValidationMessageReturns the error message.- Specified by:
getMessagein interfaceValidationMessage- Returns:
- the error message.
-
getAnnotationMirror
Description copied from interface:ValidationMessageThe annotation the error occurred on.- Specified by:
getAnnotationMirrorin interfaceValidationMessage- Returns:
- the annotation the error occurred on or
nullif this was not an annotation error
-
getAnnotationValue
Description copied from interface:ValidationMessageThe value of the annotation which caused the error.- Specified by:
getAnnotationValuein interfaceValidationMessage- Returns:
- the value of the annotation or
null
-