Package de.cxp.ocs.conf.converter
Class PatternWithReplacementConfiguration
java.lang.Object
de.cxp.ocs.conf.converter.PatternConfiguration
de.cxp.ocs.conf.converter.PatternWithReplacementConfiguration
- All Implemented Interfaces:
ConfigureableField
ConfigureableField
implementations that holds all information needed
by the ReplacePatternInValuesDataProcessor
. The configuration allows:
configuration: ReplacePatternInValuesDataProcessor: someFieldName: ".*\\d+.*" someFieldName_replacement: "foo" someFieldName_destination: "someDestinationField"
- See Also:
-
Field Summary
FieldsFields inherited from class de.cxp.ocs.conf.converter.PatternConfiguration
FIELD_REPLACEMENT_DESTINATION, FIELD_WORD_JOIN_SEPARATOR, FIELD_WORD_SPLIT_REGEX
-
Constructor Summary
ConstructorsConstructorDescriptionPatternWithReplacementConfiguration
(String fieldName, String destinationFieldName, Pattern pattern, String replacement) Creats a new instance. -
Method Summary
Modifier and TypeMethodDescriptionGets the replacement or an empty string if no replacement is configured.Methods inherited from class de.cxp.ocs.conf.converter.PatternConfiguration
getDestinationFieldName
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface de.cxp.ocs.conf.converter.ConfigureableField
getFieldName
-
Field Details
-
FIELD_REPLACEMENT_SUFFIX
- See Also:
-
-
Constructor Details
-
PatternWithReplacementConfiguration
public PatternWithReplacementConfiguration(String fieldName, String destinationFieldName, Pattern pattern, String replacement) Creats a new instance.- Parameters:
fieldName
- the field name.destinationFieldName
- the destination name.pattern
- thePattern
to use.replacement
- the replacement value used when the pattern matches.
-
-
Method Details
-
getReplacement
Gets the replacement or an empty string if no replacement is configured.- Returns:
- the replacement or an empty string.
-