Class ExternalIdentifierValidation
java.lang.Object
org.openehealth.ipf.commons.ihe.xds.core.validate.ExternalIdentifierValidation
- All Implemented Interfaces:
RegistryObjectValidator
Validates an external identifier.
- Author:
- Jens Riemschneider
-
Constructor Summary
ConstructorDescriptionExternalIdentifierValidation
(String scheme, ValueValidator validator, boolean required) Constructs a validation. -
Method Summary
Modifier and TypeMethodDescriptionvoid
Validates a registry object.
-
Constructor Details
-
ExternalIdentifierValidation
Constructs a validation.- Parameters:
scheme
- the scheme of the external identifier to validate.validator
- the validator to call for the value of the external identifier.required
- whether the identifier is required or optional.
-
-
Method Details
-
validate
Description copied from interface:RegistryObjectValidator
Validates a registry object.- Specified by:
validate
in interfaceRegistryObjectValidator
- Parameters:
obj
- the object.- Throws:
XDSMetaDataException
- if the validation failed.
-