Class StringTemplateExtensions
java.lang.Object
io.quarkus.qute.runtime.extensions.StringTemplateExtensions
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription(package private) static String
E.g.(package private) static String
E.g.(package private) static String
fmtInstance
(String format, String ignoredPropertyName, Object... args) E.g.(package private) static String
fmtInstance
(String format, String ignoredPropertyName, Locale locale, Object... args) E.g.(package private) static String
-
Field Details
-
STR
- See Also:
-
-
Constructor Details
-
StringTemplateExtensions
public StringTemplateExtensions()
-
-
Method Details
-
fmtInstance
E.g.strVal.fmt(name,surname)
. The priority must be lower thanfmtInstance(String, String, Locale, Object...)
.- Parameters:
format
-ignoredPropertyName
-args
-- Returns:
- the formatted value
-
fmtInstance
E.g.strVal.format(locale,name)
. The priority must be higher thanfmtInstance(String, String, Object...)
.- Parameters:
format
-ignoredPropertyName
-locale
-args
-- Returns:
- the formatted value
-
fmt
E.g. . The priority must be lower thanfmt(String, Locale, String, Object...)
.- Parameters:
ignoredPropertyName
-format
-args
-- Returns:
- the formatted value
-
fmt
E.g.str:fmt(locale,"Hello %s",name)
. The priority must be higher thanfmt(String, String, Object...)
.- Parameters:
ignoredPropertyName
-locale
-format
-args
-- Returns:
- the formatted value
-
plus
-