public class SimpleNamespaceResolver extends Object implements NamespaceContext
Constructor and Description |
---|
SimpleNamespaceResolver(String prefix,
String nsURI)
Create a new instance of the namespace resolver initialized with the
fixed
prefix and URI that the resolver will be capable to resolve. |
Modifier and Type | Method and Description |
---|---|
String |
getNamespaceURI(String prefix) |
String |
getPrefix(String namespaceURI) |
Iterator |
getPrefixes(String namespaceURI) |
public String getNamespaceURI(String prefix)
getNamespaceURI
in interface NamespaceContext
public String getPrefix(String namespaceURI)
getPrefix
in interface NamespaceContext
public Iterator getPrefixes(String namespaceURI)
getPrefixes
in interface NamespaceContext
Copyright © 2007-2024, Oracle and/or its affiliates. All Rights Reserved. Use is subject to license terms.