NamespaceContext that describes namespaces found
in a JDOM node.
| Modifier and Type | Field and Description |
|---|---|
| private final Namespace[] |
| Access | Constructor and Description |
|---|---|
| public | JDOMNamespaceContext(final Namespace[]
the Namespace instances to represent. namespaces)Create a read-only representation of the input namespace list. |
| Modifier and Type | Method and Description |
|---|---|
| public String | getNamespaceURI(final String
prefix to look up prefix)Implements javax. |
| public String | getPrefix(final String
URI of Namespace to lookup namespaceURI)Implements javax. |
| public Iterator | getPrefixes(final String
URI of Namespace to lookup namespaceURI)Implements javax. |
| namespacearray | back to summary |
|---|---|
| private final Namespace[] namespacearray | |
| JDOMNamespaceContext | back to summary |
|---|---|
| public JDOMNamespaceContext(final Namespace[] namespaces) Create a read-only representation of the input namespace list.
| |
| getNamespaceURI | back to summary | ||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| public String getNamespaceURI(final 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(final 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:
| |||||||||||||