Class BaseQueryParameter

All Implemented Interfaces:
Direct Known Subclasses:

public abstract class BaseQueryParameter
extends Object
implements IParameter
  • Constructor Details

  • Method Details

    • encode

      public abstract List<> encode​(ca.uhn.fhir.context.FhirContext theContext, Object theObject) throws
    • getName

      public abstract String getName()
    • getParamType

      public abstract getParamType()
    • getQualifierBlacklist

      Returns null if blacklist is "none"
    • getQualifierWhitelist

      Returns null if whitelist is "all"
    • supportsRepetition

      protected abstract boolean supportsRepetition()
    • handlesMissing

      public abstract boolean handlesMissing()
      Parameter should return true if parse(FhirContext, List) should be called even if the query string contained no values for the given parameter
    • initializeTypes

      public void initializeTypes​(Method theMethod, Class<? extends Collection<?>> theOuterCollectionType, Class<? extends Collection<?>> theInnerCollectionType, Class<?> theParameterType)
      Specified by:
      initializeTypes in interface IParameter
    • isRequired

      public abstract boolean isRequired()
    • parse

      public abstract Object parse​(ca.uhn.fhir.context.FhirContext theContext, List<> theString) throws,
    • translateQueryParametersIntoServerArgument

      public Object translateQueryParametersIntoServerArgument​(RequestDetails theRequest, BaseMethodBinding<?> theMethodBinding) throws,
      Description copied from interface: IParameter
      This server method method takes the data received by the server in an incoming request, and translates that data into a single argument for a server method invocation. Note that all received data is passed to this method, but the expectation is that not necessarily that all data is used by every parameter.
      Specified by:
      translateQueryParametersIntoServerArgument in interface IParameter
      theRequest - The incoming request object
      theMethodBinding - TODO
      Returns the argument object as it will be passed to the IResourceProvider method.