Overview
QName represents a qualified name
as defined in the XML specifications: XML Schema Part2:
Datatypes specification, Namespaces
in XML, Namespaces
in XML Errata.
The value of a QName contains a Namespace
, name and
prefix.
The prefix is included in QName to retain lexical
information when present in an XML input source.
The prefix is NOT used in equals(Object)
QName.equals(Object) or to compute the hashCode()
QName.hashCode(). Equality and the hash code are defined using
only the Namespace and name.
Profile: common
Variable Summary
| access | name | type | Can Read | Can Init | Can Write | Default Value | description |
|---|---|---|---|---|---|---|---|
| public | name | String | ![]() | ![]() | ![]() | ||
| public | namespace | String | ![]() | ![]() | ![]() | ||
| public | prefix | String | ![]() | ![]() | ![]() |
Inherited Variables
Function Summary
- public equals(obj: java.lang.Object) : Boolean
-
Test this
QNamefor equality with anotherObject.
Test this
QNamefor equality with anotherObject.If the
Objectto be tested is not aQNameor isnull, then this method returnsfalse.Two
QNames are considered equal if and only if both the Namespace and name are equal. The prefix is NOT used to determine equality.-
Parameters
- obj
- the <code>Object</code> to test for equality with this <code>QName</code>
-
Returns
- Boolean
- <code>true</code> if the given <code>Object</code> is equal to this <code>QName</code> else <code>false</code>
- public hashCode() : Integer
- public toString() : java.lang.String
