LeafSection

data class LeafSection(val id: String, val uri: String? = null, val title: String, val text: String, val parentId: String? = null, val metadata: Map<String, Any?> = emptyMap()) : MaterializedSection, HasContent

Contains content

Constructors

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

Properties

Link copied to clipboard
open override val content: String

Content associated with this object.

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
open override val parentId: String? = null
Link copied to clipboard
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
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 override fun propertiesToPersist(): Map<String, Any?>

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