Merge "BUG-2329 Add test for anyxmls inside rpc resonse for netcfon-connector"
[controller.git] / opendaylight / adsal / northbound / bundlescanner / implementation / src / test / java / bundle_sub1 / Zoo.java
1 /*
2  * Copyright (c) 2014 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 package bundle_sub1;
9
10 import javax.xml.bind.annotation.XmlElementRef;
11 import javax.xml.bind.annotation.XmlRootElement;
12
13 import bundle_base.Animal;
14 import bundle_base.Mammal;
15
16
17 @XmlRootElement
18 public class Zoo {
19     private Animal creature;
20
21     @XmlElementRef
22     public Animal getCreature() {
23         return creature;
24     }
25
26     public void setCreature(Animal creature) {
27         this.creature = creature;
28     }
29
30     public Zoo() {
31         creature = new Mammal();
32     }
33 }