Class Uuids
java.lang.Object
org.projecthusky.common.utils.datatypes.Uuids
@DefaultQualifier(value=org.checkerframework.checker.nullness.qual.NonNull.class,
locations={PARAMETER,RETURN})
public class Uuids
extends Object
Helpers related to UUIDs (as per RFC4122).
In XDS.b and FHIR, UUIDs should be lower-cased. In CDA, they should be upper-cased.
- Author:
- Quentin Ligier
-
Field Details
-
URN_PREFIX
The prefix for URN encoding.- See Also:
-
PATTERN
Pattern that matches a UUID. -
PATTERN_WITH_URN
Pattern that matches a URN-encoded UUID.
-
-
Method Details
-
normalize
Normalizes a UUID by removing the URN-encoding part if needed and lowercasing it. -
generate
Generates a new random UUID. -
parseUrnEncoded
Parses a URN-encoded UUID.
-