NamespaceContext implementation that contains no
namespace information, except bindings that are specified by
the namespace specification itself (for prefixes "xml" and "xmlns")
| Modifier and Type | Field and Description |
|---|---|
| pack-priv static final EmptyNamespaceContext |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| public static EmptyNamespaceContext | |
| public final String | getNamespaceURI(String
prefix to look up prefix)Implements javax. |
| public String | getPrefix(String
URI of Namespace to lookup nsURI)Implements javax. |
| public Iterator | getPrefixes(String
URI of Namespace to lookup nsURI)Implements javax. |
| sInstance | back to summary |
|---|---|
| pack-priv static final EmptyNamespaceContext sInstance | |
| EmptyNamespaceContext | back to summary |
|---|---|
| private EmptyNamespaceContext() | |
| getInstance | back to summary |
|---|---|
| public static EmptyNamespaceContext getInstance() | |
| getNamespaceURI | back to summary | ||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| public final 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 nsURI) 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:
| |||||||||||||