public class QName extends Object implements Cloneable
To be used correctly, the strings must be identical references for
equal strings. Within the parser, these values are considered symbols
and should always be retrieved from the SymbolTable.
| Modifier and Type | Field and Description |
|---|---|
String |
localpart
The qname localpart.
|
String |
prefix
The qname prefix.
|
String |
rawname
The qname rawname.
|
String |
uri
The URI to which the qname prefix is bound.
|
| Constructor and Description |
|---|
QName()
Default constructor.
|
QName(QName qname) |
QName(String prefix,
String localpart,
String rawname,
String uri) |
| Modifier and Type | Method and Description |
|---|---|
void |
clear()
Clears the values of the qname components.
|
Object |
clone() |
boolean |
equals(Object object) |
int |
hashCode() |
void |
setValues(QName qname)
Convenience method to set the values of the qname components.
|
void |
setValues(String prefix,
String localpart,
String rawname,
String uri)
Convenience method to set the values of the qname components.
|
String |
toString() |
public String prefix
public String localpart
public String rawname
public String uri
public QName()
public QName(QName qname)
public void setValues(QName qname)
qname - The qualified name to be copied.public void setValues(String prefix, String localpart, String rawname, String uri)
prefix - The qname prefix. (e.g. "a")localpart - The qname localpart. (e.g. "foo")rawname - The qname rawname. (e.g. "a:foo")uri - The URI binding. (e.g. "http://foo.com/mybinding")public void clear()
Copyright © 2023 Gargoyle Software Inc.. All rights reserved.