javax.xml.namespace.NamespaceContext implementation.
Follows the standard NamespaceContext contract, and is loadable
via a java.util.Map or java.util.Properties object
| Modifier and Type | Field and Description |
|---|---|
| private String | |
| private final Map | |
| private final Map |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public void | bindDefaultNamespaceUri(String
the namespace uri namespaceUri)Bind the given namespace as default namespace. |
| public void | bindNamespaceUri(String
the namespace prefix prefix, String the namespace URI namespaceUri)Bind the given prefix to the given namespace. |
| public void | |
| public Iterator | |
| public String | getNamespaceURI(String
prefix to look up prefix)Implements javax. Get Namespace URI bound to a prefix in the current scope. |
| public String | getPrefix(String
URI of Namespace to lookup namespaceUri)Implements javax. Get prefix bound to Namespace URI in the current scope. |
| public Iterator | getPrefixes(String
URI of Namespace to lookup namespaceUri)Implements javax. Get all prefixes bound to a Namespace URI in the current scope. |
| private Set | |
| public void | |
| public void |
| defaultNamespaceUri | back to summary |
|---|---|
| private String defaultNamespaceUri | |
| namespaceUriToPrefixes | back to summary |
|---|---|
| private final Map<String, Set<String>> namespaceUriToPrefixes | |
| prefixToNamespaceUri | back to summary |
|---|---|
| private final Map<String, String> prefixToNamespaceUri | |
| SimpleNamespaceContext | back to summary |
|---|---|
| public SimpleNamespaceContext() | |
| bindDefaultNamespaceUri | back to summary |
|---|---|
| public void bindDefaultNamespaceUri(String namespaceUri) Bind the given namespace as default namespace.
| |
| bindNamespaceUri | back to summary |
|---|---|
| public void bindNamespaceUri(String prefix, String namespaceUri) Bind the given prefix to the given namespace. | |
| clear | back to summary |
|---|---|
| public void clear() Remove all declared prefixes. | |
| getBoundPrefixes | back to summary |
|---|---|
| public Iterator Return all declared prefixes. | |
| getNamespaceURI | back to summary | ||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| public String getNamespaceURI(String prefix) Implements javax. Doc from javax. Get Namespace URI bound to a prefix in the current scope. When requesting a Namespace URI by prefix, the following table describes the returned Namespace URI value for all possible prefix values:
| |||||||||||||||
| getPrefix | back to summary | ||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| public String getPrefix(String namespaceUri) Implements javax. Doc from javax. Get prefix bound to Namespace URI in the current scope. To get all prefixes bound to a Namespace URI in the current
scope, use When requesting a prefix by Namespace URI, the following table describes the returned prefix value for all Namespace URI values:
| |||||||||||||||
| getPrefixes | back to summary | ||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| public Iterator Implements javax. Doc from javax. Get all prefixes bound to a Namespace URI in the current scope. An Iterator over String elements is returned in an arbitrary, implementation dependent, order. The When requesting prefixes by Namespace URI, the following table describes the returned prefixes value for all Namespace URI values:
| |||||||||||||
| getPrefixesSet | back to summary |
|---|---|
| private Set | |
| removeBinding | back to summary |
|---|---|
| public void removeBinding(String prefix) Remove the given prefix from this context.
| |
| setBindings | back to summary |
|---|---|
| public void setBindings(Map<String, String> bindings) Set the bindings for this namespace context. The supplied map must consist of string key value pairs. | |