public class HomeCommunityIdValidator extends Object implements ValueValidator
Constructor and Description |
---|
HomeCommunityIdValidator(boolean required)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
void |
validate(String homeCommunityId)
Validates the given value.
|
public HomeCommunityIdValidator(boolean required)
required
- true
when an exception should be thrown when
the homeCommunityId attribute is not present.public void validate(String homeCommunityId) throws XDSMetaDataException
ValueValidator
validate
in interface ValueValidator
homeCommunityId
- the value.XDSMetaDataException
- if the validation failed.Copyright © 2018 Open eHealth Foundation. All rights reserved.