DateResult

data class DateResult<StringType>(val day: Int?, val month: Int?, val year: Int?, val originalString: StringType, val filledByDomainKnowledge: Boolean = false, val successfullyParsed: Boolean = true)

Represents the result of the date extraction.

Constructors

Link copied to clipboard
constructor(day: Int?, month: Int?, year: Int?, originalString: StringType, filledByDomainKnowledge: Boolean = false, successfullyParsed: Boolean = true)

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard
val day: Int?

Day of the month. The first day of the month has value 1.

Link copied to clipboard

Indicates that date does not appear on the document but is filled by our internal domain knowledge.

Link copied to clipboard
val month: Int?

Month of the year. The first month of the year has value 1.

Link copied to clipboard

Original string representation of the date which has been extracted.

Link copied to clipboard

Indicates whether date was successfully parsed.

Link copied to clipboard
val year: Int?

Full year.

Functions

Link copied to clipboard
open override fun toString(): String