|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: REQUIRED | OPTIONAL | DETAIL: ELEMENT | ||||||||
@Target(value={METHOD,FIELD})
@Retention(value=RUNTIME)
@Documented
public @interface RegularExpressionChecks if annotated method returns a value conform a regular expression. For syntax use check out: java.util.regex.Pattern Can be annotated on methods returning String or StringBuffer.
| Required Element Summary | |
|---|---|
java.lang.String |
pattern
The pattern the annotated method's value must adhere to. |
| Optional Element Summary | |
|---|---|
java.lang.String[] |
applyToGroups
Specify for which groups this annotation must be applied. |
java.lang.String |
customCode
Optional custom code (property from a properties file). |
boolean |
globalMessage
If this annotation's message must be added as global message instead of real validation path. |
| Element Detail |
|---|
public abstract java.lang.String pattern
Remember the annotation can be applied to java.lang.String and java.lang.StringBuffer.
Defaults to nothing.
public abstract java.lang.String customCode
This way you can override the default message if needed.
public abstract java.lang.String[] applyToGroups
public abstract boolean globalMessage
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: REQUIRED | OPTIONAL | DETAIL: ELEMENT | ||||||||