ContentHeader

data class ContentHeader(val children: List<ContentNode>, val level: Int, val dci: DCI, val sourceSets: Set<DisplaySourceSet>, val style: Set<Style>, val extra: PropertyContainer<ContentNode> = PropertyContainer.empty()) : ContentComposite

Headers

Constructors

Link copied to clipboard
constructor(level: Int, c: ContentComposite)
constructor(children: List<ContentNode>, level: Int, dci: DCI, sourceSets: Set<DisplaySourceSet>, style: Set<Style>, extra: PropertyContainer<ContentNode> = PropertyContainer.empty())

Properties

Link copied to clipboard
open override val children: List<ContentNode>
Link copied to clipboard
open override val dci: DCI
Link copied to clipboard
open override val extra: PropertyContainer<ContentNode>
Link copied to clipboard
val level: Int
Link copied to clipboard
open override val sourceSets: Set<DisplaySourceSet>
Link copied to clipboard
open override val style: Set<Style>

Functions

Link copied to clipboard
inline fun <T> WithChildren<*>.childrenOfType(): List<T>
Link copied to clipboard
inline fun <T> WithChildren<*>.firstChildOfType(): T
inline fun <T> WithChildren<*>.firstChildOfType(predicate: (T) -> Boolean): T
Link copied to clipboard
inline fun <T> WithChildren<*>.firstChildOfTypeOrNull(predicate: (T) -> Boolean): T?
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
open override fun hasAnyContent(): Boolean
Link copied to clipboard
Link copied to clipboard
open override fun transformChildren(transformer: (ContentNode) -> ContentNode): ContentHeader
Link copied to clipboard
@JvmName(name = "withDescendantsProjection")
fun WithChildren<*>.withDescendants(): Sequence<Any?>
@JvmName(name = "withDescendantsAny")
fun WithChildren<Any>.withDescendants(): Sequence<Any>
Link copied to clipboard
Link copied to clipboard
open override fun withSourceSets(sourceSets: Set<DisplaySourceSet>): ContentHeader