Interface ValidationMessage
-
public interface ValidationMessageDate: 12.08.2011- Author:
- James R. Perkins
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static classValidationMessage.TypeValidation message type enum.
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description AnnotationMirrorgetAnnotationMirror()The annotation the error occurred on.AnnotationValuegetAnnotationValue()The value of the annotation which caused the error.ElementgetElement()Returns the element that caused the error.StringgetMessage()Returns the error message.default booleanprintMessage(Messager messager)Prints the message and returnstrueif the message was an error message.ValidationMessage.Typetype()The type of the message.
-
-
-
Method Detail
-
type
ValidationMessage.Type type()
The type of the message.- Returns:
- the type of the message.
-
getElement
Element getElement()
Returns the element that caused the error.- Returns:
- the element that caused the error.
-
getAnnotationMirror
AnnotationMirror getAnnotationMirror()
The annotation the error occurred on.- Returns:
- the annotation the error occurred on or
nullif this was not an annotation error
-
getAnnotationValue
AnnotationValue getAnnotationValue()
The value of the annotation which caused the error.- Returns:
- the value of the annotation or
null
-
getMessage
String getMessage()
Returns the error message.- Returns:
- the error message.
-
printMessage
default boolean printMessage(Messager messager)
Prints the message and returnstrueif the message was an error message.- Parameters:
messager- the messager used to print the message- Returns:
trueif this was an error message otherwisefalse
-
-