org.jaxen.function.ext
Class UpperFunction
java.lang.Object
|
+--org.jaxen.function.ext.LocaleFunctionSupport
|
+--org.jaxen.function.ext.UpperFunction
- All Implemented Interfaces:
- Function
- 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 )
- Author:
- mark wilson (markw@wilsoncom.de), James Strachan
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
UpperFunction
public UpperFunction()
call
public Object call(Context context,
List args)
throws FunctionCallException
- Description copied from interface:
Function
- Call this function.
- Following copied from interface:
org.jaxen.Function
- Parameters:
context
- The context at the point in the
expression when the function is called.args
- List of arguments provided during
the call of the function.
evaluate
public static String evaluate(Object strArg,
Locale locale,
Navigator nav)
- Converts the given string value to upper case using an optional Locale
- Parameters:
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 use
Copyright © 2002 bob mcwhirter & James Strachan. All Rights Reserved. Hosted by