Overview
QName represents a qualified name
as defined in the XML specifications: , , .
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 QName.equals(Object)
or to compute the 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 | ![]() |
![]() |
![]() |
name of this
name of this |
|
| public | namespace | String | ![]() |
![]() |
![]() |
Namespace of this
Namespace of this |
|
| public | prefix | String | ![]() |
![]() |
![]() |
prefix of this
prefix of this |
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
Objectto test for equality with thisQName
-
Returns
- Boolean
-
trueif the givenObjectis equal to thisQNameelsefalse
- public hashCode() : Integer
- public toString() : java.lang.String
- public toXML() : java.lang.String
