Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to 'org.eclipse.rmf.reqif10.pror.tests/src/org/eclipse/rmf/reqif10/pror/testframework/Filter.java')
-rw-r--r--org.eclipse.rmf.reqif10.pror.tests/src/org/eclipse/rmf/reqif10/pror/testframework/Filter.java34
1 files changed, 34 insertions, 0 deletions
diff --git a/org.eclipse.rmf.reqif10.pror.tests/src/org/eclipse/rmf/reqif10/pror/testframework/Filter.java b/org.eclipse.rmf.reqif10.pror.tests/src/org/eclipse/rmf/reqif10/pror/testframework/Filter.java
new file mode 100644
index 00000000..afe8fcc5
--- /dev/null
+++ b/org.eclipse.rmf.reqif10.pror.tests/src/org/eclipse/rmf/reqif10/pror/testframework/Filter.java
@@ -0,0 +1,34 @@
+/*******************************************************************************
+ * Copyright (c) 2011 Formal Mind GmbH and University of Dusseldorf.
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * Michael Jastram - initial API and implementation
+ ******************************************************************************/
+/**
+ *
+ */
+package org.eclipse.rmf.reqif10.pror.testframework;
+
+import org.eclipse.emf.common.notify.Notification;
+
+/**
+ * I can't believe that there is no Filter Interface in the JDK! Or am I blind?
+ *
+ * @author jastram
+ */
+public interface Filter {
+
+ /**
+ * Inspects the notification and decides whether it should be processed
+ * further. This is typically an equals test against
+ * {@link Notification#getNotifier()}.
+ *
+ * @return true if the notification shall be accepted.
+ */
+ public boolean accept(Notification notification);
+
+}

Back to the top