Package de.cxp.ocs.conf.converter
Class PatternConfiguration
- java.lang.Object
-
- de.cxp.ocs.conf.converter.PatternConfiguration
-
- All Implemented Interfaces:
ConfigureableField
- Direct Known Subclasses:
PatternWithReplacementConfiguration
public class PatternConfiguration extends Object implements ConfigureableField
ConfigureableFieldimplementations that holds all information needed by theRemoveValuesDataProcessor. The configuration allows:configuration: RemoveValuesDataProcessor: someFieldName: ".*\\d+.*" someFieldName_destination: "someDestinationField" # Optional configuration: # RegEx used to split the value into chunks, \\s+ if omitted someFieldName_wordSplitRegEx: "/" # join character used when combining splitted cleared chunks, default space" "someFieldName_wordJoinSeparator: "/"
-
-
Field Summary
Fields Modifier and Type Field Description static StringFIELD_REPLACEMENT_DESTINATIONstatic StringFIELD_WORD_JOIN_SEPARATORstatic StringFIELD_WORD_SPLIT_REGEX
-
Constructor Summary
Constructors Constructor Description PatternConfiguration()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetDestinationFieldName()Gets the destination field name if configured, otherwise the field name itself is returned.-
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 Detail
-
FIELD_REPLACEMENT_DESTINATION
public static final String FIELD_REPLACEMENT_DESTINATION
- See Also:
- Constant Field Values
-
FIELD_WORD_SPLIT_REGEX
public static final String FIELD_WORD_SPLIT_REGEX
- See Also:
- Constant Field Values
-
FIELD_WORD_JOIN_SEPARATOR
public static final String FIELD_WORD_JOIN_SEPARATOR
- See Also:
- Constant Field Values
-
-
Method Detail
-
getDestinationFieldName
public String getDestinationFieldName()
Gets the destination field name if configured, otherwise the field name itself is returned.- Returns:
- the destination field name.
-
-