public class NamespaceSet extends Object
| Constructor and Description |
|---|
NamespaceSet() |
| Modifier and Type | Method and Description |
|---|---|
void |
addNamespace(String nsAttribute,
String namespace)
Add a namespace to the list.
|
void |
addPrefixedElement(String elementName,
String namespacedElementName)
Add a localname translation.
|
String |
getElementName(String name)
Convert an element name, if necessary.
|
Set<Map.Entry<String,String>> |
nameSpaceEntrySet() |
public void addNamespace(String nsAttribute, String namespace)
nsAttribute - the attribute to be used to specify the namespacenamespace - the namespace URIpublic void addPrefixedElement(String elementName, String namespacedElementName)
elementName - the local name of the elementnamespacedElementName - the final name of the element with prefix.public String getElementName(String name)
name - the name to be converted.Copyright © 2007-2012. All Rights Reserved.