A UR type: lowercase letters, digits and hyphens, as the reference's URType::new accepts them. The empty string is accepted, so ur:/… is a valid UR, although BCR-2020-005 asks for one or more characters.
URType::new
ur:/…
InvalidType when name has a character outside [a-z0-9-]; InvalidParameter for a non-string.
InvalidType
name
[a-z0-9-]
InvalidParameter
The type string, e.g. "envelope".
"envelope"
Static
name itself when it is already a URType, else a new one.
URType
InvalidType; InvalidParameter for anything but a string or URType.
Non-throwing from for a string.
from
InvalidParameter for a non-string.
Whether every character of name is in [a-z0-9-] (the empty string is valid).
Same type string.
The type string.
A UR type: lowercase letters, digits and hyphens, as the reference's
URType::newaccepts them. The empty string is accepted, sour:/…is a valid UR, although BCR-2020-005 asks for one or more characters.