Tabnine Logo
BaseAndListParam
Code IndexAdd Tabnine to your IDE (free)

How to use
BaseAndListParam
in
ca.uhn.fhir.rest.param

Best Java code snippets using ca.uhn.fhir.rest.param.BaseAndListParam (Showing top 4 results out of 315)

origin: jamesagnew/hapi-fhir

@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);
    }
  }
}
origin: jamesagnew/hapi-fhir

@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);
  }
}
origin: ca.uhn.hapi.fhir/hapi-fhir-server

@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);
    }
  }
}
origin: ca.uhn.hapi.fhir/hapi-fhir-base

@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);
  }
}
ca.uhn.fhir.rest.paramBaseAndListParam

Most used methods

  • addAnd
  • getValuesAsQueryTokens
  • newInstance

Popular in Java

  • Reading from database using SQL prepared statement
  • getExternalFilesDir (Context)
  • runOnUiThread (Activity)
  • orElseThrow (Optional)
    Return the contained value, if present, otherwise throw an exception to be created by the provided s
  • Color (java.awt)
    The Color class is used to encapsulate colors in the default sRGB color space or colors in arbitrary
  • FileInputStream (java.io)
    An input stream that reads bytes from a file. File file = ...finally if (in != null) in.clos
  • Socket (java.net)
    Provides a client-side TCP socket.
  • MessageDigest (java.security)
    Uses a one-way hash function to turn an arbitrary number of bytes into a fixed-length byte sequence.
  • TimeZone (java.util)
    TimeZone represents a time zone offset, and also figures out daylight savings. Typically, you get a
  • Runner (org.openjdk.jmh.runner)
  • Top PhpStorm plugins
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now