| java.lang.Object gnu.xml.NamespaceBinding
NamespaceBinding | final public class NamespaceBinding implements Externalizable(Code) | | A "namespace node" as a link in a linked list.
The list may contain duplicates - i.e. multiple namespace bindings
for the same prefix but (usually) different uris. In that case the
first binding "wins". One reason for allowing duplicates it to allow
sharing of the lists between a child and its parent element.
|
getPrefix | final public String getPrefix()(Code) | | Namespace prefix. An interned String.
A default namespace declaration is represented using null.
|
getUri | final public String getUri()(Code) | | Namespace uri. An interned String.
The value null "undeclares" any following namespaces; it corresponds
to an empty uri as in the XML Namespaces 1.1 Candidate Recommendation.
|
resolve | public String resolve(String prefix)(Code) | | Resolve a prefix.
Parameters: prefix - an interned namespace prefix to search for. a uri or null if not bound |
resolve | public String resolve(String prefix, NamespaceBinding fencePost)(Code) | | Resolve a prefix, in the initial part of this list.
Parameters: prefix - an interned namespace prefix to search for. Parameters: fencePost - only search this list until then. a uri or null if not bound |
toString | public String toString()(Code) | | Return a String showing just a single namespace binding.
|
toStringAll | public String toStringAll()(Code) | | Return a String showing the full namespace binding list.
|
|
|