Adjust to odlparent 3 Checkstyle settings
[genius.git] / interfacemanager / interfacemanager-api / src / main / java / org / opendaylight / genius / interfacemanager / globals / VlanInterfaceInfo.java
1 /*
2  * Copyright (c) 2016 Ericsson India Global Services Pvt Ltd. 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 package org.opendaylight.genius.interfacemanager.globals;
9
10 import java.math.BigInteger;
11
12 public class VlanInterfaceInfo extends InterfaceInfo {
13
14     private static final long serialVersionUID = 1L;
15     private short vlanId;
16     private boolean isVlanTransparent;
17
18     public VlanInterfaceInfo(BigInteger dpId, String portName, short vlanId) {
19         super(dpId, portName);
20         this.vlanId = vlanId;
21     }
22
23     public VlanInterfaceInfo(String portName, short vlanId) {
24         super(portName);
25         this.vlanId = vlanId;
26     }
27
28     public short getVlanId() {
29         return vlanId;
30     }
31
32     public void setVlanId(short vlanId) {
33         this.vlanId = vlanId;
34     }
35
36     public boolean isVlanTransparent() {
37         return isVlanTransparent;
38     }
39
40     public void setVlanTransparent(boolean vlanTransparent) {
41         this.isVlanTransparent = vlanTransparent;
42     }
43 }