public class Namespace
extends java.lang.Object
QName
instances.Constructor and Description |
---|
Namespace() |
Namespace(java.lang.String uri) |
Namespace(java.lang.String uri,
java.lang.String prefix) |
Modifier and Type | Method and Description |
---|---|
QName |
get(java.lang.String localName)
Returns the QName for the given localName.
|
java.lang.String |
getPrefix()
Returns the prefix mapped to this namespace
|
java.lang.String |
getUri()
Returns the URI of this namespace
|
public Namespace()
public Namespace(java.lang.String uri)
public Namespace(java.lang.String uri, java.lang.String prefix)
public QName get(java.lang.String localName)
localName
- the local name within thispublic java.lang.String getPrefix()
public java.lang.String getUri()