OpenDaylight Controller functional modules.
[controller.git] / opendaylight / northbound / switchmanager / src / main / java / org / opendaylight / controller / switchmanager / northbound / NodeConnectorProperties.java
1
2 /*
3  * Copyright (c) 2013 Cisco Systems, Inc. and others.  All rights reserved.
4  *
5  * This program and the accompanying materials are made available under the
6  * terms of the Eclipse Public License v1.0 which accompanies this distribution,
7  * and is available at http://www.eclipse.org/legal/epl-v10.html
8  */
9
10 package org.opendaylight.controller.switchmanager.northbound;
11
12 import java.util.Set;
13 import javax.xml.bind.annotation.XmlRootElement;
14 import javax.xml.bind.annotation.XmlElementRef;
15 import javax.xml.bind.annotation.XmlAccessType;
16 import javax.xml.bind.annotation.XmlAccessorType;
17 import javax.xml.bind.annotation.XmlElement;
18 import javax.xml.bind.annotation.XmlElementWrapper;
19
20 import org.opendaylight.controller.sal.core.NodeConnector;
21 import org.opendaylight.controller.sal.core.Property;
22
23 /**
24  * The class describes set of properties attached to a node connector
25  */
26
27 @XmlRootElement
28 @XmlAccessorType(XmlAccessType.NONE)
29 public class NodeConnectorProperties {
30     @XmlElement
31     private NodeConnector nodeconnector;
32     @XmlElementRef
33     @XmlElementWrapper
34     private Set<Property> properties;
35
36     // JAXB required constructor
37     private NodeConnectorProperties() {
38         this.nodeconnector = null;
39         this.properties = null;
40     }
41
42     public NodeConnectorProperties(NodeConnector nodeconnector, Set<Property> properties) {
43         this.nodeconnector = nodeconnector;
44         this.properties = properties;
45     }
46
47     public Set<Property> getProperties() {
48         return properties;
49     }
50
51     public void setProperties(Set<Property> properties) {
52         this.properties = properties;
53     }
54
55     public NodeConnector getNodeConnector() {
56         return nodeconnector;
57     }
58
59     public void setNodeConnector(NodeConnector nodeconnector) {
60         this.nodeconnector = nodeconnector;
61     }
62 }