@SuppressWarnings("unchecked") @Override public List<IQueryParameterOr<?>> encode(FhirContext theContext, IQueryParameterAnd<?> theString) throws InternalErrorException { List<IQueryParameterOr<?>> retVal = (List<IQueryParameterOr<?>>) ((IQueryParameterAnd<?>) theString).getValuesAsQueryTokens(); return retVal; }
@Override public IQueryParameterAnd<?> parse(FhirContext theContext, String theParamName, List<QualifiedParamList> theString) throws InternalErrorException, InvalidRequestException { IQueryParameterAnd<?> dt; try { dt = newInstance(); dt.setValuesAsQueryTokens(theContext, theParamName, theString); } catch (SecurityException e) { throw new InternalErrorException(e); } return dt; } }
public void add(String theName, IQueryParameterAnd<?> theAnd) { if (theAnd == null) { return; } if (!containsKey(theName)) { put(theName, new ArrayList<>()); } for (IQueryParameterOr<?> next : theAnd.getValuesAsQueryTokens()) { if (next == null) { continue; } get(theName).add(next.getValuesAsQueryTokens()); } }
type.setValuesAsQueryTokens(myContext, nextParamName, (paramList)); paramMap.add(nextParamName, type); } else if (nextParamName.startsWith("_")) {
@SuppressWarnings("unchecked") @Override public List<IQueryParameterOr<?>> encode(FhirContext theContext, IQueryParameterAnd<?> theString) throws InternalErrorException { List<IQueryParameterOr<?>> retVal = (List<IQueryParameterOr<?>>) ((IQueryParameterAnd<?>) theString).getValuesAsQueryTokens(); return retVal; }
@Override public IQueryParameterAnd<?> parse(FhirContext theContext, String theParamName, List<QualifiedParamList> theString) throws InternalErrorException, InvalidRequestException { IQueryParameterAnd<?> dt; try { dt = newInstance(); dt.setValuesAsQueryTokens(theContext, theParamName, theString); } catch (SecurityException e) { throw new InternalErrorException(e); } return dt; } }