public class SimpleNamespaceResolver extends Object implements NamespaceContext
Constructor and Description |
---|
SimpleNamespaceResolver(String prefix,
String nsURI) |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object obj)
Two instances are considered equal if they have the same mappings,
including default namespace.
|
String |
getNamespaceURI(String prefix)
Returns the namespace URI bound to the passed prefix,
null
if the prefix does not correspond to the binding defined by this
instance. |
String |
getPrefix(String nsURI)
Returns the prefix bound to the passed namespace URI,
null
if the URI does not correspond to the binding defined by this instance. |
Iterator<String> |
getPrefixes(String nsURI)
Returns an iterator over prefixes for the passed URI, an empty iterator
if the URI does not correspond to the binding defined by this instance.
|
int |
hashCode() |
String |
toString()
Returns a string containing the the
xmlns attribute
specifications that would result from this resolver. |
public String getNamespaceURI(String prefix)
null
if the prefix does not correspond to the binding defined by this
instance. Also supports "standard" bindings; see JDK doc for details.getNamespaceURI
in interface NamespaceContext
public String getPrefix(String nsURI)
null
if the URI does not correspond to the binding defined by this instance.
Also supports "standard" bindings; see JDK doc for details.getPrefix
in interface NamespaceContext
public Iterator<String> getPrefixes(String nsURI)
getPrefixes
in interface NamespaceContext
public final boolean equals(Object obj)