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 java.lang.Object implements ValidationMessage
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface org.jboss.logging.processor.validation.ValidationMessage
ValidationMessage.Type
-
-
Field Summary
Fields Modifier and Type Field Description private javax.lang.model.element.AnnotationMirror
annotationMirror
private javax.lang.model.element.AnnotationValue
annotationValue
private javax.lang.model.element.Element
element
private java.lang.String
message
-
Constructor Summary
Constructors Constructor Description AbstractValidationMessage(javax.lang.model.element.Element element, java.lang.String message, javax.lang.model.element.AnnotationMirror annotationMirror, javax.lang.model.element.AnnotationValue annotationValue)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description javax.lang.model.element.AnnotationMirror
getAnnotationMirror()
The annotation the error occurred on.javax.lang.model.element.AnnotationValue
getAnnotationValue()
The value of the annotation which caused the error.javax.lang.model.element.Element
getElement()
Returns the element that caused the error.java.lang.String
getMessage()
Returns the error message.-
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
-
-
-
-
Method Detail
-
getElement
public final javax.lang.model.element.Element 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
public final java.lang.String getMessage()
Description copied from interface:ValidationMessage
Returns the error message.- Specified by:
getMessage
in interfaceValidationMessage
- Returns:
- the error message.
-
getAnnotationMirror
public javax.lang.model.element.AnnotationMirror 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
public javax.lang.model.element.AnnotationValue 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
-
-