1   package com.atlassian.plugins.rest.test;
2   
3   import com.atlassian.plugins.rest.common.expand.Expander;
4   
5   import static javax.xml.bind.annotation.XmlAccessType.*;
6   import javax.xml.bind.annotation.XmlAccessorType;
7   import javax.xml.bind.annotation.XmlAttribute;
8   import javax.xml.bind.annotation.XmlElement;
9   import javax.xml.bind.annotation.XmlRootElement;
10  
11  @XmlRootElement
12  @XmlAccessorType(FIELD)
13  @Expander(FavouriteDrinkExpander.class)
14  public class FavouriteDrink
15  {
16      @XmlAttribute
17      private final String name;
18  
19      @XmlElement
20      private String description;
21  
22      private FavouriteDrink()
23      {
24          this(null);
25      }
26  
27      public FavouriteDrink(String name)
28      {
29          this.name = name;
30      }
31  
32      public String getName()
33      {
34          return name;
35      }
36  
37      public String getDescription()
38      {
39          return description;
40      }
41  
42      public void setDescription(String description)
43      {
44          this.description = description;
45      }
46  }