DocumentType

value class DocumentType(val rawCode: String)

A document type code as printed in an MRZ: one or two characters.

toString() shows no document values; the code is in rawCode.

Since

0.1.0

Constructors

Link copied to clipboard
constructor(rawCode: String)

Properties

Link copied to clipboard

The category from entry, else the one implied by the first character of rawCode.

Link copied to clipboard

The category from entry, or null if the code is not recognized.

Link copied to clipboard

The DocumentTypeCodeTable entry for rawCode, or null if the table has none.

Link copied to clipboard

true if DocumentTypeCodeTable has an entry for rawCode.

Link copied to clipboard

The code exactly as printed.

Functions

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

DocumentType, without the code.