public static interface DocumentFactoryBuilder.LowLevelReplacer
Register a new Low Level replacer plugin.
Plugin is called when low level replace method is invoked.
Modifier and Type | Method and Description |
---|---|
java.lang.Object |
replace(java.lang.Object value,
java.lang.String tag,
java.lang.String[] metadata)
A custom plugin can be registered behind the Templater
replace API
It will be invoked for every replace invocation. |
java.lang.Object replace(java.lang.Object value, java.lang.String tag, java.lang.String[] metadata)
A custom plugin can be registered behind the Templater replace
API
It will be invoked for every replace invocation.
Can be used to fixup invalid data which can't be converted into valid XML,
to convert between data types (eg JavaTime -> Date
), ...
value
- input value to handletag
- tag being processedmetadata
- metadata of the processed tag