public abstract class AnnotationMessageCheck extends AnnotationParametersAbstractCheck
AnnotationUserMessageCheck - checks that message defined by a user is valid,
AnnotationDefaultMessageCheck - checks that default message is valid.annotationApiHelper| Constructor and Description |
|---|
AnnotationMessageCheck(AnnotationApiHelper annotationApiHelper) |
| Modifier and Type | Method and Description |
|---|---|
protected boolean |
canCheckThisAnnotation(AnnotationMirror annotation)
Verify that this check class can process such annotation.
|
protected boolean |
checkMessage(String message)
Verifies that message passed as parameter is valid (passes a regexp check).
|
checkAnnotationType, checkField, checkMethod, checkNonAnnotationType, doCheckpublic AnnotationMessageCheck(AnnotationApiHelper annotationApiHelper)
protected boolean canCheckThisAnnotation(AnnotationMirror annotation)
AnnotationParametersAbstractCheckcanCheckThisAnnotation in class AnnotationParametersAbstractCheckannotation - annotation you want to process by this classtrue if such annotation can be processed, false otherwise.protected boolean checkMessage(String message)
message - a message to verifytrue if message is valid, false otherwiseCopyright © 2007-2021 Red Hat, Inc. All Rights Reserved