Annotation Type Replace
-
@Retention(RUNTIME) @Inherited @Target({FIELD,METHOD,ANNOTATION_TYPE}) public @interface ReplaceIndicates the String value of a field must have some of its contents replaced usingRegexConversion.Commonly used for java beans processed using
BeanProcessorand/orBeanWriterProcessor- See Also:
Conversion,Conversions,BeanProcessor,BeanWriterProcessor
-
-
Required Element Summary
Required Elements Modifier and Type Required Element Description java.lang.StringexpressionThe regular expression to be executed against the String value of the annotated fieldjava.lang.StringreplacementThe 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
-
-