Class ParametersMap


  • public class ParametersMap
    extends java.lang.Object
    A multi-key map that indexes a set of search parameters by SearchParameter.code and SearchParameter.url / canonical (url + "|" + version)
    • Field Detail

      • MISSING_EXPRESSION_WARNING

        public static final java.lang.String MISSING_EXPRESSION_WARNING
        See Also:
        Constant Field Values
    • Constructor Detail

      • ParametersMap

        public ParametersMap()
        Construct a ParametersMap from a Bundle of SearchParameter
    • Method Detail

      • insert

        public void insert​(java.lang.String code,
                           SearchParameter parameter)
        Parameters:
        code -
        parameter -
      • insertInclusionParam

        public void insertInclusionParam​(java.lang.String code,
                                         SearchParameter parameter)
        Parameters:
        code -
        parameter -
      • getCodes

        public java.util.Set<java.lang.String> getCodes()
        Get the set of SearchParameter codes that have been added to this map.
        Returns:
      • lookupByCode

        public SearchParameter lookupByCode​(java.lang.String searchParameterCode)
        Look up a search parameter that has been added to this map by its code.
        Parameters:
        searchParameterCode -
        Returns:
        null if it doesn't exist
      • lookupByCanonical

        public SearchParameter lookupByCanonical​(java.lang.String searchParameterCanonical)
        Look up a search parameter that has been added to this map by its canonical URL.
        Parameters:
        searchParameterCanonical -
        Returns:
        null if it doesn't exist
      • getInclusionParam

        public SearchParameter getInclusionParam​(java.lang.String searchParameterCode)
        Get a SearchParameter that has been added to this map as an inclusion parameter by its code.
        Parameters:
        searchParameterCode -
        Returns:
        null if it doesn't exist
      • values

        public java.util.Collection<SearchParameter> values()
        Returns:
        the set of search parameters added to this map
      • codeEntries

        public java.util.Set<java.util.Map.Entry<java.lang.String,​SearchParameter>> codeEntries()
        Returns:
        the set of search parameters in the map, indexed by code
      • inclusionValues

        public java.util.Collection<SearchParameter> inclusionValues()
        Returns:
        the set of compartment inclusion criteria parameter values
      • canonicalEntries

        public java.util.Set<java.util.Map.Entry<java.lang.String,​SearchParameter>> canonicalEntries()