Package-level declarations
Home of the core KForm concepts.
Home of the core KForm concepts.
Types
Representation of an absolute path as a subtype of Path and as a list of absolute path fragments. Absolute paths are always "resolved" (i.e. they contain no unnecessary fragments such as current path fragments or consecutive recursive wildcard fragments).
Fragment of an absolute path.
This class is a simple FormValidator wrapper for usage from Java, providing methods returning completable futures instead of using suspend functions or Kotlin flows.
Asynchronous validation more easily implementable from Java.
Status of the automatic validations.
State for collections (i.e. values represented by collection schemas).
Form manager computation.
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.
Computed value for values of type T.
Context provided to a computed value when running it, contains the values of the computed value's dependencies at the time the computed value was executed.
Status of the computed values.
Value information of a validation's dependencies.
Exception thrown when attempting to access a dependency with key dependencyKey that could not be found during the execution of a computation.
Display status of a value.
Function used to subscribe to form manager events.
Function used to handle the gotten external context.
Exception thrown when attempting to access an external context with name externalContextName that could not be found during the execution of a computation.
External contexts.
External validations.
Class responsible for managing the data and state of a form.
Event emitted by the form manager. Events can be of one of two "main" types: ValueEvent (signaling a change in a value of the form) or StateEvent (signaling a change in the form's state).
Class used to validate form values. Form values are of type T and represent the content of a form with the provided form schema.
Information about a value in the form manager.
Function used to handle the flow of information related to some path.
Exception thrown when a computation at path path has a dependency with an invalid path.
Exception thrown when a computation at path path has a dependency with an invalid type.
Exception thrown when a stateful computation at path path has an invalid path to observe toObserve.
Function used to handle the flow of located validation issues.
Validation more easily implementable from Java.
Validation error emitted by a form validator or manager containing location information.
Validation error emitted by a manager containing location information when a validation fails to run (throws an exception while being executed). The code of this validation error is ValidationFailure.CODE.
Validation issue emitted by a form validator or manager containing location information.
Validation warning emitted by a form validator or manager containing location information.
Function to run during a form manager subscription.
Schema representing metadata on parent values of type T.
State for parent values (i.e. values represented by parent schemas).
Representation of a path as a list of path fragments.
Fragment of a path.
Bus used by schemas to emit events representing "what happened" to values.
Event emitted by the form manager signaling a change in the form's state.
Computation of values where the form manager maintains a state of type TState for each managed computation.
Computed value for values of type T where the form manager maintains a computed value state of type TState for each managed value.
Validation for values of type T where the form manager maintains a validation state of type TState for each managed value.
Synchronous validation more easily implementable from Java.
Function used to unsubscribe from a form manager subscription.
Function used to update the state of a stateful computation.
Criteria that determines whether to run schema-internal validations and/or external validations when calling FormValidator.validate.
Validation for values of type T.
Context provided to a validation when running it, contains the values of the validation's dependencies at the time the validation was executed.
Validation error emitted by a validation indicating a problem with the form data.
Exception thrown when a validation fails to run via the form validator or form utilities due to an exception being thrown while running it.
Validation issue emitted by a validation indicating a (potential) problem with the form data.
Data associated with a validation issue. Useful, for example, for displaying (possibly located) messages associated with the issue.
Severity of a validation issue.
Form manager validation mode.
Validation status of a value.
Validation warning emitted by a validation indicating a potential problem with the form data.
Event emitted by the form manager signaling a change in a value of type T of the form.
Function used to handle a gotten value.
Function used to handle the flow of value information related to some path.
Functions
Returns whether a collection of located validation issues contains any errors.
Returns whether a flow of located validation issues contains any errors.
Returns whether a collection of located validation issues contains any issues at all.
Returns whether a flow of located validation issues contains any issues at all.
Returns whether a collection of located validation issues contains no errors.
Returns whether a flow of located validation issues contains no errors.
Returns whether a collection of located validation issues contains no issues at all.
Returns whether a flow of located validation issues contains no issues at all.
Returns whether a collection of located validation issues contains no warnings.
Returns whether a flow of located validation issues contains no warnings.
Returns whether a collection of located validation issues contains any warnings.
Returns whether a flow of located validation issues contains any warnings.
Returns a future that completes with the single part of the form value formValue (with schema formSchema) matching path.
Returns a future that completes with a clone (deep copy) of the single part of the form value formValue (with schema formSchema) matching path.
Returns a future that completes with whether there exists a part of the form value formValue (with schema formSchema) matching path.
Returns whether all parts of the form value formValue (with schema formSchema) are valid according to their schemas. These parts are said to be valid if they contain no validation errors.
Returns whether the parts of the form value formValue (with schema formSchema) matching path are valid according to their schemas. These parts are said to be valid if they contain no validation errors.
Returns a future that completes with whether all parts of the form value formValue (with schema formSchema) are valid according to the validator's schema.
Returns a future that completes with whether the parts of the form value formValue (with schema formSchema) matching path are valid according to the validator's schema.
Returns whether all parts of the form value formValue (with schema formSchema) are valid according to the provided external validations. These parts are said to be valid if they contain no validation errors.
Returns whether the parts of the form value formValue (with schema formSchema) matching path are valid according to the provided external validations. These parts are said to be valid if they contain no validation errors.
Returns a future that completes with whether all parts of the form value formValue (with schema formSchema) are valid according to the provided external validations.
Returns a future that completes with whether the parts of the form value formValue (with schema formSchema) matching path are valid according to the provided external validations.
Returns whether there exists at least one schema within formSchema matching path.
Returns a future that completes once the values matching path that are part of the form value formValue (with schema formSchema) have been removed from their parent collection(s).
Returns a future that completes once the values at path that are part of the form value formValue (with schema formSchema) have been reset to their initial value.
Returns a sequence of information about the schemas within formSchema matching path.
Returns a future that completes once the values at path that are part of the form value formValue (with schema formSchema) have been set with value toSet.
Converts the receiver path into an absolute path, if it wasn't one already.
Validates all parts of the form value formValue against formSchema. Returns a flow of found validation issues.
Validates the parts of the form value formValue matching path against formSchema. Returns a flow of found validation issues.
Validates all parts of the form value formValue against formSchema. Returns a future that completes with a list of found validation issues.
Validates the parts of the form value formValue matching path against formSchema. Returns a future that completes with a list of found validation issues.
Validates all parts of the form value formValue with schema formSchema against a map of external validations externalValidations.
Validates the parts of the form value formValue matching path with schema formSchema against a map of external validations externalValidations.
Validates all parts of the form value formValue with schema formSchema against a map of external validations externalValidations. Returns a future that completes with a list of found validation issues.
Validates the parts of the form value formValue matching path with schema formSchema against a map of external validations externalValidations. Returns a future that completes with a list of found validation issues.
Validates the provided external validations in the context of the given formSchema by checking that all validation dependencies are valid (i.e. that they point to valid locations and have valid types).
Validates that the provided path points to a schema of formSchema.
Validates all validations of the provided formSchema by checking that all validation dependencies are valid (i.e. that they point to valid locations and have valid types).
Returns a future that completes with a list of information about the parts of the form value formValue (with schema formSchema) matching path.