public void AddFilteredAttribute(string filter, string name, string value)
        {
            if (string.IsNullOrEmpty(name))
            {
                throw ExceptionUtil.ParameterNullOrEmpty("name");
            }
            if (value == null)
            {
                throw new ArgumentNullException("value");
            }
            if (filter == null)
            {
                filter = string.Empty;
            }
            if (this._allFiltersDictionary != null)
            {
                this._allFiltersDictionary.Add(Util.CreateFilteredName(filter, name), value);
            }
            FilteredAttributeDictionary dictionary = (FilteredAttributeDictionary)this._filterTable[filter];

            if (dictionary == null)
            {
                dictionary = new FilteredAttributeDictionary(this, filter);
                this._filterTable[filter] = dictionary;
            }
            dictionary.Data.Add(name, value);
        }
        /// <devdoc>
        /// Replaces the specified attribute's value from the specified filter.
        /// </devdoc>
        public void ReplaceFilteredAttribute(string filter, string name, string value)
        {
            if (String.IsNullOrEmpty(name))
            {
                throw ExceptionUtil.ParameterNullOrEmpty("name");
            }

            if (filter == null)
            {
                filter = String.Empty;
            }

            if (_allFiltersDictionary != null)
            {
                _allFiltersDictionary[Util.CreateFilteredName(filter, name)] = value;
            }

            FilteredAttributeDictionary filteredAttributes = (FilteredAttributeDictionary)_filterTable[filter];

            if (filteredAttributes == null)
            {
                filteredAttributes   = new FilteredAttributeDictionary(this, filter);
                _filterTable[filter] = filteredAttributes;
            }
            filteredAttributes.Data[name] = value;
        }
 public void AddFilteredAttribute(string filter, string name, string value)
 {
     if (string.IsNullOrEmpty(name))
     {
         throw ExceptionUtil.ParameterNullOrEmpty("name");
     }
     if (value == null)
     {
         throw new ArgumentNullException("value");
     }
     if (filter == null)
     {
         filter = string.Empty;
     }
     if (this._allFiltersDictionary != null)
     {
         this._allFiltersDictionary.Add(Util.CreateFilteredName(filter, name), value);
     }
     FilteredAttributeDictionary dictionary = (FilteredAttributeDictionary) this._filterTable[filter];
     if (dictionary == null)
     {
         dictionary = new FilteredAttributeDictionary(this, filter);
         this._filterTable[filter] = dictionary;
     }
     dictionary.Data.Add(name, value);
 }
        public void RemoveFilteredAttribute(string filter, string name)
        {
            if (string.IsNullOrEmpty(name))
            {
                throw ExceptionUtil.ParameterNullOrEmpty("name");
            }
            if (filter == null)
            {
                filter = string.Empty;
            }
            if (this._allFiltersDictionary != null)
            {
                this._allFiltersDictionary.Remove(Util.CreateFilteredName(filter, name));
            }
            FilteredAttributeDictionary dictionary = (FilteredAttributeDictionary)this._filterTable[filter];

            if (dictionary != null)
            {
                dictionary.Data.Remove(name);
            }
        }
        public void ReplaceFilteredAttribute(string filter, string name, string value)
        {
            if (string.IsNullOrEmpty(name))
            {
                throw ExceptionUtil.ParameterNullOrEmpty("name");
            }
            if (filter == null)
            {
                filter = string.Empty;
            }
            if (this._allFiltersDictionary != null)
            {
                this._allFiltersDictionary[Util.CreateFilteredName(filter, name)] = value;
            }
            FilteredAttributeDictionary dictionary = (FilteredAttributeDictionary)this._filterTable[filter];

            if (dictionary == null)
            {
                dictionary = new FilteredAttributeDictionary(this, filter);
                this._filterTable[filter] = dictionary;
            }
            dictionary.Data[name] = value;
        }
        /// <devdoc>
        /// Replaces the specified attribute's value from the specified filter.
        /// </devdoc>
        public void ReplaceFilteredAttribute(string filter, string name, string value) {
            if (String.IsNullOrEmpty(name)) {
                throw ExceptionUtil.ParameterNullOrEmpty("name");
            }

            if (filter == null) {
                filter = String.Empty;
            }

            if (_allFiltersDictionary != null) {
                _allFiltersDictionary[Util.CreateFilteredName(filter, name)] = value;
            }

            FilteredAttributeDictionary filteredAttributes = (FilteredAttributeDictionary)_filterTable[filter];
            if (filteredAttributes == null) {
                filteredAttributes = new FilteredAttributeDictionary(this, filter);
                _filterTable[filter] = filteredAttributes;
            }
            filteredAttributes.Data[name] = value;
        }
 public void ReplaceFilteredAttribute(string filter, string name, string value)
 {
     if (string.IsNullOrEmpty(name))
     {
         throw ExceptionUtil.ParameterNullOrEmpty("name");
     }
     if (filter == null)
     {
         filter = string.Empty;
     }
     if (this._allFiltersDictionary != null)
     {
         this._allFiltersDictionary[Util.CreateFilteredName(filter, name)] = value;
     }
     FilteredAttributeDictionary dictionary = (FilteredAttributeDictionary) this._filterTable[filter];
     if (dictionary == null)
     {
         dictionary = new FilteredAttributeDictionary(this, filter);
         this._filterTable[filter] = dictionary;
     }
     dictionary.Data[name] = value;
 }