Class DocumentNamespaceResolver
- java.lang.Object
-
- org.opennms.protocols.xml.collector.DocumentNamespaceResolver
-
- All Implemented Interfaces:
javax.xml.namespace.NamespaceContext
public class DocumentNamespaceResolver extends java.lang.Object implements javax.xml.namespace.NamespaceContext
Simple namespace resolver that deflects namespaceURI resolution to the document.- Author:
- David Schlenk
-
-
Constructor Summary
Constructors Constructor Description DocumentNamespaceResolver(org.w3c.dom.Document document)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.String
getNamespaceURI(java.lang.String prefix)
java.lang.String
getPrefix(java.lang.String namespaceURI)
java.util.Iterator
getPrefixes(java.lang.String namespaceURI)
-
-
-
Method Detail
-
getNamespaceURI
public java.lang.String getNamespaceURI(java.lang.String prefix)
- Specified by:
getNamespaceURI
in interfacejavax.xml.namespace.NamespaceContext
-
getPrefix
public java.lang.String getPrefix(java.lang.String namespaceURI)
- Specified by:
getPrefix
in interfacejavax.xml.namespace.NamespaceContext
-
getPrefixes
public java.util.Iterator getPrefixes(java.lang.String namespaceURI)
- Specified by:
getPrefixes
in interfacejavax.xml.namespace.NamespaceContext
-
-