package de.retest.recheck.ignore;

import java.util.List;

import de.retest.recheck.ui.descriptors.Element;
import de.retest.recheck.ui.diff.AttributeDifference;

public class CompoundFilter implements Filter {

	private final List<Filter> filters;

	public CompoundFilter( final List<Filter> filters ) {
		this.filters = filters;
	}

	@Override
	public boolean matches( final Element element ) {
		for ( final Filter filter : filters ) {
			if ( filter.matches( element ) ) {
				return true;
			}
		}
		return false;
	}

	@Override
	public boolean matches( final Element element, final AttributeDifference attributeDifference ) {
		for ( final Filter filter : filters ) {
			if ( filter.matches( element, attributeDifference ) ) {
				return true;
			}
		}
		return false;
	}

}

@@ -772,10 +772,68 @@
 se;%0A%09%7D%0A%0A
+%09public List%3CFilter%3E getFilters() %7B%0A%09%09return filters;%0A%09%7D%0A%0A
 %7D%0A

Add getter for enclosed filters