org.jaxen.function.ext
Class LowerFunction
java.lang.Object
org.jaxen.function.ext.LocaleFunctionSupport
org.jaxen.function.ext.LowerFunction
- All Implemented Interfaces:
- Function
- public class LowerFunction
- extends LocaleFunctionSupport
string lower-case(string)
This function can take a second parameter of the
Locale
to use for the String conversion.
For example
lower-case( /foo/bar )
lower-case( /foo/@name, $myLocale )
- Author:
- mark wilson (markw@wilsoncom.de), James Strachan
Method Summary |
java.lang.Object |
call(Context context,
java.util.List args)
Evaluate this function. |
static java.lang.String |
evaluate(java.lang.Object strArg,
java.util.Locale locale,
Navigator nav)
Converts the given string value to lower case using an optional Locale |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
LowerFunction
public LowerFunction()
call
public java.lang.Object call(Context context,
java.util.List args)
throws FunctionCallException
- Description copied from interface:
Function
- Evaluate this function.
- Parameters:
context
- the context at the point in the
expression when the function is calledargs
- arguments provided to the function
- Returns:
- the result of evaluating the function; a
List
(node-set), Double
, Boolean
, or
String
- Throws:
FunctionCallException
- if an XPath error occurs during evaluation;
for instance, if the number or type of the arguments is incorrect
evaluate
public static java.lang.String evaluate(java.lang.Object strArg,
java.util.Locale locale,
Navigator nav)
- Converts the given string value to lower case using an optional Locale
- Parameters:
strArg
- the value which gets converted to a Stringlocale
- the Locale to use for the conversion or null
English should be usednav
- the Navigator to use
Copyright © 2001-2005 Codehaus. All Rights Reserved.