class PlaceholderReplacementFilter : PatternSet, Transformer<String, String>
PlaceholderReplacement filter reader edits each line of a line. It replaces placeholders with a specified value. The placeholder and replacements are stored in a map. The begin and end tokens for the placeholders can be configured. The default values are "<@" and "@>".
PlaceholderReplacementFilter()
PlaceholderReplacement filter reader edits each line of a line. It replaces placeholders with a specified value. The placeholder and replacements are stored in a map. The begin and end tokens for the placeholders can be configured. The default values are "<@" and "@>". |
val beginToken: String
Begin token for placeholders. The default value is "<@". |
|
val endToken: String
End token for placeholders. The default value is "@>". |
|
val placeholders: MutableMap<String, Any>
Map with all placeholder and replacements. |
fun add(placeholder: String, replacement: Any): Unit
Adds a key value pair to the placeholders map. |
|
fun transform(inputString: String): String
Transforms the given object, and returns the transformed value. |