Class CodeValidation
java.lang.Object
org.openehealth.ipf.commons.ihe.xds.core.validate.query.CodeValidation
- All Implemented Interfaces:
QueryParameterValidation
Query parameter validation for parameters that are Code-based.
- Author:
- Jens Riemschneider
-
Constructor Summary
ConstructorDescriptionCodeValidation
(QueryParameter param) Constructs a validation object.CodeValidation
(QueryParameter param, boolean optional) Constructs a validation object. -
Method Summary
Modifier and TypeMethodDescriptionvoid
validate
(EbXMLAdhocQueryRequest<AdhocQueryRequest> request) Validates a query parameter.
-
Constructor Details
-
CodeValidation
Constructs a validation object.- Parameters:
param
- parameter of the code to validate.optional
- whether the code presence is optional.
-
CodeValidation
Constructs a validation object.- Parameters:
param
- parameter of the optional code to validate.
-
-
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.
-