Annotation Type Replace
-
@Retention(RUNTIME) @Inherited @Target({FIELD,METHOD,ANNOTATION_TYPE}) public @interface Replace
Indicates the String value of a field must have some of its contents replaced usingRegexConversion
.Commonly used for java beans processed using
BeanProcessor
and/orBeanWriterProcessor
- See Also:
Conversion
,Conversions
,BeanProcessor
,BeanWriterProcessor
-
-
Required Element Summary
Required Elements Modifier and Type Required Element Description java.lang.String
expression
The regular expression to be executed against the String value of the annotated fieldjava.lang.String
replacement
The replacement string to substitute any contents matched by the givenexpression()
-
-
-
-
replacement
java.lang.String replacement
The replacement string to substitute any contents matched by the givenexpression()
- Returns:
- the replacement string
-
-