public final class NodeNamespaceContext extends Object implements NamespacePrefixList, Serializable
NamespaceContext
, which is based on a DOM node.Modifier and Type | Method and Description |
---|---|
String[] |
getDeclaredPrefixes()
Returns the list of currently defined namespace prefixes.
|
static NodeNamespaceContext |
getNamespaceContext(Node pNode) |
static String |
getNamespacePrefix(Element el,
String ns) |
static String |
getNamespaceURI(Element el,
String pfx) |
String |
getNamespaceURI(String pPrefix) |
String |
getPrefix(String pNamespaceURI) |
Iterator<String> |
getPrefixes(String pNamespaceURI) |
public static NodeNamespaceContext getNamespaceContext(Node pNode)
public String[] getDeclaredPrefixes()
NamespacePrefixList
getDeclaredPrefixes
in interface NamespacePrefixList
public String getNamespaceURI(String pPrefix)
getNamespaceURI
in interface NamespaceContext
public String getPrefix(String pNamespaceURI)
getPrefix
in interface NamespaceContext
public Iterator<String> getPrefixes(String pNamespaceURI)
getPrefixes
in interface NamespaceContext
Copyright © 2004–2017 The Apache Software Foundation. All rights reserved.