Bug 5540 - ActionConvertor, ActionResponseConvertor
[openflowplugin.git] / openflowplugin / src / main / java / org / opendaylight / openflowplugin / openflow / md / core / sal / convertor / action / data / ActionConvertorData.java
1 /*
2  * Copyright (c) 2016 Cisco Systems, 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.openflowplugin.openflow.md.core.sal.convertor.action.data;
10
11 import org.opendaylight.openflowplugin.openflow.md.core.sal.convertor.data.VersionDatapathIdConvertorData;
12
13 /**
14  * Convertor data used in {@link org.opendaylight.openflowplugin.openflow.md.core.sal.convertor.action.ActionConvertor}
15  * containing Openflow version, datapath ID and IP protocol from flow
16  */
17 public class ActionConvertorData extends VersionDatapathIdConvertorData {
18     private Short ipProtocol;
19
20     /**
21      * Instantiates a new Action convertor data.
22      *
23      * @param version the version
24      */
25     public ActionConvertorData(short version) {
26         super(version);
27     }
28
29     /**
30      * Gets ip protocol.
31      *
32      * @return the ip protocol
33      */
34     public Short getIpProtocol() {
35         return ipProtocol;
36     }
37
38     /**
39      * Sets ip protocol.
40      *
41      * @param ipProtocol the ip protocol
42      */
43     public void setIpProtocol(Short ipProtocol) {
44         this.ipProtocol = ipProtocol;
45     }
46 }