Class SlotValueValidation
java.lang.Object
org.openehealth.ipf.commons.ihe.xds.core.validate.SlotValueValidation
- All Implemented Interfaces:
RegistryObjectValidator
Performs a validation of a slot value.
- Author:
- Jens Riemschneider
-
Constructor Summary
ConstructorDescriptionSlotValueValidation
(String slotName, ValueValidator validator) Constructs the validation.SlotValueValidation
(String slotName, ValueValidator validator, int min, int max) Constructs the validation. -
Method Summary
Modifier and TypeMethodDescriptionvoid
Validates a registry object.void
validate
(EbXMLSlotList slotList) Validates the given slot list.
-
Constructor Details
-
SlotValueValidation
Constructs the validation.- Parameters:
slotName
- the name of the slot.validator
- the validator to use.min
- the minimum number of values that the slot must have.max
- the maximum number of values that the slot must have.
-
SlotValueValidation
Constructs the validation.- Parameters:
slotName
- the name of the slot.validator
- the validator to use.
-
-
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.
-
validate
Validates the given slot list.- Parameters:
slotList
- the slot list.- Throws:
XDSMetaDataException
- if the validation failed.
-