OpenDaylight Controller functional modules.
[controller.git] / opendaylight / northbound / topology / src / main / java / org / opendaylight / controller / topology / northbound / EdgeProperties.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.topology.northbound;
11
12 import java.util.Set;
13
14 import javax.xml.bind.annotation.XmlAccessType;
15 import javax.xml.bind.annotation.XmlAccessorType;
16 import javax.xml.bind.annotation.XmlElement;
17 import javax.xml.bind.annotation.XmlElementRef;
18 import javax.xml.bind.annotation.XmlElementWrapper;
19 import javax.xml.bind.annotation.XmlRootElement;
20
21 import org.opendaylight.controller.sal.core.Edge;
22 import org.opendaylight.controller.sal.core.Property;
23
24 @XmlRootElement
25 @XmlAccessorType(XmlAccessType.NONE)
26 public class EdgeProperties {
27     @XmlElement
28     private Edge edge;
29     @XmlElementRef
30     @XmlElementWrapper
31     private Set<Property> properties;
32
33     // JAXB required constructor
34     private EdgeProperties() {
35         this.edge = null;
36         this.properties = null;
37     }
38
39     public EdgeProperties(Edge e, Set<Property> properties) {
40         this.edge = e;
41         this.properties = properties;
42     }
43
44     public Set<Property> getProperties() {
45         return properties;
46     }
47
48     public void setProperties(Set<Property> properties) {
49         this.properties = properties;
50     }
51
52     public Edge getEdge() {
53         return edge;
54     }
55
56     public void setEdge(Edge edge) {
57         this.edge = edge;
58     }
59 }