001package ca.uhn.fhir.rest.param; 002 003/* 004 * #%L 005 * HAPI FHIR - Core Library 006 * %% 007 * Copyright (C) 2014 - 2016 University Health Network 008 * %% 009 * Licensed under the Apache License, Version 2.0 (the "License"); 010 * you may not use this file except in compliance with the License. 011 * You may obtain a copy of the License at 012 * 013 * http://www.apache.org/licenses/LICENSE-2.0 014 * 015 * Unless required by applicable law or agreed to in writing, software 016 * distributed under the License is distributed on an "AS IS" BASIS, 017 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 018 * See the License for the specific language governing permissions and 019 * limitations under the License. 020 * #L% 021 */ 022 023import java.util.Date; 024 025import ca.uhn.fhir.model.dstu.valueset.QuantityCompararatorEnum; 026import ca.uhn.fhir.util.CoverageIgnore; 027 028/** 029 * @deprecated Use {@link DateParam} instead (this class is identical, but was renamed to be less confusing) 030 */ 031@Deprecated 032@CoverageIgnore 033public class QualifiedDateParam extends DateParam { 034 /** 035 * Constructor 036 */ 037 public QualifiedDateParam() { 038 } 039 040 /** 041 * Constructor 042 */ 043 public QualifiedDateParam(QuantityCompararatorEnum theComparator, Date theDate) { 044 setComparator(theComparator); 045 setValue(theDate); 046 } 047 048 /** 049 * Constructor 050 */ 051 public QualifiedDateParam(QuantityCompararatorEnum theComparator, String theDate) { 052 setComparator(theComparator); 053 setValueAsString(theDate); 054 } 055 056 /** 057 * Constructor which takes a complete [qualifier]{date} string. 058 * 059 * @param theString The string 060 */ 061 public QualifiedDateParam(String theString) { 062 setValueAsQueryToken(null, theString); 063 } 064 065}