Top Description Methods
com.univocity.parsers.annotations

public @Interface Replace

extends Annotation
Annotations
@Retention:RUNTIME
@Inherited
@Target:FIELD, METHOD, ANNOTATION_TYPE
Imports
com.univocity.parsers.common.processor.*, com.univocity.parsers.conversions.*, java.lang.annotation.*

Indicates the String value of a field must have some of its contents replaced using RegexConversion.

Commonly used for java beans processed using BeanProcessor and/or BeanWriterProcessor

Author
Univocity Software Pty Ltd - [email protected]
See Also
Conversion, Conversions, BeanProcessor, BeanWriterProcessor

Method Summary

Modifier and TypeMethod and Description
public String

Returns:

the regular expression
expression
()

The regular expression to be executed against the String value of the annotated field

public String

Returns:

the replacement string
replacement
()

The replacement string to substitute any contents matched by the given Replace#expression()

Inherited from java.lang.annotation.Annotation:
annotationTypeequalshashCodetoString

Method Detail

expressionback to summary
public String expression()

The regular expression to be executed against the String value of the annotated field

Returns:String

the regular expression

replacementback to summary
public String replacement()

The replacement string to substitute any contents matched by the given Replace#expression()

Returns:String

the replacement string