ComputationContext

abstract class ComputationContext(source)

Context provided to a form manager computation when running it, contains the values of the computation's dependencies at the time the computation was executed.

Inheritors

Properties

Link copied to clipboard

Path at which the computation is occurring.

Link copied to clipboard

Path of the schema at which the computation is occurring.

Functions

Link copied to clipboard
fun <T> dependency(dependencyKey: String): T

Returns the value of the dependency with key dependencyKey.

Link copied to clipboard
fun <T> dependencyInfo(dependencyKey: String): ValueInfo<T>

Obtains the value information of the dependency with key dependencyKey.

Link copied to clipboard
fun <T> dependencyInfoOrNull(dependencyKey: String): ValueInfo<T>?

Obtains the value information of the dependency with key dependencyKey or null if the dependency could not be found in the form.

Link copied to clipboard
fun <T> dependencyOrNull(dependencyKey: String): T?

Returns the value of the dependency with key dependencyKey or null if the dependency could not be found in the form.

Link copied to clipboard
fun dependencyPath(dependencyKey: String): AbsolutePath

Returns the path of the dependency with key dependencyKey.

Link copied to clipboard

Returns the path of the dependency with key dependencyKey or null if the dependency could not be found in the form.

Link copied to clipboard
fun <T> dependencySchema(dependencyKey: String): Schema<T>

Returns the schema of the dependency with key dependencyKey.

Link copied to clipboard
fun <T> dependencySchemaOrNull(dependencyKey: String): Schema<T>?

Returns the schema of the dependency with key dependencyKey or null if the dependency could not be found in the form.

Link copied to clipboard
fun <T> externalContext(externalContextName: String): T

Returns the external context with name externalContextName available to the computation.

Link copied to clipboard
fun <T> externalContextOrNull(externalContextName: String): T?

Returns the external context with name externalContextName available to the computation or null if the external context could not be found.

Link copied to clipboard
fun <T> schema(): Schema<T>

Schema at which the computation is occurring.