LegalNameValidator

Types

Link copied to clipboard
sealed class Rule<in T>
Link copied to clipboard

Properties

Link copied to clipboard
val WHITESPACE: <Error class: unknown class>

Functions

Link copied to clipboard
fun normalize(nameAttribute: String): String

The normalize function will trim the input string, replace any multiple spaces with a single space, and normalize the string according to NFKC normalization form.

Link copied to clipboard
Link copied to clipboard
fun validateLegalName(normalizedLegalName: String)
Link copied to clipboard
fun validateNameAttribute(normalizedNameAttribute: String, validation: LegalNameValidator.Validation)

The validation function validates a string for use as part of a legal name. It applies the following rules:

Link copied to clipboard
fun validateOrganization(normalizedOrganization: String, validation: LegalNameValidator.Validation)

The validation function validates a string for use as the organization attribute of a name, which includes additional constraints over basic name attribute checks. It applies the following additional rules: