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
ConstructorsConstructorDescriptionExternalIdentifierValidation(String scheme, ValueValidator validator, boolean required) Constructs a validation. -
Method Summary
Modifier and TypeMethodDescriptionvoidValidates 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:RegistryObjectValidatorValidates a registry object.- Specified by:
validatein interfaceRegistryObjectValidator- Parameters:
obj- the object.- Throws:
XDSMetaDataException- if the validation failed.
-