commonDomMain.nl.adaptivity.xmlutil.dom.Element.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of core-base Show documentation
Show all versions of core-base Show documentation
Component of the XMLUtil library
/*
* Copyright (c) 2024.
*
* This file is part of xmlutil.
*
* This file is licenced to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You should have received a copy of the license with the source distribution.
* Alternatively, you may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied. See the License for the
* specific language governing permissions and limitations
* under the License.
*/
package nl.adaptivity.xmlutil.dom
@Suppress("DEPRECATION")
public actual interface Element : Node {
public val namespaceURI: String?
public val prefix: String?
public val localName: String
public val tagName: String
public val attributes: NamedNodeMap
public actual fun getAttribute(qualifiedName: String): String?
public actual fun getAttributeNS(namespace: String?, localName: String): String?
public actual fun setAttribute(qualifiedName: String, value: String)
public actual fun setAttributeNS(namespace: String?, cName: String, value: String)
public actual fun removeAttribute(qualifiedName: String)
public actual fun removeAttributeNS(namespace: String?, localName: String)
public actual fun hasAttribute(qualifiedName: String): Boolean
public actual fun hasAttributeNS(namespace: String?, localName: String): Boolean
public actual fun getAttributeNode(qualifiedName: String): Attr?
public actual fun getAttributeNodeNS(namespace: String?, localName: String): Attr?
public actual fun setAttributeNode(attr: Attr): Attr?
public actual fun setAttributeNodeNS(attr: Attr): Attr?
public actual fun removeAttributeNode(attr: Attr): Attr
public actual fun getElementsByTagName(qualifiedName: String): NodeList
public actual fun getElementsByTagNameNS(namespace: String?, localName: String): NodeList
}
public actual fun Element.getNamespaceURI(): String? = namespaceURI
public actual fun Element.getPrefix(): String? = prefix
public actual fun Element.getLocalName(): String? = localName
public actual fun Element.getTagName(): String = tagName
public actual fun Element.getAttributes(): NamedNodeMap = attributes
© 2015 - 2024 Weber Informatics LLC | Privacy Policy