Merge "Add tests to increase NB-API coverage"
[ovsdb.git] / ovsdb / src / main / java / org / opendaylight / ovsdb / lib / message / operations / Operation.java
1 /*
2  * Copyright (C) 2013 Red Hat, Inc.
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  * Authors : Madhu Venugopal
9  */
10 package org.opendaylight.ovsdb.lib.message.operations;
11
12 import com.fasterxml.jackson.annotation.JsonIgnore;
13
14 public abstract class Operation {
15     private String op;
16     @JsonIgnore
17     // Just a simple way to retain the result of a transact operation which the client can refer to.
18     private OperationResult result;
19
20     public String getOp() {
21         return op;
22     }
23
24     public void setOp(String op) {
25         this.op = op;
26     }
27
28     public OperationResult getResult() {
29         return result;
30     }
31
32     public void setResult(OperationResult result) {
33         this.result = result;
34     }
35
36     @Override
37     public String toString() {
38         return "Operation [op=" + op + ", result=" + result + "]";
39     }
40 }