Package ca.uhn.fhir.util
Class ParametersUtil
- java.lang.Object
-
- ca.uhn.fhir.util.ParametersUtil
-
public class ParametersUtil extends Object
Utilities for dealing with parameters resources in a version indepenedent way
-
-
Constructor Summary
Constructors Constructor Description ParametersUtil()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static IBaseaddParameterToParameters(FhirContext theContext, IBaseParameters theParameters, String theName)Add a parameter with no value (typically because we'll be adding sub-parameters)static voidaddParameterToParameters(FhirContext theContext, IBaseParameters theParameters, String theName, Object theValue)Add a paratemer value to a Parameters resourcestatic voidaddParameterToParameters(FhirContext theContext, IBaseParameters theParameters, String theName, String thePrimitiveDatatype, String theValue)Add a paratemer value to a Parameters resourcestatic voidaddParameterToParametersBoolean(FhirContext theCtx, IBaseParameters theParameters, String theName, boolean theValue)static voidaddParameterToParametersCode(FhirContext theCtx, IBaseParameters theParameters, String theName, String theValue)static voidaddParameterToParametersInteger(FhirContext theCtx, IBaseParameters theParameters, String theName, int theValue)static voidaddParameterToParametersReference(FhirContext theCtx, IBaseParameters theParameters, String theName, String theReference)static voidaddParameterToParametersString(FhirContext theCtx, IBaseParameters theParameters, String theName, String theValue)static voidaddParameterToParametersUri(FhirContext theCtx, IBaseParameters theParameters, String theName, String theValue)static voidaddPartCode(FhirContext theContext, IBase theParameter, String theName, String theCode)static voidaddPartCoding(FhirContext theContext, IBase theParameter, String theName, String theSystem, String theCode, String theDisplay)static voidaddPartString(FhirContext theContext, IBase theParameter, String theName, String theValue)static IPrimitiveType<?>createCode(FhirContext theContext, String theValue)static IPrimitiveType<?>createString(FhirContext theContext, String theValue)static IPrimitiveType<?>createUri(FhirContext theContext, String theValue)static List<String>getNamedParameterValuesAsString(FhirContext theCtx, IBaseParameters theParameters, String theParameterName)static IBaseParametersnewInstance(FhirContext theContext)
-
-
-
Constructor Detail
-
ParametersUtil
public ParametersUtil()
-
-
Method Detail
-
getNamedParameterValuesAsString
public static List<String> getNamedParameterValuesAsString(FhirContext theCtx, IBaseParameters theParameters, String theParameterName)
-
addParameterToParameters
public static void addParameterToParameters(FhirContext theContext, IBaseParameters theParameters, String theName, Object theValue)
Add a paratemer value to a Parameters resource
-
addParameterToParameters
public static void addParameterToParameters(FhirContext theContext, IBaseParameters theParameters, String theName, String thePrimitiveDatatype, String theValue)
Add a paratemer value to a Parameters resource- Parameters:
theContext- The FhirContexttheParameters- The Parameters resourcetheName- The parameter namethePrimitiveDatatype- The datatype, e.g. "string", or "uri"theValue- The value
-
createString
public static IPrimitiveType<?> createString(FhirContext theContext, String theValue)
-
createUri
public static IPrimitiveType<?> createUri(FhirContext theContext, String theValue)
-
createCode
public static IPrimitiveType<?> createCode(FhirContext theContext, String theValue)
-
newInstance
public static IBaseParameters newInstance(FhirContext theContext)
-
addParameterToParametersBoolean
public static void addParameterToParametersBoolean(FhirContext theCtx, IBaseParameters theParameters, String theName, boolean theValue)
-
addParameterToParametersCode
public static void addParameterToParametersCode(FhirContext theCtx, IBaseParameters theParameters, String theName, String theValue)
-
addParameterToParametersInteger
public static void addParameterToParametersInteger(FhirContext theCtx, IBaseParameters theParameters, String theName, int theValue)
-
addParameterToParametersReference
public static void addParameterToParametersReference(FhirContext theCtx, IBaseParameters theParameters, String theName, String theReference)
-
addParameterToParametersString
public static void addParameterToParametersString(FhirContext theCtx, IBaseParameters theParameters, String theName, String theValue)
-
addParameterToParametersUri
public static void addParameterToParametersUri(FhirContext theCtx, IBaseParameters theParameters, String theName, String theValue)
-
addParameterToParameters
public static IBase addParameterToParameters(FhirContext theContext, IBaseParameters theParameters, String theName)
Add a parameter with no value (typically because we'll be adding sub-parameters)
-
addPartCode
public static void addPartCode(FhirContext theContext, IBase theParameter, String theName, String theCode)
-
addPartString
public static void addPartString(FhirContext theContext, IBase theParameter, String theName, String theValue)
-
addPartCoding
public static void addPartCoding(FhirContext theContext, IBase theParameter, String theName, String theSystem, String theCode, String theDisplay)
-
-