public class Namespace extends Object
| Modifier and Type | Field and Description |
|---|---|
protected Map<String,String> |
namespaces |
protected Map<String,String> |
prefixes |
static String |
xmlns |
| Constructor and Description |
|---|
Namespace() |
Namespace(Hashtable<String,String> pref) |
Namespace(Namespace other) |
public static final String xmlns
public Namespace()
public Namespace(Namespace other)
public static Namespace getThreadNamespace()
public void extendWith(Namespace ns)
public void setParent(Namespace parent)
public Namespace getParent()
public void addKnownNamespaces()
public String getDefaultNamespace()
public void setDefaultNamespace(String defaultNamespace)
public void registerDefault(String namespace)
public void newPrefix(String namespace)
public void unregisterDeafult(String namespace)
public static Namespace gatherNamespaces(Bundle bundle, ProvFactory pFactory)
public QualifiedName stringToQualifiedName(String id, ProvFactory pFactory)
public QualifiedName qualifiedName(String prefix, String local, ProvFactory pFactory)
getDefaultNamespace()) which must have been pre-registered.prefix - the prefix for the QualifiedNamelocal - the local name for the QualifiedNamepFactory - the factory method used to construct the QualifiedNameQualifiedNameQualifiedNameException - if prefix is not pre-registered.NullPointerException - if prefix is null and defaultnamespace has not been registered.public static String qualifiedNameToStringWithNamespace(QualifiedName name)
public String qualifiedNameToString(QualifiedName name)
public String qualifiedNameToString(QualifiedName name, Namespace child)
name - the QualifiedName to convert to stringchild - argument used just for the purpose of debugging when throwing an exceptionCopyright © 2015. All rights reserved.