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