public class SlotValueValidation extends Object implements RegistryObjectValidator
Constructor and Description |
---|
SlotValueValidation(String slotName,
ValueValidator validator)
Constructs the validation.
|
SlotValueValidation(String slotName,
ValueValidator validator,
int min,
int max)
Constructs the validation.
|
Modifier and Type | Method and Description |
---|---|
void |
validate(EbXMLRegistryObject obj)
Validates a registry object.
|
void |
validate(EbXMLSlotList slotList)
Validates the given slot list.
|
public SlotValueValidation(String slotName, ValueValidator validator, int min, int max)
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.public SlotValueValidation(String slotName, ValueValidator validator)
slotName
- the name of the slot.validator
- the validator to use.public void validate(EbXMLRegistryObject obj) throws XDSMetaDataException
RegistryObjectValidator
validate
in interface RegistryObjectValidator
obj
- the object.XDSMetaDataException
- if the validation failed.public void validate(EbXMLSlotList slotList) throws XDSMetaDataException
slotList
- the slot list.XDSMetaDataException
- if the validation failed.Copyright © 2018 Open eHealth Foundation. All rights reserved.