org.apache.xml.serializer
public class NamespaceMappings extends Object
For example:
When the
UNKNOWN: internal
Constructor Summary | |
---|---|
NamespaceMappings()
Default constructor |
Method Summary | |
---|---|
Object | clone()
This method makes a clone of this object.
|
String | generateNextPrefix()
Generate a new namespace prefix ( ns0, ns1 ...) not used before |
String[] | lookupAllPrefixes(String uri)
Given a namespace uri, get all prefixes bound to the Namespace URI in the current scope.
|
String | lookupNamespace(String prefix)
Use a namespace prefix to lookup a namespace URI.
|
String | lookupPrefix(String uri)
Given a namespace uri, and the namespaces mappings for the
current element, return the current prefix for that uri.
|
boolean | pushNamespace(String prefix, String uri, int elemDepth)
Declare a mapping of a prefix to namespace URI at the given element depth. |
See Also: java.lang.Object#Object()
Returns: String a new namespace prefix ( ns0, ns1, ns2 ...)
Parameters: uri the namespace URI to be search for
Returns: An array of Strings which are all prefixes bound to the namespace URI in the current scope. An array of zero elements is returned if no prefixes map to the given namespace URI.
Parameters: prefix String the prefix of the namespace
Returns: the URI corresponding to the prefix, returns "" if there is no visible mapping.
Parameters: uri the namespace URI to be search for
Returns: an existing prefix that maps to the given URI, null if no prefix maps to the given namespace URI.
Parameters: prefix a String with the prefix for a qualified name uri a String with the uri to which the prefix is to map elemDepth the depth of current declaration