Class HomeCommunityIdValidator
java.lang.Object
org.openehealth.ipf.commons.ihe.xds.core.validate.HomeCommunityIdValidator
- All Implemented Interfaces:
ValueValidator
Validates a homeCommunityId attribute.
- Author:
- Dmytro Rud
-
Constructor Summary
-
Method Summary
-
Constructor Details
-
HomeCommunityIdValidator
public HomeCommunityIdValidator(boolean required) Constructor.- Parameters:
required
-true
when an exception should be thrown when the homeCommunityId attribute is not present.
-
-
Method Details
-
validate
Description copied from interface:ValueValidator
Validates the given value.- Specified by:
validate
in interfaceValueValidator
- Parameters:
homeCommunityId
- the value.- Throws:
XDSMetaDataException
- if the validation failed.
-