Bug 5540 - ConvertorManager base
[openflowplugin.git] / openflowplugin / src / main / java / org / opendaylight / openflowplugin / openflow / md / core / sal / convertor / common / ConvertorData.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.common;
10
11 /**
12  * The base class for all convertor data.
13  */
14 public abstract class ConvertorData {
15     private short version;
16
17     /**
18      * Instantiates a new Convertor data.
19      *
20      * @param version the version
21      */
22     public ConvertorData(final short version) {
23         this.version = version;
24     }
25
26     /**
27      * Gets Openflow version.
28      *
29      * @return the version
30      */
31     public short getVersion() {
32         return version;
33     }
34 }