public class BasicNamespaceContext extends Object implements NamespaceContext
NamespaceContext
 interface.| Modifier and Type | Field and Description | 
|---|---|
| static String | XLINK_NS_PREFIX | 
| static String | XLINK_NS_URI | 
| Constructor and Description | 
|---|
| BasicNamespaceContext()Sole constructor for BasicNamespaceContext. | 
| Modifier and Type | Method and Description | 
|---|---|
| void | addNamespace(String prefix,
            String namespaceURI)Adds a namepsace binding to this XML namespace context. | 
| String | getNamespaceURI(String prefix) | 
| String | getPrefix(String namespaceURI) | 
| Iterator | getPrefixes(String namespaceURI) | 
public static final String XLINK_NS_PREFIX
public static final String XLINK_NS_URI
public BasicNamespaceContext()
| Prefix | URI | 
|---|---|
| xml | http://www.w3.org/XML/1998/namespace | 
| xmlns | http://www.w3.org/2000/xmlns/ | 
| xlink | http://www.w3.org/1999/xlink | 
public void addNamespace(String prefix, String namespaceURI)
prefix - the namespace prefix.namespaceURI - the namespace URI.IllegalArgumentException - if either the prefix or the namepsace URI are null.public String getNamespaceURI(String prefix)
getNamespaceURI in interface NamespaceContextpublic String getPrefix(String namespaceURI)
getPrefix in interface NamespaceContextpublic Iterator getPrefixes(String namespaceURI)
getPrefixes in interface NamespaceContext