public class NamespaceMappings extends Object
For example:
When the
| Constructor and Description |
|---|
NamespaceMappings()
Default constructor
|
| Modifier and Type | Method and Description |
|---|---|
Object |
clone()
This method makes a clone of this object.
|
String |
generateNextPrefix()
Generate a new namespace prefix ( ns0, ns1 ...) not used before
|
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.
|
public NamespaceMappings()
Object.Object()public String lookupNamespace(String prefix)
prefix - String the prefix of the namespacepublic String lookupPrefix(String uri)
uri - the namespace URI to be search forpublic String generateNextPrefix()
public Object clone() throws CloneNotSupportedException
clone in class ObjectCloneNotSupportedExceptionCopyright © 2018–2021 mhoffrogge. All rights reserved.