net.sf.staccatocommons.restrictions.check
Annotation Type MinSize
@Restriction
@Documented
@Retention(value=CLASS)
@Target(value={PARAMETER,FIELD,METHOD})
public @interface MinSize
A check annotation that signals the annotated element's size must be, at
minimum, the given value.
This annotation should only be applied to elements that understand a length
or size attribute, or length, or size method, like Collections,
Strings, arrays and SizeAware's from Staccato-Commons-Defs
- Author:
- flbulgarelli
- See Also:
Restriction
|
Required Element Summary |
int |
value
The minimum value of the annotated element's size |
value
@Positive
public abstract int value
- The minimum value of the annotated element's size
- Returns:
- the minimum size.
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.