NamedNodeMap

expect interface NamedNodeMap<out T : Node> : PlatformNamedNodeMap, Iterable<T>

Inheritors

actual interface NamedNodeMap<out T : Node> : Iterable<T> , PlatformNamedNodeMap
actual interface NamedNodeMap<out T : Node> : Iterable<T> , NamedNodeMap
actual interface NamedNodeMap<out T : Node> : PlatformNamedNodeMap, Iterable<T>

Properties

Link copied to clipboard
abstract override val length: Int
Link copied to clipboard
Link copied to clipboard
expect abstract val size: Int

The size function works with collection interfaces rather than the traditional getLength interface.

actual abstract val size: Int

The size function works with collection interfaces rather than the traditional getLength interface.

actual abstract val size: Int

The size function works with collection interfaces rather than the traditional getLength interface.

abstract val size: Int

Functions

Link copied to clipboard
inline fun NamedNodeMap.count(predicate: (Attr) -> Boolean): Int

A function to count all attributes for which the predicate holds.

Link copied to clipboard
inline fun NamedNodeMap.filter(predicate: (Attr) -> Boolean): List<Attr>

A filter function on a NamedNodeMap that returns a list of all Attrributes that meet the predicate.

Link copied to clipboard
inline fun NamedNodeMap.forEach(body: (Attr) -> Unit)

A simple for each implementation for NamedNodeMaps.

Link copied to clipboard
expect abstract operator fun get(index: Int): T?
actual abstract operator fun get(index: Int): T?
actual abstract operator fun get(index: Int): T?
actual abstract operator override fun get(index: Int): T?
Link copied to clipboard
inline operator fun PlatformNamedNodeMap.get(index: Int): PlatformNode?

Cross platform function for those implementations that do not implement get in the main class.

Link copied to clipboard
expect abstract fun getLength(): Int
actual abstract fun getLength(): Int
actual abstract override fun getLength(): Int
abstract fun getLength(): Int
Link copied to clipboard
expect abstract fun getNamedItem(qualifiedName: String): T?
actual abstract override fun getNamedItem(qualifiedName: String): T?
actual abstract override fun getNamedItem(qualifiedName: String): T?
actual abstract override fun getNamedItem(qualifiedName: String): T?
Link copied to clipboard
expect abstract fun getNamedItemNS(namespace: String?, localName: String): T?
actual abstract override fun getNamedItemNS(namespace: String?, localName: String): T?
actual abstract override fun getNamedItemNS(namespace: String?, localName: String): T?
actual abstract override fun getNamedItemNS(namespace: String?, localName: String): T?
Link copied to clipboard
actual fun PlatformNamedNodeMap.getNamedItemNS(namespace: String?, localName: String): PlatformNode?
actual fun PlatformNamedNodeMap.getNamedItemNS(namespace: String?, localName: String): PlatformNode?
actual fun PlatformNamedNodeMap.getNamedItemNS(namespace: String?, localName: String): PlatformNode?
Link copied to clipboard
expect abstract fun item(index: Int): T?
actual abstract override fun item(index: Int): T?
actual abstract override fun item(index: Int): T?
actual abstract override fun item(index: Int): T?
iterator
Link copied to clipboard
expect abstract operator override fun iterator(): Iterator<T>
actual abstract operator override fun iterator(): Iterator<T>
actual abstract operator override fun iterator(): Iterator<T>
abstract operator fun iterator(): Iterator<T>
Link copied to clipboard
Link copied to clipboard
inline fun <R> NamedNodeMap.map(body: (Attr) -> R): List<R>

A Collection.map function for transforming attributes.

Link copied to clipboard
expect abstract fun removeNamedItem(qualifiedName: String): T?
actual abstract override fun removeNamedItem(qualifiedName: String): T?
actual abstract override fun removeNamedItem(qualifiedName: String): T?
actual abstract override fun removeNamedItem(qualifiedName: String): T?
Link copied to clipboard
expect abstract fun removeNamedItemNS(namespace: String?, localName: String): T?
actual abstract override fun removeNamedItemNS(namespace: String?, localName: String): T?
actual abstract override fun removeNamedItemNS(namespace: String?, localName: String): T?
actual abstract override fun removeNamedItemNS(namespace: String?, localName: String): T?
Link copied to clipboard
expect abstract fun setNamedItem(attr: PlatformNode): T?
actual abstract override fun setNamedItem(attr: PlatformNode): T?
actual abstract override fun setNamedItem(attr: PlatformNode): T?
actual abstract override fun setNamedItem(attr: PlatformNode): T?
Link copied to clipboard
expect abstract fun setNamedItemNS(attr: PlatformNode): T?
actual abstract override fun setNamedItemNS(attr: PlatformNode): T?
actual abstract override fun setNamedItemNS(attr: PlatformNode): T?
actual abstract override fun setNamedItemNS(attr: PlatformNode): T?