org.jaxen.function.ext
Class UpperFunction
- Function
public class UpperFunction
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 )
Object | call(Context context, List args) - Evaluate this function.
|
static String | evaluate(Object strArg, Locale locale, Navigator nav) - Converts the given string value to upper case using an optional Locale
|
call
public Object call(Context context,
List args)
throws FunctionCallException
Evaluate this function.
- call in interface Function
context
- the context at the point in the
expression when the function is calledargs
- arguments provided to the function
- the result of evaluating the function; a
List
(node-set), Double
, Boolean
, or
String
FunctionCallException
- if an XPath error occurs during evaluation;
for instance, if the number or type of the arguments is incorrect
evaluate
public static String evaluate(Object strArg,
Locale locale,
Navigator nav)
Converts the given string value to upper case using an optional Locale
strArg
- the value which gets converted to a Stringlocale
- the Locale to use for the conversion or null if
English should be usednav
- the Navigator to use