Package de.xima.fc.placeholder.replacer
Class DefaultSystemValueReplacer
java.lang.Object
de.xima.fc.placeholder.replacer.DefaultSystemValueReplacer
- All Implemented Interfaces:
ISystemValueReplacer
Default
system value replacer
implementation provided by formcycle that is always
available. Replaces all built-in system placeholders.- Author:
- XIMA MEDIA GmbH
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected String
parseForParametrizedPlaceholder
(String placeholderContent, Vorgang formRecord, Locale locale) Deprecated.replace
(String placeholder, String placeholderContent, ISystemReplacerParams parameters) protected String
replaceUserData
(String pathContent, com.alibaba.fastjson.JSONObject userObject) 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.interfaces.placeholder.ISystemValueReplacer
replace, replace, replace
-
Constructor Details
-
DefaultSystemValueReplacer
public DefaultSystemValueReplacer()
-
-
Method Details
-
replace
public String replace(String placeholder, String placeholderContent, ISystemReplacerParams parameters) - Specified by:
replace
in interfaceISystemValueReplacer
-
parseForParametrizedPlaceholder
@Deprecated protected String parseForParametrizedPlaceholder(String placeholderContent, Vorgang formRecord, Locale locale) Deprecated.UsePlaceholderHelper.parseForParametrizedSystemPlaceholder(String, Vorgang, Locale, Clock)
instead. Parses for and replaces if necessary placeholders that are parameterized ()- Parameters:
placeholderContent
-String
placeholder that may be parameterizedformRecord
-Vorgang
to replace forlocale
-Locale
that may be needed for Placeholder replacement- Returns:
- replaced
String
if the placeholder content is indeed a parameterized placeholder. Returns the original placeholder otherwise.
-
replaceUserData
-
PlaceholderHelper.parseForParametrizedSystemPlaceholder(String, Vorgang, Locale, Clock)
instead.