com.novell.xml.xpath.functions
Class xpathLang
java.lang.Object
com.novell.xml.xpath.Function
com.novell.xml.xpath.functions.xpathLang
- public class xpathLang
- extends Function
This class implements the XPath lang(string) built-in function
Constructor Summary |
xpathLang()
Construct an object for the lang() function |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
xpathLang
public xpathLang()
- Construct an object for the lang() function
invoke
public ExpressionValue invoke(Object[] args)
throws XPathEvaluationException
- Perform lang() function
- Overrides:
invoke
in class Function
- Parameters:
args
- List of arguments.
Three arguments:
args[0] = context node
args[1] = expression context
args[2] = string
- Returns:
- true or false, depending on whther the language of the
context node as specified by xml:lang is the same as or is a
sublanguage of the language specified by the argument string
- Throws:
XPathEvaluationException