Module dev.metaschema.core
Class FnFormatInteger
java.lang.Object
dev.metaschema.core.metapath.function.library.FnFormatInteger
Implements the XPath 3.1 fn:format-integer
functions.
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptionstatic StringfnFormatInteger(IIntegerItem value, String picture, String lang) An implementation of XPath 3.1 fn:format-integer.
-
Method Details
-
fnFormatInteger
@NonNull public static String fnFormatInteger(@Nullable IIntegerItem value, @NonNull String picture, @Nullable String lang) An implementation of XPath 3.1 fn:format-integer.- Parameters:
value- the integer value to format, ornullfor empty sequencepicture- the picture string controlling the formatlang- the language for locale-dependent formatting, ornullto use the default- Returns:
- the formatted integer string
- Throws:
FormatFunctionException- if the picture string contains an invalid format token
-