|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: REQUIRED | OPTIONAL | DETAIL: ELEMENT | |||||||||
@Target(value={FIELD,METHOD})
@Retention(value=RUNTIME)
public @interface IsBooleanRequires that the annotated element be a boolean value. If the value received is not directly a boolean, it attempts a conversion using either predefined or specified patterns.
| Optional Element Summary | |
|---|---|
java.lang.String |
errorCode
Error code to use if validation fails. |
java.lang.String |
falsePattern
Pattern representing the possible values that are interpreted as "false" |
java.lang.String |
message
Literal message to use if validation fails. |
java.lang.String |
messageKey
Message key to use if validation fails. |
boolean |
notFalseMeansTrue
If set to true, only the "false" pattern is checked, and if it doesn't match, the value is assumed to be true automatically regardless of whether it matches the true pattern. |
boolean |
notTrueMeansFalse
If set to true, only the "true" pattern is checked, and if it doesn't match, the value is assumed to be false automatically regardless of whether it matches the false pattern. |
java.lang.String |
truePattern
Pattern representing the possible values that are interpreted as "true" |
public abstract java.lang.String truePattern
public abstract java.lang.String falsePattern
public abstract boolean notTrueMeansFalse
public abstract boolean notFalseMeansTrue
public abstract java.lang.String message
public abstract java.lang.String errorCode
public abstract java.lang.String messageKey
Messages.NUMERIC
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: REQUIRED | OPTIONAL | DETAIL: ELEMENT | |||||||||