Updating fix for bug 3989 based on discussion in OVSDB meeting
[ovsdb.git] / library / impl / src / main / java / org / opendaylight / ovsdb / lib / notation / Condition.java
1 /*
2  * Copyright (c) 2013, 2015 Red Hat, Inc. and others. All rights reserved.
3  *
4  * This program and the accompanying materials are made available under the
5  * terms of the Eclipse Public License v1.0 which accompanies this distribution,
6  * and is available at http://www.eclipse.org/legal/epl-v10.html
7  */
8
9 package org.opendaylight.ovsdb.lib.notation;
10
11 import org.opendaylight.ovsdb.lib.notation.json.ConditionSerializer;
12
13 import com.fasterxml.jackson.databind.annotation.JsonSerialize;
14 @JsonSerialize(using = ConditionSerializer.class)
15
16 public class Condition {
17     String column;
18     Function function;
19     Object value;
20
21     public Condition(String column, Function function, Object value) {
22         super();
23         this.column = column;
24         this.function = function;
25         this.value = value;
26     }
27
28     public String getColumn() {
29         return column;
30     }
31
32     public void setColumn(String column) {
33         this.column = column;
34     }
35
36     public Function getFunction() {
37         return function;
38     }
39
40     public void setFunction(Function function) {
41         this.function = function;
42     }
43
44     public Object getValue() {
45         return value;
46     }
47
48     public void setValue(Object value) {
49         this.value = value;
50     }
51 }