Address @XmlSeeAlso limitation. Provide the ability to inject the JAXB types
[controller.git] / opendaylight / northbound / bundlescanner / implementation / src / test / java / bundle_sub1 / Zoo.java
1 package bundle_sub1;
2
3 import javax.xml.bind.annotation.XmlElementRef;
4 import javax.xml.bind.annotation.XmlRootElement;
5
6 import bundle_base.Animal;
7 import bundle_base.Mammal;
8
9
10 @XmlRootElement
11 public class Zoo {
12     private Animal creature;
13
14     @XmlElementRef
15     public Animal getCreature() {
16         return creature;
17     }
18
19     public void setCreature(Animal creature) {
20         this.creature = creature;
21     }
22
23     public Zoo() {
24         creature = new Mammal();
25     }
26 }