2 * Copyright (C) 2013 Red Hat, Inc.
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
8 * Authors : Madhu Venugopal, Brent Salisbury
11 package org.opendaylight.ovsdb.plugin.internal;
13 import javax.xml.bind.annotation.XmlAccessType;
14 import javax.xml.bind.annotation.XmlAccessorType;
15 import javax.xml.bind.annotation.XmlElement;
16 import javax.xml.bind.annotation.XmlRootElement;
18 import org.opendaylight.controller.sal.core.Property;
21 @XmlAccessorType(XmlAccessType.NONE)
22 public class L4PortProperty extends Property implements Cloneable {
23 private static final long serialVersionUID = 1L;
24 @XmlElement(name="value")
25 private final int port;
26 public static final String name = "Port";
29 * Private constructor used for JAXB mapping
31 private L4PortProperty() {
36 public L4PortProperty(int port) {
42 public String getStringValue() {
47 public Property clone() {
48 return new L4PortProperty(port);
51 public int getPort() {