Merge "BUG-2329 Add test for anyxmls inside rpc resonse for netcfon-connector"
[controller.git] / opendaylight / northbound / staticrouting / src / main / java / org / opendaylight / controller / forwarding / staticrouting / northbound / StaticRoutes.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.forwarding.staticrouting.northbound;
10
11 import java.util.List;
12
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;
17
18
19 /**
20  * This class represents a list of static routes.
21  */
22 @XmlRootElement(name = "list")
23 @XmlAccessorType(XmlAccessType.NONE)
24 public class StaticRoutes {
25         @XmlElement
26         List<StaticRoute> staticRoute;
27         //To satisfy JAXB
28         private StaticRoutes() {
29
30         }
31
32         public StaticRoutes(List<StaticRoute> staticRoute) {
33                 this.staticRoute = staticRoute;
34         }
35
36         public List<StaticRoute> getFlowConfig() {
37                 return staticRoute;
38         }
39
40         public void setFlowConfig(List<StaticRoute> staticRoute) {
41                 this.staticRoute = staticRoute;
42         }
43 }