]> git.basschouten.com Git - openhab-addons.git/blob
de68b8862e65b46c7658aaa576303caa40deede9
[openhab-addons.git] /
1 /**
2  * Copyright (c) 2010-2023 Contributors to the openHAB project
3  *
4  * See the NOTICE file(s) distributed with this work for additional
5  * information.
6  *
7  * This program and the accompanying materials are made available under the
8  * terms of the Eclipse Public License 2.0 which is available at
9  * http://www.eclipse.org/legal/epl-2.0
10  *
11  * SPDX-License-Identifier: EPL-2.0
12  */
13 package org.openhab.binding.icalendar.internal.logic;
14
15 import org.eclipse.jdt.annotation.NonNullByDefault;
16
17 /**
18  * Transport class for a simple text filter.
19  *
20  * @author Michael Wodniok - Initial contribution
21  */
22 @NonNullByDefault
23 public class EventTextFilter {
24     public enum Type {
25         TEXT,
26         REGEX
27     }
28
29     public enum Field {
30         SUMMARY,
31         DESCRIPTION,
32         COMMENT,
33         CONTACT,
34         LOCATION
35     }
36
37     public Field field;
38     public String value;
39     public Type type;
40
41     public EventTextFilter(Field field, String value, Type type) {
42         this.field = field;
43         this.value = value;
44         this.type = type;
45     }
46 }