Merge "BUG-2329 Add test for anyxmls inside rpc resonse for netcfon-connector"
[controller.git] / opendaylight / northbound / connectionmanager / src / main / java / org / opendaylight / controller / connectionmanager / northbound / Nodes.java
1 package org.opendaylight.controller.connectionmanager.northbound;
2 /*
3  * Copyright (c) 2013 Red Hat, 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 import java.util.Set;
11
12 import javax.xml.bind.annotation.XmlAccessType;
13 import javax.xml.bind.annotation.XmlAccessorType;
14 import javax.xml.bind.annotation.XmlElement;
15 import javax.xml.bind.annotation.XmlRootElement;
16
17 import org.opendaylight.controller.sal.core.Node;
18
19 @XmlRootElement(name="list")
20 @XmlAccessorType(XmlAccessType.NONE)
21
22 public class Nodes {
23     @XmlElement
24     Set<Node> node;
25     //To satisfy JAXB
26     private Nodes() {
27     }
28
29     public Nodes(Set<Node> nodes) {
30         this.node = nodes;
31     }
32
33     public Set<Node> getNode() {
34         return node;
35     }
36
37     public void setNode(Set<Node> nodes) {
38         this.node = nodes;
39     }
40 }