javax.xml.namespace

Interface NamespaceContext

public interface NamespaceContext

Interface by which namespace properties are made available.

Since: 1.3

Method Summary
StringgetNamespaceURI(String prefix)
Returns the namespace URI currently bound to the given prefix.
StringgetPrefix(String namespaceURI)
Returns the prefix currently bound to the given namespace URI.
IteratorgetPrefixes(String namespaceURI)
Returns all the prefixes currently bound to the given namespace URI.

Method Detail

getNamespaceURI

public String getNamespaceURI(String prefix)
Returns the namespace URI currently bound to the given prefix.

getPrefix

public String getPrefix(String namespaceURI)
Returns the prefix currently bound to the given namespace URI.

getPrefixes

public Iterator getPrefixes(String namespaceURI)
Returns all the prefixes currently bound to the given namespace URI.