org.apache.ws.commons.schema.utils
Class NodeNamespaceContext
java.lang.Object
org.apache.ws.commons.schema.utils.NodeNamespaceContext
- All Implemented Interfaces:
- Serializable, NamespaceContext, NamespacePrefixList
public final class NodeNamespaceContext
- extends Object
- implements NamespacePrefixList, Serializable
Implementation of NamespaceContext
, which is based on a DOM node.
- See Also:
- Serialized Form
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
getNamespacePrefix
public static String getNamespacePrefix(Element el,
String ns)
getNamespaceURI
public static String getNamespaceURI(Element el,
String pfx)
getNamespaceContext
public static NodeNamespaceContext getNamespaceContext(Node pNode)
getDeclaredPrefixes
public String[] getDeclaredPrefixes()
- Description copied from interface:
NamespacePrefixList
- Returns the list of currently defined namespace prefixes.
- Specified by:
getDeclaredPrefixes
in interface NamespacePrefixList
getNamespaceURI
public String getNamespaceURI(String pPrefix)
- Specified by:
getNamespaceURI
in interface NamespaceContext
getPrefix
public String getPrefix(String pNamespaceURI)
- Specified by:
getPrefix
in interface NamespaceContext
getPrefixes
public Iterator<String> getPrefixes(String pNamespaceURI)
- Specified by:
getPrefixes
in interface NamespaceContext
Copyright © 2004-2015 The Apache Software Foundation. All Rights Reserved.