|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectorg.jaxen.function.NamespaceUriFunction
4.1
string namespace-uri(node-set?)
The namespace-uri function returns the namespace URI 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, the first node has no expanded-name, or the namespace URI of the expanded-name is null, an empty string is returned. If the argument is omitted, it defaults to a node-set with the context node as its only member.
NOTE: The string returned by the namespace-uri function will be empty except for element nodes and attribute nodes.
| Constructor Summary | |
NamespaceUriFunction()
Create a new NamespaceUriFunction object. |
|
| Method Summary | |
Object |
call(Context context,
List args)
Returns the namespace URI of the specified node or the namespace URI of the context node if no arguments are provided. |
static String |
evaluate(List list,
Navigator nav)
Returns the namespace URI of list.get(0) |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public NamespaceUriFunction()
NamespaceUriFunction object.
| Method Detail |
public Object call(Context context,
List args)
throws FunctionCallException
call in interface Functioncontext - the context at the point in the
expression where the function is calledargs - a List containing zero or one items
String containing the namespace URI
FunctionCallException - if args has more than one item
public static String evaluate(List list,
Navigator nav)
throws FunctionCallException
list.get(0)
list - a list of nodesnav - the Navigator used to retrieve the namespace
list.get(0)
FunctionCallException - if list.get(0) is not a node
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||