Class DateFormatValidationResult
- java.lang.Object
-
- org.mapstruct.ap.internal.model.common.DateFormatValidationResult
-
final class DateFormatValidationResult extends java.lang.ObjectReflects the result of a date format validation
-
-
Field Summary
Fields Modifier and Type Field Description private booleanisValidprivate MessagevalidationInfoprivate java.lang.Object[]validationInfoArgs
-
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 booleanisValid()voidprintErrorMessage(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.
-
-
-
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 toelement- the element that had the errorannotation- the positionHint of the annotation that had an errorvalue- the value of the annotation that had an error
-
-