QName

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

Platform independent implementation of QName

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

Platform independent implementation of QName

actual typealias QName = javax.xml.namespace.QName

Use the native QName type.

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

Platform independent implementation of QName

Constructors

Link copied to clipboard
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)

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

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

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

actual constructor(localPart: String)

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

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
expect operator override fun equals(other: Any?): Boolean
actual operator override fun equals(other: Any?): Boolean
actual operator override fun equals(other: Any?): Boolean
Link copied to clipboard
expect fun getLocalPart(): String

Retrieve the local part of this QName.

actual fun getLocalPart(): String

Retrieve the local part of this QName.

actual fun getLocalPart(): String

Retrieve the local part of this QName.

Link copied to clipboard
expect fun getNamespaceURI(): String

Retrieve the namespace URI for this QName.

actual fun getNamespaceURI(): String

Retrieve the namespace URI for this QName.

actual fun getNamespaceURI(): String

Retrieve the namespace URI for this QName.

Link copied to clipboard
expect fun getPrefix(): String

Retrieve the prefix for this QName.

actual fun getPrefix(): String

Retrieve the prefix for this QName.

actual fun getPrefix(): String

Retrieve the prefix for this QName.

Link copied to clipboard
expect override fun hashCode(): Int
actual override fun hashCode(): Int
actual 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