@Deprecated public class RegexFieldAgitator extends Object implements YamlAgitator
The agitator applies the specified regex pattern to identify and replace matching segments within the YAML content. This class is useful for scenarios where you need to modify or sanitize certain patterns within YAML strings, especially in testing and validation contexts.
| Constructor and Description |
|---|
RegexFieldAgitator(String name,
String regex,
String replaceAll)
Deprecated.
Constructs a new RegexFieldAgitator with the given name, regular expression,
and the replacement string.
|
| Modifier and Type | Method and Description |
|---|---|
Map<String,String> |
generateInputs(String yaml)
Deprecated.
Generates a map of altered YAML inputs based on the provided YAML string.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitduplicateMessage, duplicateMessage, messageMissing, messageMissing, missingFields, overrideFields, replaceAllpublic RegexFieldAgitator(String name, String regex, String replaceAll)
name - The name of the agitator.regex - The regex pattern to be applied.replaceAll - The replacement string for matches found.public Map<String,String> generateInputs(String yaml)
YamlAgitatorgenerateInputs in interface YamlAgitatoryaml - The original YAML content to be agitated.Copyright © 2024. All rights reserved.