Class UUIDValidator
java.lang.Object
org.openehealth.ipf.commons.ihe.xds.core.validate.UUIDValidator
- All Implemented Interfaces:
ValueValidator
Validator for UUIDs
- Author:
- Boris Stanojevic
-
Constructor Summary
-
Method Summary
-
Constructor Details
-
UUIDValidator
public UUIDValidator()
-
-
Method Details
-
validate
Description copied from interface:ValueValidator
Validates the given value.- Specified by:
validate
in interfaceValueValidator
- Parameters:
uuid
- the value.- Throws:
XDSMetaDataException
- if the validation failed.
-
getSymbolicId
- Parameters:
id
- identifier- Returns:
- identifier if the id is not an UUID, Optional.empty otherwise
-
isUUID
- Parameters:
id
- identifier- Returns:
- true if identifier is a valid UUID
-
getAsUUID
- Parameters:
urn
- urn- Returns:
- UUID if uri is a valid UUID, Optional.empty otherwise
-
getAsUUID
- Parameters:
uri
- uri- Returns:
- UUID if uri is a valid UUID, Optional.empty otherwise
-
getAsUUID
- Parameters:
urn
- urn- Returns:
- UUID if uri is a valid UUID, Optional.empty otherwise
-