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 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
QName
for equality with anotherObject
.Test this
QName
for equality with anotherObject
.If the
Object
to be tested is not aQName
or isnull
, then this method returnsfalse
.Two
QName
s 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
- public toXML() : java.lang.String