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

expand all

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 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

accessnametypeCan ReadCan InitCan WriteDefault Valuedescription
publicnameString

name of this QName.

name of this QName.

 
publicnamespaceString

Namespace of this QName.

Namespace of this QName.

 
publicprefixString

prefix of this QName.

prefix of this QName.

 

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 Object to test for equality with this QName

Returns
Boolean
true if the given Object is equal to this QName else false
 
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 QName Integer
 
public toString() : java.lang.String

String representation of this QName.

String representation of this QName.

Returns
String
String representation of this QName
 
public toXML() : java.lang.String

XML representation of this QName.

XML representation of this QName.

Returns
String
XML representation of this QName
 

Inherited Functions




Spec-Zone.ru - all specs in one place