public class QName extends Object implements Serializable
Constructor and Description |
---|
QName(String localName)
Creates a QName without prefix (e.g.
|
QName(String localName,
String prefix)
Creates a QName having the given local name and prefix.
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object obj) |
String |
getLocalName() |
String |
getPrefix() |
String |
getPrefixedName() |
int |
hashCode() |
String |
toString() |
static QName |
valueOf(String name)
Parses the given name and creates the corresponding QName.
|
static QName |
valueOf(String name,
String prefix)
Parses the given name and create the corresponding QName.
|
public QName(String localName)
localName
- the local namepublic final String getLocalName()
public final String getPrefixedName()
public static QName valueOf(String name)
If the given name is not prefixed then the default prefix (e.g. "") will be used (i.e. the name will remain unprefixed).
name
- the name in the prefixed formCopyright © 2018 Nuxeo. All rights reserved.