Interface ValidationMessage
public interface ValidationMessage
Date: 12.08.2011
- Author:
- James R. Perkins
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic enum
Validation message type enum. -
Method Summary
Modifier and TypeMethodDescriptionThe annotation the error occurred on.The value of the annotation which caused the error.Returns the element that caused the error.Returns the error message.default boolean
printMessage
(Messager messager) Prints the message and returnstrue
if the message was an error message.type()
The type of the message.
-
Method Details
-
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
null
if 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
Prints the message and returnstrue
if the message was an error message.- Parameters:
messager
- the messager used to print the message- Returns:
true
if this was an error message otherwisefalse
-