QName

actual class QName(namespaceURI: String, localPart: String, prefix: String)
expect class QName(namespaceURI: String, localPart: String, prefix: String)

Platform independent implementation of QName

actual class QName(namespaceURI: String, localPart: String, prefix: String)
actual typealias QName = javax.xml.namespace.QName

Use the native QName type.

Constructors

Link copied to clipboard
actual constructor(namespaceURI: String, localPart: String, prefix: String)
actual constructor(namespaceURI: String, localPart: String)
actual constructor(localPart: String)
expect constructor(namespaceURI: String, localPart: String, prefix: String)

Create a new constructor with the given namespace uri, local part and prefix.

expect constructor(namespaceURI: String, localPart: String)

Create a new constructor with the given namespace uri and local part. The prefix is unspecified (empty).

expect constructor(localPart: String)

Create a new QName in the default namespace with the given local name and null prefix.

actual constructor(namespaceURI: String, localPart: String, prefix: String)
actual constructor(namespaceURI: String, localPart: String)
actual constructor(localPart: String)

Properties

Link copied to clipboard

Property syntax accessor for QName.getLocalPart

Link copied to clipboard

Property syntax accessor for QName.getNamespaceURI

Link copied to clipboard

Property syntax accessor for QName.getPrefix

Functions

Link copied to clipboard
open operator override fun equals(other: Any?): Boolean
open operator override fun equals(other: Any?): Boolean
Link copied to clipboard
actual fun getLocalPart(): String
expect fun getLocalPart(): String

Retrieve the local part of this QName.

actual fun getLocalPart(): String
Link copied to clipboard
actual fun getNamespaceURI(): String
expect fun getNamespaceURI(): String

Retrieve the namespace URI for this QName.

actual fun getNamespaceURI(): String
Link copied to clipboard
actual fun getPrefix(): String
expect fun getPrefix(): String

Retrieve the prefix for this QName.

actual fun getPrefix(): String
Link copied to clipboard
open override fun hashCode(): Int
open override fun hashCode(): Int
Link copied to clipboard
infix fun QName.isEquivalent(other: QName): Boolean

Determine whether two QNames are equivalent (the prefix is ignored, the others compared textually).

Link copied to clipboard

Determine whether the two QNames are fully equal

Link copied to clipboard

Get the CName part of a QName

Link copied to clipboard

Extract the namespace for the QName (excluding the local name)

Link copied to clipboard
open override fun toString(): String
open override fun toString(): String