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.AnnotationMirrorannotationMirrorprivate javax.lang.model.element.AnnotationValueannotationValueprivate javax.lang.model.element.Elementelementprivate java.lang.Stringmessage
-
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.AnnotationMirrorgetAnnotationMirror()The annotation the error occurred on.javax.lang.model.element.AnnotationValuegetAnnotationValue()The value of the annotation which caused the error.javax.lang.model.element.ElementgetElement()Returns the element that caused the error.java.lang.StringgetMessage()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:ValidationMessageReturns the element that caused the error.- Specified by:
getElementin interfaceValidationMessage- Returns:
- the element that caused the error.
-
getMessage
public final java.lang.String getMessage()
Description copied from interface:ValidationMessageReturns the error message.- Specified by:
getMessagein interfaceValidationMessage- Returns:
- the error message.
-
getAnnotationMirror
public javax.lang.model.element.AnnotationMirror 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
public javax.lang.model.element.AnnotationValue 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
-
-