00001 package edu.rice.cs.hpc.data.filter; 00002 00003 /********************************************** 00004 * 00005 * Interface to filter a scope 00006 * This interface is designed to be used by a scope visitor 00007 * whether it needs to exclude a scope or not 00008 * 00009 **********************************************/ 00010 public interface IFilterData 00011 { 00012 /**** 00013 * Filter data given an element. If the element is not to be filtered, it returns true 00014 * @param element : element to be filtered 00015 * 00016 * @return true if the element can pass. false otherwise 00017 */ 00018 public boolean select(String element); 00019 00020 public boolean isFilterEnabled(); 00021 00022 public FilterAttribute getFilterAttribute(String element); 00023 }