MaterializedDocument

data class MaterializedDocument(val id: String, val uri: String? = null, val title: String, val children: List<MaterializedSection>, val metadata: Map<String, Any?> = emptyMap()) : MaterializedContainerSection, ContentRoot

Constructors

Link copied to clipboard
constructor(id: String, uri: String? = null, title: String, children: List<MaterializedSection>, metadata: Map<String, Any?> = emptyMap())

Properties

Link copied to clipboard
open override val children: List<MaterializedSection>

Direct children of this section (not all descendants).

Link copied to clipboard
open override val id: String

Embabel id. Will be synthetic.

Link copied to clipboard
open override val metadata: Map<String, Any?>
Link copied to clipboard
abstract val parentId: String?
Link copied to clipboard
open override val title: String
Link copied to clipboard
open override val uri: String? = null

URI for the content. May be a URL. Not generated by Embabel, but from the source.

Functions

Link copied to clipboard
Link copied to clipboard
open override fun labels(): Set<String>

Labels of the entity. In Neo, this might include multiple labels. In a relational database, this might be a single table name.

Link copied to clipboard
open fun leaves(): List<LeafSection>
Link copied to clipboard
open override fun propertiesToPersist(): Map<String, Any?>

Properties to persist Subclasses can add their own properties but must call super to include these.