Class ReplaceResourcePropertyValuesRegex
- java.lang.Object
-
- de.valtech.aecu.core.groovy.console.bindings.actions.resource.ReplaceResourcePropertyValues
-
- de.valtech.aecu.core.groovy.console.bindings.actions.resource.ReplaceResourcePropertyValuesRegex
-
- All Implemented Interfaces:
Action
public class ReplaceResourcePropertyValuesRegex extends ReplaceResourcePropertyValues
Replaces strings via regex in resource properties.- Author:
- Roland Gruber
-
-
Constructor Summary
Constructors Constructor Description ReplaceResourcePropertyValuesRegex(String searchRegex, String replacement, List<String> propertyNames)Constructor
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected StringgetNewValue(String propertyValue)Returns the new property value.protected booleanvalueMatches(String value)Checks if the value matches the searched value.-
Methods inherited from class de.valtech.aecu.core.groovy.console.bindings.actions.resource.ReplaceResourcePropertyValues
doAction
-
-
-
-
Method Detail
-
valueMatches
protected boolean valueMatches(String value)
Description copied from class:ReplaceResourcePropertyValuesChecks if the value matches the searched value.- Overrides:
valueMatchesin classReplaceResourcePropertyValues- Parameters:
value- content property value- Returns:
- matches condition
-
getNewValue
protected String getNewValue(String propertyValue)
Description copied from class:ReplaceResourcePropertyValuesReturns the new property value.- Overrides:
getNewValuein classReplaceResourcePropertyValues- Parameters:
propertyValue- old property value- Returns:
- new value
-
-