Class CodeEnumValidation

java.lang.Object
org.openehealth.ipf.commons.ihe.xds.core.validate.query.CodeValidation
org.projecthusky.communication.ch.camel.validate.CodeEnumValidation
All Implemented Interfaces:
org.openehealth.ipf.commons.ihe.xds.core.validate.query.QueryParameterValidation

public class CodeEnumValidation extends org.openehealth.ipf.commons.ihe.xds.core.validate.query.CodeValidation
Query parameter validation for parameters that are Code-based and bound to a value set.
Author:
Quentin Ligier
  • Constructor Details

    • CodeEnumValidation

      public CodeEnumValidation(org.openehealth.ipf.commons.ihe.xds.core.transform.requests.QueryParameter param, boolean optional, EnumSet<? extends ValueSetEnumInterface> authorizedValues)
      Constructs a validation object.
      Parameters:
      param - parameter of the code to validate.
      optional - whether the code presence is optional.
      authorizedValues - authorized values.
  • Method Details

    • validate

      public void validate(org.openehealth.ipf.commons.ihe.xds.core.ebxml.EbXMLAdhocQueryRequest request) throws org.openehealth.ipf.commons.ihe.xds.core.validate.XDSMetaDataException
      Validates a query parameter.
      Specified by:
      validate in interface org.openehealth.ipf.commons.ihe.xds.core.validate.query.QueryParameterValidation
      Overrides:
      validate in class org.openehealth.ipf.commons.ihe.xds.core.validate.query.CodeValidation
      Parameters:
      request - the query request.
      Throws:
      org.openehealth.ipf.commons.ihe.xds.core.validate.XDSMetaDataException - if the validation failed.