Save This Page
Home » Xerces-J-src.2.9.1 » org.apache.xerces » xni » [javadoc | source]
org.apache.xerces.xni
public class: QName [javadoc | source]
java.lang.Object
   org.apache.xerces.xni.QName

All Implemented Interfaces:
    Cloneable

Direct Known Subclasses:
    XQName

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
public  String prefix    The qname prefix. For example, the prefix for the qname "a:foo" is "a". 
public  String localpart    The qname localpart. For example, the localpart for the qname "a:foo" is "foo". 
public  String rawname    The qname rawname. For example, the rawname for the qname "a:foo" is "a:foo". 
public  String uri    The URI to which the qname prefix is bound. This binding must be performed by a XML Namespaces aware processor. 
Constructor:
 public QName() 
 public QName(QName qname) 
    Constructs a copy of the specified QName.
 public QName(String prefix,
    String localpart,
    String rawname,
    String uri) 
    Constructs a QName with the specified values.
Method from org.apache.xerces.xni.QName Summary:
clear,   clone,   equals,   hashCode,   setValues,   setValues,   toString
Methods from java.lang.Object:
equals,   getClass,   hashCode,   notify,   notifyAll,   toString,   wait,   wait,   wait
Method from org.apache.xerces.xni.QName Detail:
 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.
 public String toString() 
    Returns a string representation of this object.