ValidationContext

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

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.

Link copied to clipboard
fun <T> value(): T

Value being validated.