Package dev.fritz2.validation

Types

ValidationMessage
Link copied to clipboard
common
interface ValidationMessage
Minimal interface that has to be implemented and contains the message from validation process.
Validator
Link copied to clipboard
common
abstract class Validator<D, M : ValidationMessage, T>
Describes the logic for validating a given data-model.
js
abstract class Validator<D, M : ValidationMessage, T>
Describes the logic for validating a given data-model.
abstract class Validator<D, M : ValidationMessage, T>
Describes the logic for validating a given data-model.

Functions

validator
Link copied to clipboard
common
fun <D, M : ValidationMessage, T> validator(doValidation: (D, T) -> List<M>): Validator<D, M, T>
convenience method for creating a new Validator