public override RandomAccessFilter BuildRandomAccessFilter(string value, IDictionary <string, string> selectionProperty) { RandomAccessFilter retFilter = EmptyFilter.Instance; ComboSelection comboSel = ComboSelection.Parse(value, _separator); if (comboSel != null) { IFacetHandler handler = GetDependedFacetHandler(comboSel.Name); if (handler != null) { retFilter = handler.BuildRandomAccessFilter(comboSel.Value, selectionProperty); } } return(retFilter); }
private static IDictionary <string, IList <string> > ConvertMap(string[] vals, string sep) { IDictionary <string, IList <string> > retmap = new Dictionary <string, IList <string> >(); foreach (string val in vals) { ComboSelection sel = ComboSelection.Parse(val, sep); if (sel != null) { IList <string> valList = retmap.Get(sel.Name); if (valList == null) { valList = new List <string>(); retmap.Put(sel.Name, valList); } valList.Add(sel.Value); } } return(retmap); }