Home | History | Annotate | Download | only in jbosh

Lines Matching defs:QName

62  * <code>QName</code> class represents the value of a qualified name
63 * as specified in <a href="http://www.w3.org/TR/xmlschema-2/#QName">XML
66 * The value of a QName contains a <b>namespaceURI</b>, a <b>localPart</b> and a <b>prefix</b>.
72 public class QName implements Serializable {
87 * Constructor for the QName.
89 * @param localPart Local part of the QName
91 public QName(String localPart) {
96 * Constructor for the QName.
98 * @param namespaceURI Namespace URI for the QName
99 * @param localPart Local part of the QName.
101 public QName(String namespaceURI, String localPart) {
106 * Constructor for the QName.
108 * @param namespaceURI Namespace URI for the QName
109 * @param localPart Local part of the QName.
110 * @param prefix Prefix of the QName.
112 public QName(String namespaceURI, String localPart, String prefix) {
117 throw new IllegalArgumentException("invalid QName local part");
123 throw new IllegalArgumentException("invalid QName prefix");
130 * Gets the Namespace URI for this QName
139 * Gets the Local part for this QName
148 * Gets the Prefix for this QName
157 * Returns a string representation of this QName
159 * @return a string representation of the QName
169 * Tests this QName for equality with another object.
171 * If the given object is not a QName or is null then this method
177 * and namespaceURI. Any class that extends QName is required
185 * QName: <code>false</code> otherwise.
193 if (!(obj instanceof QName)) {
197 if ((namespaceURI == ((QName) obj).namespaceURI)
198 && (localPart == ((QName) obj).localPart)) {
206 * Returns a QName holding the value of the specified String.
208 * The string must be in the form returned by the QName.toString()
212 * This method doesn't do a full validation of the resulting QName.
218 * @throws java.lang.IllegalArgumentException If the specified String cannot be parsed as a QName
219 * @return QName corresponding to the given String
221 public static QName valueOf(String s) {
224 throw new IllegalArgumentException("invalid QName literal");
231 throw new IllegalArgumentException("invalid QName literal");
235 throw new IllegalArgumentException("invalid QName literal");
237 return new QName(s.substring(1, i), s.substring(i + 1));
240 return new QName(s);
245 * Returns a hash code value for this QName object. The hash code
247 * QName. This method satisfies the general contract of the
250 * @return a hash code value for this Qname object