code: public void addFilter(Filter filter)
     {
        if (filter.isTaskFilter())
        {
           m_taskFilters.add(filter);
        }
  
        if (filter.isResourceFilter())
        {
           m_resourceFilters.add(filter);
        }
  
        m_filtersByName.put(filter.getName(), filter);
        m_filtersByID.put(filter.getID(), filter);
     }
docs: Adds a filter definition to this project file.
  
  @param filter filter definition