public class UpperFunction extends LocaleFunctionSupport
string upper-case(string)
This function can take a second parameter of the
Locale to use for the String conversion.
For example
upper-case( /foo/bar )
upper-case( /foo/@name, $myLocale )
| Constructor and Description |
|---|
UpperFunction() |
| Modifier and Type | Method and Description |
|---|---|
Object |
call(Context context,
List args)
Call this function.
|
static String |
evaluate(Object strArg,
Locale locale,
Navigator nav)
Converts the given string value to upper case using an optional Locale
|
findLocale, findLocaleForLanguage, getLocalepublic Object call(Context context, List args) throws FunctionCallException
Functioncontext - The context at the point in the
expression when the function is called.args - List of arguments provided during
the call of the function.FunctionCallExceptionpublic static String evaluate(Object strArg, Locale locale, Navigator nav)
strArg - the value which gets converted to a Stringlocale - the Locale to use for the conversion or null if the
default should be usednav - the Navigator to useCopyright © 2013. All Rights Reserved.