org.exolab.adaptx.xslt.util
public final class Namespaces extends Object
Version: $Revision: 4031 $ $Date: 2003-12-22 14:45:49 -0500 (Mon, 22 Dec 2003) $
Field Summary | |
---|---|
static String | XML_NAMESPACE
The reserved XML 1.0 Namespace URI |
static String | XML_NAMESPACE_PREFIX
The reserved XML Namespace Prefix |
Constructor Summary | |
---|---|
Namespaces()
Creates a new Namespaces instance
| |
Namespaces(Namespaces parent)
Creates a new Namespaces instance
|
Method Summary | |
---|---|
void | addNamespace(String prefix, String uri)
Adds the given namespace declaration to this Namespaces
|
Namespaces | createNamespaces()
Creates a new Namespaces instance with this Namespaces as the parent
|
void | declareAsAttributes(AttributeListImpl atts, boolean localOnly)
Declare the namespaces of this stack in as attributes. |
Enumeration | getLocalNamespacePrefixes()
Returns all namespace prefixes declared locally
|
Enumeration | getLocalNamespaces()
Returns an Enumeration of local namespace URIs for this Namespaces.
|
String | getNamespacePrefix(String nsURI)
Returns the Namespace prefix associated with the given URI.
|
String[] | getNamespacePrefixes(String nsURI)
Returns all namespace prefixes associated with the given URI,
including those from parent scopes.
|
String[] | getNamespacePrefixes(String nsURI, boolean local)
Returns the Namespace prefixes associated with the given URI.
|
String | getNamespaceURI(String prefix)
Returns the Namespace URI associated with the given prefix
|
String | getNonDefaultNamespacePrefix(String nsURI)
Returns the Namespace prefix associated with the given URI.
|
Namespaces | getParent()
Returns the parent Namespaces for this Namespaces instance.
|
boolean | removeNamespace(String prefix)
Removes the namespace declaration for the given prefix.
|
void | setParent(Namespaces namespaces)
Sets the parent Namespaces for this Namespaces instance.
|
Parameters: prefix the namespace prefix uri the namespace URI to be associated with the given prefix
Parameters: atts the Attribute List to fill in.
Returns: an Enumeration of locally declared namespace prefixes
Returns: an Enumeration of local namespace URIs.
#getNamespacePrefixes
.
Parameters: nsURI the namespace URI to lookup
Returns: the namespace prefix associated with the given URI
Parameters: nsURI the namespace URI to lookup
Returns: the namespace prefixes associated with the given URI
Parameters: nsURI the namespace URI to lookup local a boolean that when true indicates only the local scope is searched.
Returns: the namespace prefixes associated with the given URI
Parameters: prefix the namespace prefix to lookup
Returns: the namespace URI associated with the given prefix
Parameters: nsURI the namespace URI to lookup
Returns: the namespace prefix associated with the given URI
Returns: the parent Namespaces for this Namespaces instance.
Parameters: prefix the namespace prefix to remove the binding of
Returns: true if the namespace declaration was removed, otherwise false.
Parameters: namespaces the parent Namespaces