Package-level declarations

Types

Link copied to clipboard

The value must be structurally valid Base64: standard (+/) or URL-safe (-_) alphabet, padded or unpadded. = may only appear as 1-2 trailing padding characters that complete a 4-character block. The empty string is valid (it encodes zero bytes) — combine with com.sahsenvar.kmapper.validation.builtin.NotEmptyStringValidator to also require content.

Link copied to clipboard

The value must be a plausible payment-card number (PAN): 12-19 digits passing the Luhn checksum. Spaces and hyphens between digit groups are tolerated (4111 1111 1111 1111), any other character is rejected.

Link copied to clipboard
Link copied to clipboard

The value must be a hex string: an even number of hex digits, upper- or lower-case. The empty string is valid (it encodes zero bytes) — combine with com.sahsenvar.kmapper.validation.builtin.NotEmptyStringValidator to also require content.

Link copied to clipboard

The value must be an RFC 1123 hostname: dot-separated labels of 1-63 letters, digits, and hyphens (no leading/trailing hyphen per label), at most 253 characters total. A single label (localhost) is valid; a trailing dot is not.

Link copied to clipboard

The value must be a strict dotted-decimal IPv4 address: four octets 0..255, no leading zeros (192.168.001.1 is rejected — leading zeros are ambiguous octal).

Link copied to clipboard

The value must be a valid IPv6 address: 8 groups of 1-4 hex digits, at most one :: compression (covering at least one group), with an optional embedded IPv4 tail (::ffff:192.0.2.1).

Link copied to clipboard

The value must be a latitude in -90.0..90.0 degrees; rejects NaN and infinities.

Link copied to clipboard

The value must be a longitude in -180.0..180.0 degrees; rejects NaN and infinities.

Link copied to clipboard

The value must be an E.164 international phone number: a +, a non-zero country-code digit, then up to 14 further digits (+905551112233). No spaces, dashes, or parentheses — E.164 is the canonical wire format, not a display format.

Link copied to clipboard

The value must be a usable TCP/UDP port number in 1..65535 (port 0 means "let the OS pick" and is not a valid destination).

Link copied to clipboard

The value must be a URL slug: lower-case letters and digits in hyphen-separated runs (converter-redesign-2). No upper-case, no leading/trailing/double hyphens, no spaces.

Link copied to clipboard
Link copied to clipboard

The value must be a canonical 8-4-4-4-12 hex UUID string (123e4567-e89b-12d3-a456-426614174000); both upper- and lower-case digits are accepted. Braced ({...}) and compact (no-dash) forms are rejected.