/** * Checks if a path is filtered out of the filter or not.<p> * * @param path the path of a resource to check * @return true if the name matches one of the given filter patterns */ public boolean isFiltered(String path) { for (int j = 0; j < m_filterRules.size(); j++) { Pattern pattern = m_filterRules.get(j); if (isPartialMatch(pattern, path)) { return m_type.equals(TYPE_EXCLUDE); } } return m_type.equals(TYPE_INCLUDE); }
/** * Checks if a path is filtered out of the filter or not.<p> * * @param path the path of a resource to check * @return true if the name matches one of the given filter patterns */ public boolean isFiltered(String path) { for (int j = 0; j < m_filterRules.size(); j++) { Pattern pattern = (Pattern)m_filterRules.get(j); if (isPartialMatch(pattern, path)) { return m_type.equals(TYPE_EXCLUDE); } } return m_type.equals(TYPE_INCLUDE); }