Package com.ibm.fhir.cql.helpers
Class ParameterMap
- java.lang.Object
-
- org.apache.commons.collections4.multimap.AbstractMultiValuedMap<K,V>
-
- org.apache.commons.collections4.multimap.AbstractListValuedMap<K,V>
-
- org.apache.commons.collections4.multimap.ArrayListValuedHashMap<java.lang.String,Parameters.Parameter>
-
- com.ibm.fhir.cql.helpers.ParameterMap
-
- All Implemented Interfaces:
java.io.Serializable
,org.apache.commons.collections4.ListValuedMap<java.lang.String,Parameters.Parameter>
,org.apache.commons.collections4.MultiValuedMap<java.lang.String,Parameters.Parameter>
public class ParameterMap extends org.apache.commons.collections4.multimap.ArrayListValuedHashMap<java.lang.String,Parameters.Parameter>
This is a helper class for indexing the contents of a FHIR Parameters resource by name and accessing the contents of that index.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description ParameterMap(Parameters parameters)
ParameterMap(java.util.List<Parameters.Parameter> parameters)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Parameters.Parameter
getOptionalSingletonParameter(java.lang.String paramName)
java.util.List<Parameters.Parameter>
getParameter(java.lang.String paramName)
java.util.List<Parameters.Parameter>
getRequiredParameter(java.lang.String paramName)
Parameters.Parameter
getSingletonParameter(java.lang.String paramName)
org.apache.commons.collections4.MultiValuedMap<java.lang.String,Parameters.Parameter>
indexParametersByName(Parameters parameters)
org.apache.commons.collections4.MultiValuedMap<java.lang.String,Parameters.Parameter>
indexParametersByName(java.util.List<Parameters.Parameter> parameters)
-
Methods inherited from class org.apache.commons.collections4.multimap.ArrayListValuedHashMap
createCollection, trimToSize
-
Methods inherited from class org.apache.commons.collections4.multimap.AbstractListValuedMap
get, getMap, remove
-
Methods inherited from class org.apache.commons.collections4.multimap.AbstractMultiValuedMap
asMap, clear, containsKey, containsMapping, containsValue, doReadObject, doWriteObject, entries, equals, hashCode, isEmpty, keys, keySet, mapIterator, put, putAll, putAll, putAll, removeMapping, setMap, size, toString, values
-
-
-
-
Constructor Detail
-
ParameterMap
public ParameterMap(Parameters parameters)
-
ParameterMap
public ParameterMap(java.util.List<Parameters.Parameter> parameters)
-
-
Method Detail
-
indexParametersByName
public org.apache.commons.collections4.MultiValuedMap<java.lang.String,Parameters.Parameter> indexParametersByName(Parameters parameters)
-
indexParametersByName
public org.apache.commons.collections4.MultiValuedMap<java.lang.String,Parameters.Parameter> indexParametersByName(java.util.List<Parameters.Parameter> parameters)
-
getParameter
public java.util.List<Parameters.Parameter> getParameter(java.lang.String paramName)
-
getSingletonParameter
public Parameters.Parameter getSingletonParameter(java.lang.String paramName)
-
getRequiredParameter
public java.util.List<Parameters.Parameter> getRequiredParameter(java.lang.String paramName)
-
getOptionalSingletonParameter
public Parameters.Parameter getOptionalSingletonParameter(java.lang.String paramName)
-
-