org.apache.xerces.xni
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
.
Version: $Id: QName.java,v 1.8 2004/10/03 21:53:25 mrglavas Exp $
See Also: org.apache.xerces.util.SymbolTable
Field Summary | |
---|---|
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 Summary | |
---|---|
QName() Default constructor. | |
QName(String prefix, String localpart, String rawname, String uri) Constructs a QName with the specified values. | |
QName(QName qname) Constructs a copy of the specified QName. |
Method Summary | |
---|---|
void | clear() Clears the values of the qname components. |
Object | clone() Returns a clone of this object. |
boolean | equals(Object object) Returns true if the two objects are equal. |
int | hashCode() Returns the hashcode for this object. |
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() Returns a string representation of this object. |
Parameters: qname The qualified name to be copied.
Parameters: 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")