ContentDivergentGroup

data class ContentDivergentGroup(val children: List<ContentDivergentInstance>, val dci: DCI, val style: Set<Style>, val extra: PropertyContainer<ContentNode>, val groupID: ContentDivergentGroup.GroupID, val implicitlySourceSetHinted: Boolean = true) : ContentComposite

Constructors

Link copied to clipboard
constructor(children: List<ContentDivergentInstance>, dci: DCI, style: Set<Style>, extra: PropertyContainer<ContentNode>, groupID: ContentDivergentGroup.GroupID, implicitlySourceSetHinted: Boolean = true)

Types

Link copied to clipboard
data class GroupID(val name: String)

Properties

Link copied to clipboard
Link copied to clipboard
open override val dci: DCI
Link copied to clipboard
open override val extra: PropertyContainer<ContentNode>
Link copied to clipboard

is used for finding and copying ContentDivergentInstances when merging ContentPages

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