| java.lang.Object com.sun.xml.stream.xerces.xni.QName
QName | public class QName implements Cloneable(Code) | | 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 .
See Also: com.sun.xml.stream.xerces.util.SymbolTable author: Andy Clark, IBM version: $Id: QName.java,v 1.2 2006/04/01 06:01:45 jeffsuttor Exp $ |
Constructor Summary | |
public | QName() Default constructor. | public | QName(String prefix, String localpart, String rawname, String uri) Constructs a QName with the specified values. | public | QName(QName qname) Constructs a copy of the specified QName. |
Method Summary | |
public void | clear() Clears the values of the qname components. | public Object | clone() Returns a clone of this object. | public boolean | equals(Object object) Returns true if the two objects are equal. | public int | hashCode() Returns the hashcode for this object. | public void | setValues(QName qname) Convenience method to set the values of the qname components. | public void | setValues(String prefix, String localpart, String rawname, String uri) Convenience method to set the values of the qname components.
Parameters: prefix - The qname prefix. | public String | toString() Returns a string representation of this object. |
characters | public char[] characters(Code) | | |
localpart | public String localpart(Code) | | The qname localpart. For example, the localpart for the qname "a:foo"
is "foo".
|
prefix | public String prefix(Code) | | The qname prefix. For example, the prefix for the qname "a:foo"
is "a".
|
rawname | public String rawname(Code) | | The qname rawname. For example, the rawname for the qname "a:foo"
is "a:foo".
|
uri | public String uri(Code) | | The URI to which the qname prefix is bound. This binding must be
performed by a XML Namespaces aware processor.
|
QName | public QName()(Code) | | Default constructor.
|
QName | public QName(QName qname)(Code) | | Constructs a copy of the specified QName.
|
clear | public void clear()(Code) | | Clears the values of the qname components.
|
clone | public Object clone()(Code) | | Returns a clone of this object.
|
equals | public boolean equals(Object object)(Code) | | Returns true if the two objects are equal.
|
hashCode | public int hashCode()(Code) | | Returns the hashcode for this object.
|
setValues | public void setValues(QName qname)(Code) | | Convenience method to set the values of the qname components.
Parameters: QName - The qualified name to be copied. |
setValues | public void setValues(String prefix, String localpart, String rawname, String uri)(Code) | | Convenience method to set the values of the qname components.
Parameters: prefix - The qname prefix. (e.g. "a") Parameters: localpart - The qname localpart. (e.g. "foo") Parameters: rawname - The qname rawname. (e.g. "a:foo") Parameters: uri - The URI binding. (e.g. "http://foo.com/mybinding") |
toString | public String toString()(Code) | | Returns a string representation of this object.
|
|
|