|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.xerces.xni.QName
public class QName
A structure that holds the components of an XML Namespaces qualified name.
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
.
Field Summary | |
---|---|
java.lang.String |
localpart
The qname localpart. |
java.lang.String |
prefix
The qname prefix. |
java.lang.String |
rawname
The qname rawname. |
java.lang.String |
uri
The URI to which the qname prefix is bound. |
Constructor Summary | |
---|---|
QName()
Default constructor. |
|
QName(QName qname)
Constructs a copy of the specified QName. |
|
QName(java.lang.String prefix,
java.lang.String localpart,
java.lang.String rawname,
java.lang.String uri)
Constructs a QName with the specified values. |
Method Summary | |
---|---|
void |
clear()
Clears the values of the qname components. |
java.lang.Object |
clone()
Returns a clone of this object. |
boolean |
equals(java.lang.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(java.lang.String prefix,
java.lang.String localpart,
java.lang.String rawname,
java.lang.String uri)
Convenience method to set the values of the qname components. |
java.lang.String |
toString()
Returns a string representation of this object. |
Methods inherited from class java.lang.Object |
---|
getClass, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public java.lang.String prefix
public java.lang.String localpart
public java.lang.String rawname
public java.lang.String uri
Constructor Detail |
---|
public QName()
public QName(java.lang.String prefix, java.lang.String localpart, java.lang.String rawname, java.lang.String uri)
public QName(QName qname)
Method Detail |
---|
public void setValues(QName qname)
qname
- The qualified name to be copied.public void setValues(java.lang.String prefix, java.lang.String localpart, java.lang.String rawname, java.lang.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()
public java.lang.Object clone()
clone
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public boolean equals(java.lang.Object object)
equals
in class java.lang.Object
public java.lang.String toString()
toString
in class java.lang.Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |