Refactor SubnetConfig
[controller.git] / opendaylight / web / devices / src / main / java / org / opendaylight / controller / devices / web / PortJsonBean.java
1 /*
2  * Copyright (c) 2013 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.controller.devices.web;
10
11 public class PortJsonBean {
12     String portId;
13     String portName;
14     String internalPortName;
15
16     public PortJsonBean() {
17         this.portId = null;
18         this.portName = null;
19         this.internalPortName = null;
20     }
21
22     public PortJsonBean(String id, String name, String internalName) {
23         this.portId = id;
24         this.portName = (name == null) ? internalName : name;
25         this.internalPortName = internalName;
26     }
27 }