com.ibm.fhir.persistence.jdbc.domain.StringSearchParam Maven / Gradle / Ivy
/*
* (C) Copyright IBM Corp. 2021
*
* SPDX-License-Identifier: Apache-2.0
*/
package com.ibm.fhir.persistence.jdbc.domain;
import com.ibm.fhir.persistence.exception.FHIRPersistenceException;
import com.ibm.fhir.search.parameters.QueryParameter;
/**
* A string search parameter
*/
public class StringSearchParam extends SearchParam {
/**
* Public constructor
* @param rootResourceType
* @param name
* @param queryParameter the search query parameter being wrapped
*/
public StringSearchParam(String rootResourceType, String name, QueryParameter queryParameter) {
super(rootResourceType, name, queryParameter);
}
@Override
public T visit(T queryData, SearchQueryVisitor visitor) throws FHIRPersistenceException {
return visitor.addStringParam(queryData, getRootResourceType(), getQueryParameter());
}
}