Package org.jaxen.function
Class LocalNameFunction
java.lang.Object
org.jaxen.function.LocalNameFunction
- All Implemented Interfaces:
Function
4.1 string local-name(node-set?)
The local-name function returns the local part of the expanded-name of the node in the argument node-set that is first in document order. If the argument node-set is empty or the first node has no expanded-name, an empty string is returned. If the argument is omitted, it defaults to a node-set with the context node as its only member.
- See Also:
-
Constructor Summary
Constructors -
Method Summary
-
Constructor Details
-
LocalNameFunction
public LocalNameFunction()Create a newLocalNameFunction
object.
-
-
Method Details
-
call
Returns the local-name of the specified node or the context node if no arguments are provided.- Specified by:
call
in interfaceFunction
- Parameters:
context
- the context at the point in the expression where the function is calledargs
- aList
containing zero or one items- Returns:
- a
String
containing the local-name - Throws:
FunctionCallException
- ifargs
has more than one item
-