net.sf.staccatocommons.restrictions.check
Annotation Type Matches
@Restriction
@Documented
@Retention(value=CLASS)
@Target(value={PARAMETER,FIELD,METHOD})
public @interface Matches
A check annotation that signals that the annotated element matches a regular
expression
Annotated elements should be of type String
- Author:
- flbulgarelli
- See Also:
Restriction
value
public abstract String value
- Returns:
- the regular expression
var
public abstract String var
- Returns:
- The variable name of the constrained element, or the empty string
if unspecified. This value may help tools that analyze this
annotation without access to source code.
- Default:
- ""
Copyright © 2010-2012 StaccatoCommons. All Rights Reserved.