db24755a2985e396f2128a5420ad819c425a7397
[controller.git] / opendaylight / northbound / topology / src / main / java / org / opendaylight / controller / topology / northbound / TopologyUserLinks.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.topology.northbound;
10
11 import java.util.ArrayList;
12 import java.util.List;
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.XmlRootElement;
18
19 import org.opendaylight.controller.topologymanager.TopologyUserLinkConfig;
20
21 @XmlRootElement
22 @XmlAccessorType(XmlAccessType.NONE)
23
24 public class TopologyUserLinks {
25         @XmlElement
26         List<TopologyUserLinkConfig> userLinks;
27
28         //To satisfy JAXB
29         private TopologyUserLinks() {
30
31         }
32
33         public List<TopologyUserLinkConfig> getUserLinks() {
34                 return userLinks;
35         }
36
37         public void setUserLinks(List<TopologyUserLinkConfig> userLinks) {
38                 this.userLinks = userLinks;
39         }
40
41         public TopologyUserLinks(List<TopologyUserLinkConfig> userLinks) {
42                 this.userLinks = new ArrayList<TopologyUserLinkConfig>(userLinks);
43         }
44 }