Class DefaultFD2ReplacerProvider
- java.lang.Object
-
- de.xima.fc.web.common.fd2.provider.DefaultFD2ReplacerProvider
-
- All Implemented Interfaces:
IFD2ReplacerProvider
,Serializable
public class DefaultFD2ReplacerProvider extends Object implements IFD2ReplacerProvider
- Author:
- XIMA MEDIA GmbH
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description DefaultFD2ReplacerProvider(IFormRenderContext renderCtx)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
parse(String text, IXFormRenderConfig config, boolean escapeHtml)
Replaces placeholders in the given text, using the data from the given render config.String
parseClientFormula(String text, IXFormRenderConfig config)
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface de.xima.fc.form.common.interfaces.IFD2ReplacerProvider
parse
-
-
-
-
Constructor Detail
-
DefaultFD2ReplacerProvider
public DefaultFD2ReplacerProvider(IFormRenderContext renderCtx)
-
-
Method Detail
-
parse
public String parse(String text, IXFormRenderConfig config, boolean escapeHtml)
Description copied from interface:IFD2ReplacerProvider
Replaces placeholders in the given text, using the data from the given render config.- Specified by:
parse
in interfaceIFD2ReplacerProvider
- Parameters:
text
- Text that may contain placeholders to replace.config
- Render config to use for the replacement process.escapeHtml
-true
to escape HTML in form placeholders,false
otherwise.- Returns:
- The text with all placeholders replaced.
-
parseClientFormula
public String parseClientFormula(String text, IXFormRenderConfig config)
- Specified by:
parseClientFormula
in interfaceIFD2ReplacerProvider
-
-