org.jaxen.function
Class LangFunction
java.lang.Object
org.jaxen.function.LangFunction
- All Implemented Interfaces:
- Function
- public class LangFunction
- extends java.lang.Object
- implements Function
4.3 boolean lang(string)
- Author:
- Attila Szegedi (szegedia @ freemail.hu)
Method Summary |
java.lang.Object |
call(Context context,
java.util.List args)
Call this function. |
static java.lang.Boolean |
evaluate(java.util.List contextNodes,
java.lang.String lang,
Navigator nav)
|
private static boolean |
evaluate(java.lang.Object node,
java.lang.String lang,
Navigator nav)
|
private static boolean |
isSublang(java.lang.String sublang,
java.lang.String lang)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
LANG_LOCALNAME
private static final java.lang.String LANG_LOCALNAME
- See Also:
- Constant Field Values
XMLNS_URI
private static final java.lang.String XMLNS_URI
- See Also:
- Constant Field Values
LangFunction
public LangFunction()
call
public java.lang.Object call(Context context,
java.util.List args)
throws FunctionCallException
- Description copied from interface:
Function
- Call this function.
- Specified by:
call
in interface 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.
- Throws:
FunctionCallException
evaluate
public static java.lang.Boolean evaluate(java.util.List contextNodes,
java.lang.String lang,
Navigator nav)
throws UnsupportedAxisException
- Throws:
UnsupportedAxisException
evaluate
private static boolean evaluate(java.lang.Object node,
java.lang.String lang,
Navigator nav)
throws UnsupportedAxisException
- Throws:
UnsupportedAxisException
isSublang
private static boolean isSublang(java.lang.String sublang,
java.lang.String lang)