JavaFX: Bringing Rich Experiences To All the Screens Of Your Life

Profile: desktop, common

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

accessnametypeCan ReadCan InitCan WriteDefault Valuedescription
publicnameString
publicnamespaceString
publicprefixString

Inherited Variables

Function Summary

public equals(obj: java.lang.Object) : Boolean

Test this QName for equality with another Object.

Test this QName for equality with another Object.

If the Object to be tested is not a QName or is null, then this method returns false.

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>
&nbsp;
public hashCode() : Integer

Generate the hash code for this QName.

Generate the hash code for this QName.

The hash code is calculated using both the Namespace and the name of the QName. The prefix is NOT used to calculate the hash code.

Returns
Integer
hash code for this <code>QName</code> <code>Integer</code>
&nbsp;
public toString() : java.lang.String

String representation of this QName.

String representation of this QName.

Returns
String
<code>String</code> representation of this <code>QName</code>
&nbsp;

Inherited Functions




Spec-Zone.ru - all specs in one place