Package net.ontopia.utils
Class StringTemplateUtils
java.lang.Object
net.ontopia.utils.StringTemplateUtils
INTERNAL: Utilities for processing string templates containing
%param% references.
- Since:
- 1.3
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic StringINTERNAL: Replaces all %name% references with the value of the parameter param.static StringINTERNAL: Replaces all references surrounded by a separator character with the value of the parameter param.static StringINTERNAL: Replaces all %name% references with the value of the "name" key in the paramvalues Map.static StringINTERNAL: Replaces all references surounded by a separator character with the value of the "name" key in the paramvalues Map.
-
Constructor Details
-
StringTemplateUtils
public StringTemplateUtils()
-
-
Method Details
-
replace
INTERNAL: Replaces all %name% references with the value of the "name" key in the paramvalues Map. Single '%' characters in the output must be represented as "%%" in the template. -
replace
INTERNAL: Replaces all references surounded by a separator character with the value of the "name" key in the paramvalues Map. Single separator characters in the output must be represented by placing the separator character two times right behind each other in the template.- Parameters:
sep_char- the separator charactor which delimits the references- Since:
- 1.3.1
-
replace
INTERNAL: Replaces all %name% references with the value of the parameter param. Single '%' characters in the output must be represented as "%%" in the template.- Since:
- 1.3.1
-
replace
INTERNAL: Replaces all references surrounded by a separator character with the value of the parameter param. Single separator characters in the output must be represented by placing the separator character two times right behind each other in the template.- Since:
- 1.3.1
-