TextualElement

An element which can be represented as human-readable text.

The default implementation returns the first accessibility label associated to the element.

Inheritors

Properties

Link copied to clipboard
Link copied to clipboard

Associated list of attributes.

Link copied to clipboard
open val language: Language?
Link copied to clipboard
abstract val locator: Locator

Locator targeting this element in the Publication.

Link copied to clipboard
open val text: String?

Human-readable text representation for this element.

Functions

Link copied to clipboard
open fun <V> attribute(key: Content.AttributeKey<V>): V?

Gets the first attribute with the given key.

Link copied to clipboard
open fun <V> attributes(key: Content.AttributeKey<V>): List<V>

Gets all the attributes with the given key.