ValidationResult

sealed class ValidationResult

Validation result for entity mentions.

This sealed class represents the outcome of validating an entity mention against a set of validation rules.

Inheritors

Types

Link copied to clipboard
data class Invalid(val reason: String) : ValidationResult

Indicates the mention failed validation.

Link copied to clipboard

Indicates the mention passed validation.

Properties

Link copied to clipboard

True if this result represents a valid mention.

Link copied to clipboard

Extension property to get the failure reason if invalid, null if valid.