01: /*
02: * ContainsNotComparator.java
03: *
04: * This file is part of SQL Workbench/J, http://www.sql-workbench.net
05: *
06: * Copyright 2002-2008, Thomas Kellerer
07: * No part of this code maybe reused without the permission of the author
08: *
09: * To contact the author please send an email to: support@sql-workbench.net
10: *
11: */
12: package workbench.storage.filter;
13:
14: /**
15: * @author support@sql-workbench.net
16: */
17: public class ContainsNotComparator extends ContainsComparator {
18: public ContainsNotComparator() {
19: }
20:
21: public String getName() {
22: return "Contains not";
23: }
24:
25: public String getOperator() {
26: return "contains not";
27: }
28:
29: public boolean evaluate(Object reference, Object value,
30: boolean ignoreCase) {
31: return !super .evaluate(reference, value, ignoreCase);
32: }
33:
34: public boolean equals(Object other) {
35: return (other instanceof ContainsNotComparator);
36: }
37: }
|