Class DateFormatValidationResult


  • final class DateFormatValidationResult
    extends java.lang.Object
    Reflects the result of a date format validation
    • Constructor Summary

      Constructors 
      Constructor Description
      DateFormatValidationResult​(boolean isValid, Message validationInformation, java.lang.Object... infoArgs)
      Create a new instance.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      boolean isValid()  
      void printErrorMessage​(FormattingMessager messager, javax.lang.model.element.Element element, javax.lang.model.element.AnnotationMirror annotation, javax.lang.model.element.AnnotationValue value)
      Print the error with the most specific information possible.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • isValid

        private final boolean isValid
      • validationInfo

        private final Message validationInfo
      • validationInfoArgs

        private final java.lang.Object[] validationInfoArgs
    • Constructor Detail

      • DateFormatValidationResult

        DateFormatValidationResult​(boolean isValid,
                                   Message validationInformation,
                                   java.lang.Object... infoArgs)
        Create a new instance.
        Parameters:
        isValid - determines of the validation was successful.
        validationInformation - a string representing the validation result
    • Method Detail

      • isValid

        public boolean isValid()
      • printErrorMessage

        public void printErrorMessage​(FormattingMessager messager,
                                      javax.lang.model.element.Element element,
                                      javax.lang.model.element.AnnotationMirror annotation,
                                      javax.lang.model.element.AnnotationValue value)
        Print the error with the most specific information possible.
        Parameters:
        messager - the messager to print the error message to
        element - the element that had the error
        annotation - the positionHint of the annotation that had an error
        value - the value of the annotation that had an error