Class ValidationMessageFactory.AbstractValidationMessage

    • 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
    • Field Detail

      • element

        private final javax.lang.model.element.Element element
      • message

        private final java.lang.String message
      • annotationMirror

        private final javax.lang.model.element.AnnotationMirror annotationMirror
      • annotationValue

        private final javax.lang.model.element.AnnotationValue annotationValue
    • Constructor Detail

      • AbstractValidationMessage

        AbstractValidationMessage​(javax.lang.model.element.Element element,
                                  java.lang.String message,
                                  javax.lang.model.element.AnnotationMirror annotationMirror,
                                  javax.lang.model.element.AnnotationValue annotationValue)
    • 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 interface ValidationMessage
        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 interface ValidationMessage
        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 interface ValidationMessage
        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 interface ValidationMessage
        Returns:
        the value of the annotation or null