public class NamespaceResolver extends Object implements NamespaceContext
Modifier and Type | Field and Description |
---|---|
protected ArrayList<NamespaceContext> |
namespaceContexts |
Constructor and Description |
---|
NamespaceResolver()
DDF namespace resolver loads all registered NamespaceMap interfaces and builds two HashMaps:
one for namespace URIs to prefixes, and one for namespace prefixes to URIs.
|
Modifier and Type | Method and Description |
---|---|
String |
getNamespaceURI(String prefix)
Retrieve the namespace URI for the given namespace prefix.
|
String |
getPrefix(String namespace)
Retrieve the namespace prefix for the given namespace URI.
|
Iterator |
getPrefixes(String namespace) |
protected ArrayList<NamespaceContext> namespaceContexts
public NamespaceResolver()
public String getNamespaceURI(String prefix)
getNamespaceURI
in interface NamespaceContext
public String getPrefix(String namespace)
getPrefix
in interface NamespaceContext
public Iterator getPrefixes(String namespace)
getPrefixes
in interface NamespaceContext
This work is licensed under a Creative Commons Attribution 4.0 International License.