Class NodeNamespaceContext
java.lang.Object
org.apache.ws.commons.schema.utils.NodeNamespaceContext
- All Implemented Interfaces:
Serializable,NamespaceContext,NamespacePrefixList
Implementation of
NamespaceContext, which is based on a DOM node.- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate static final booleanprivate String[]private static final longprivate static final Collection<String> private static final Collection<String> -
Constructor Summary
ConstructorsModifierConstructorDescriptionprivateNodeNamespaceContext(Map<String, String> decls) Creates a new instance with the given nodes context. -
Method Summary
Modifier and TypeMethodDescriptionString[]Returns the list of currently defined namespace prefixes.static NodeNamespaceContextgetNamespaceContext(Node pNode) static StringgetNamespacePrefix(Element el, String ns) private static StringgetNamespacePrefixDomLevel3(Element el, String ns) getNamespaceURI(String pPrefix) static StringgetNamespaceURI(Element el, String pfx) private static StringgetNamespaceURIDomLevel3(Element el, String pfx) getPrefixes(String pNamespaceURI)
-
Field Details
-
serialVersionUID
private static final long serialVersionUID- See Also:
-
DOM_LEVEL_3
private static final boolean DOM_LEVEL_3 -
XML_NS_PREFIX_COLLECTION
-
XMLNS_ATTRIBUTE_COLLECTION
-
declarations
-
prefixes
-
-
Constructor Details
-
NodeNamespaceContext
Creates a new instance with the given nodes context.
-
-
Method Details
-
getNamespacePrefix
-
getNamespacePrefixDomLevel3
-
getNamespaceURI
-
getNamespaceURIDomLevel3
-
getNamespaceContext
-
getDeclaredPrefixes
Description copied from interface:NamespacePrefixListReturns the list of currently defined namespace prefixes.- Specified by:
getDeclaredPrefixesin interfaceNamespacePrefixList
-
getNamespaceURI
- Specified by:
getNamespaceURIin interfaceNamespaceContext
-
getPrefix
- Specified by:
getPrefixin interfaceNamespaceContext
-
getPrefixes
- Specified by:
getPrefixesin interfaceNamespaceContext
-