SchemaRegistry

interface SchemaRegistry

Registry for named schemas (DataDictionary instances). Allows API clients to specify which schema to use for proposition extraction.

Inheritors

Functions

Link copied to clipboard
abstract fun all(): Collection<<Error class: unknown class>>

Get all registered schemas.

Link copied to clipboard
abstract fun get(name: String): <Error class: unknown class>?

Get a schema by name.

Link copied to clipboard
abstract fun getDefault(): <Error class: unknown class>

Get the default schema.

Link copied to clipboard
open fun getOrDefault(name: String?): <Error class: unknown class>

Get a schema by name, falling back to default if not found.

Link copied to clipboard
abstract fun names(): Set<String>

List all registered schema names.

Link copied to clipboard
abstract fun register(schema: <Error class: unknown class>)

Register a schema using its DataDictionary.name property.