@SuppressWarnings({"rawtypes", "unchecked"}) private void addValueToList(List<Object> matchingParamValues, Object values) { if (values != null) { if (BaseAndListParam.class.isAssignableFrom(myParameterType) && matchingParamValues.size() > 0) { BaseAndListParam existing = (BaseAndListParam<?>) matchingParamValues.get(0); BaseAndListParam<?> newAndList = (BaseAndListParam<?>) values; for (IQueryParameterOr nextAnd : newAndList.getValuesAsQueryTokens()) { existing.addAnd(nextAnd); } } else { matchingParamValues.add(values); } } }
@Override public void setValuesAsQueryTokens(FhirContext theContext, String theParamName, List<QualifiedParamList> theParameters) throws InvalidRequestException { myValues.clear(); for (QualifiedParamList nextParam : theParameters) { T nextList = newInstance(); nextList.setValuesAsQueryTokens(theContext, theParamName, nextParam); myValues.add(nextList); } }
@SuppressWarnings({"rawtypes", "unchecked"}) private void addValueToList(List<Object> matchingParamValues, Object values) { if (values != null) { if (BaseAndListParam.class.isAssignableFrom(myParameterType) && matchingParamValues.size() > 0) { BaseAndListParam existing = (BaseAndListParam<?>) matchingParamValues.get(0); BaseAndListParam<?> newAndList = (BaseAndListParam<?>) values; for (IQueryParameterOr nextAnd : newAndList.getValuesAsQueryTokens()) { existing.addAnd(nextAnd); } } else { matchingParamValues.add(values); } } }
@Override public void setValuesAsQueryTokens(FhirContext theContext, String theParamName, List<QualifiedParamList> theParameters) throws InvalidRequestException { myValues.clear(); for (QualifiedParamList nextParam : theParameters) { T nextList = newInstance(); nextList.setValuesAsQueryTokens(theContext, theParamName, nextParam); myValues.add(nextList); } }