@Override NumberParam newInstance() { return new NumberParam(); }
@Override public IQueryParameterType toQueryParameterType() { return new NumberParam(myValue.toPlainString()); }
/** * Returns a new param containing the same value as this param, but with the type copnverted * to {@link NumberParam}. This is useful if you are using reference parameters and want to handle * chained parameters of different types in a single method. * <p> * See <a href="http://jamesagnew.github.io/hapi-fhir/doc_rest_operations.html#dynamic_chains">Dynamic Chains</a> * in the HAPI FHIR documentation for an example of how to use this method. * </p> */ public NumberParam toNumberParam(FhirContext theContext) { NumberParam retVal = new NumberParam(); retVal.setValueAsQueryToken(theContext, null, null, getValueAsQueryToken(theContext)); return retVal; }
break; case NUMBER: qp = new NumberParam(); break; case QUANTITY:
@Override NumberParam newInstance() { return new NumberParam(); }
switch (searchParam.getParamType()) { case NUMBER: param = new NumberParam(value); break; case DATE:
/** * Returns a new param containing the same value as this param, but with the type copnverted * to {@link NumberParam}. This is useful if you are using reference parameters and want to handle * chained parameters of different types in a single method. * <p> * See <a href="http://jamesagnew.github.io/hapi-fhir/doc_rest_operations.html#dynamic_chains">Dynamic Chains</a> * in the HAPI FHIR documentation for an example of how to use this method. * </p> */ public NumberParam toNumberParam(FhirContext theContext) { NumberParam retVal = new NumberParam(); retVal.setValueAsQueryToken(theContext, null, null, getValueAsQueryToken(theContext)); return retVal; }
break; case NUMBER: qp = new NumberParam(); break; case QUANTITY:
switch (searchParam.getParamType()) { case NUMBER: param = new NumberParam(value); break; case DATE: