Package uk.co.jemos.podam.common
Annotation Type PodamStringValue
-
@Documented @PodamAnnotation @Target({FIELD,PARAMETER}) @Retention(RUNTIME) public @interface PodamStringValue
Annotation used to customise string type attributes or constructor parameter.The
strValueattribute takes precedence overlength. If the former was specified the latter will be ignored.- Author:
- mtedone
-
-
Optional Element Summary
Optional Elements Modifier and Type Optional Element Description StringcommentIt allows clients to specify a comment on this annotationintlengthThe length of the String for the annotated attribute.StringstrValueIf specified, it allows clients to specify an exact value for the string
-
-
-
Element Detail
-
length
int length
The length of the String for the annotated attribute. It defaults toPodamConstants.STR_DEFAULT_LENGTH- Returns:
- string length
- Default:
- 10
-
-
-
strValue
String strValue
If specified, it allows clients to specify an exact value for the string- Returns:
- string value
- Default:
- ""
-
-
-
comment
String comment
It allows clients to specify a comment on this annotation- Returns:
- comment value
- Default:
- ""
-
-