Last change
on this file since 8798 was 8798, checked in by schweer, 19 years ago |
filtering should work now (including multivalues); changed database based on Annika's suggestions
|
-
Property svn:keywords
set to
Author Date Id Revision
|
File size:
847 bytes
|
Rev | Line | |
---|
[8609] | 1 | /*
|
---|
| 2 | * Created on Nov 1, 2004
|
---|
| 3 | * Copyright (C) Andrea Schweer, 2004
|
---|
| 4 | *
|
---|
| 5 | * This file is part of the Greenstone Alerting Service.
|
---|
| 6 | * Refer to the COPYING file in the base directory of this package
|
---|
| 7 | * for licensing information.
|
---|
| 8 | */
|
---|
| 9 | package org.greenstone.gsdlas.profiles;
|
---|
| 10 |
|
---|
| 11 | import java.util.*;
|
---|
| 12 | import java.util.Set;
|
---|
| 13 | import java.util.TreeSet;
|
---|
| 14 |
|
---|
| 15 | /**
|
---|
| 16 | * @author schweer
|
---|
| 17 | *
|
---|
| 18 | * TODO To change the template for this generated type comment go to Window -
|
---|
| 19 | * Preferences - Java - Code Style - Code Templates
|
---|
| 20 | */
|
---|
| 21 | public class QueryPredicate extends Predicate {
|
---|
| 22 |
|
---|
| 23 | private Set containsWords = new TreeSet();
|
---|
| 24 | private Set notContainsWords = new TreeSet();
|
---|
| 25 |
|
---|
| 26 | public QueryPredicate (String field, String query) {
|
---|
| 27 | super.field = field;
|
---|
| 28 | super.value = query;
|
---|
| 29 | }
|
---|
| 30 | public boolean isSatisfied(Map event) {
|
---|
| 31 | return true;
|
---|
| 32 | }
|
---|
| 33 | } |
---|
Note:
See
TracBrowser
for help on using the repository browser.