A class for handling Namespace declaration and scoping
author: Keith Visco version: $Revision: 5951 $ $Date: 2004-09-09 23:04:08 -0600 (Thu, 09 Sep 2004) $
getNamespacePrefix(String nsURI) Returns the Namespace prefix associated with the given URI.
If multiple namespace prefixes have been declared, then
the first one found is returned.
getNamespacePrefixes(String nsURI, boolean local) Returns the Namespace prefixes associated with the given URI.
Parameters: nsURI - the namespace URI to lookup Parameters: local - a boolean that when true indicates only the localscope is searched.
Adds the given namespace declaration to this Namespaces
Parameters: prefix - the namespace prefix Parameters: uri - the namespace URI to be associated with the given prefix
Returns the Namespace prefix associated with the given URI.
If multiple namespace prefixes have been declared, then
the first one found is returned. To obtain all prefixes see
#getNamespacePrefixes.
Parameters: nsURI - the namespace URI to lookup the namespace prefix associated with the given URI
Returns all namespace prefixes associated with the given URI,
including those from parent scopes.
Parameters: nsURI - the namespace URI to lookup the namespace prefixes associated with the given URI
Returns the Namespace prefixes associated with the given URI.
Parameters: nsURI - the namespace URI to lookup Parameters: local - a boolean that when true indicates only the localscope is searched. the namespace prefixes associated with the given URI
Returns the Namespace URI associated with the given prefix
Parameters: prefix - the namespace prefix to lookup the namespace URI associated with the given prefix
Returns the Namespace prefix associated with the given URI.
Or null if no prefix has been declared. This method will
ignore the default namespace. This is useful when dealing
with attributes that do not use the default namespace.
Parameters: nsURI - the namespace URI to lookup the namespace prefix associated with the given URI
Returns the parent Namespaces for this Namespaces instance.
the parent Namespaces for this Namespaces instance.
removeNamespace
public synchronized boolean removeNamespace(String prefix)(Code)
Removes the namespace declaration for the given prefix.
This is a local action only, the namespace declaration
will not be removed from any parent Namespaces object.
Parameters: prefix - the namespace prefix to remove the binding of true if the namespace declaration was removed, otherwise false.