Class PatternWithReplacementConfiguration

java.lang.Object
de.cxp.ocs.conf.converter.PatternConfiguration
de.cxp.ocs.conf.converter.PatternWithReplacementConfiguration
All Implemented Interfaces:
ConfigureableField

public class PatternWithReplacementConfiguration extends PatternConfiguration
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 Details

  • 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 - the Pattern to use.
      replacement - the replacement value used when the pattern matches.
  • Method Details

    • getReplacement

      public String getReplacement()
      Gets the replacement or an empty string if no replacement is configured.
      Returns:
      the replacement or an empty string.