Class StringValidation
java.lang.Object
org.openehealth.ipf.commons.ihe.xds.core.validate.query.StringValidation
- All Implemented Interfaces:
QueryParameterValidation
Query parameter validation for parameters that are String-based.
- Author:
- Jens Riemschneider
-
Constructor Summary
ConstructorDescriptionStringValidation
(QueryParameter param, ValueValidator validator, boolean optional) Constructs a validation object. -
Method Summary
Modifier and TypeMethodDescriptionvoid
validate
(EbXMLAdhocQueryRequest<AdhocQueryRequest> request) Validates a query parameter.
-
Constructor Details
-
StringValidation
Constructs a validation object.- Parameters:
param
- parameter to validate.validator
- validator to use on the parameter value.optional
-true
if this parameter is optional.
-
-
Method Details
-
validate
Description copied from interface:QueryParameterValidation
Validates a query parameter.- Specified by:
validate
in interfaceQueryParameterValidation
- Parameters:
request
- the query request.- Throws:
XDSMetaDataException
- if the validation failed.
-