com.univocity.parsers.annotations
Annotation Type Replace


@Retention(value=RUNTIME)
@Inherited
@Target(value={FIELD,METHOD,ANNOTATION_TYPE})
public @interface Replace

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 - parsers@univocity.com
See Also:
Conversion, Conversions, BeanProcessor, BeanWriterProcessor

Required Element Summary
 String expression
          The regular expression to be executed against the String value of the annotated field
 String replacement
          The replacement string to substitute any contents matched by the given expression()
 

Element Detail

expression

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

Returns:
the regular expression

replacement

public abstract String replacement
The replacement string to substitute any contents matched by the given expression()

Returns:
the replacement string


Copyright © 2017 uniVocity Software Pty Ltd. All rights reserved.