View Javadoc

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   
7   import javax.xml.bind.annotation.XmlAccessorType;
8   import javax.xml.bind.annotation.XmlAttribute;
9   import javax.xml.bind.annotation.XmlElement;
10  import javax.xml.bind.annotation.XmlRootElement;
11  
12  @XmlRootElement
13  @XmlAccessorType(FIELD)
14  @Expander(FavouriteDrinkExpander.class)
15  public class FavouriteDrink {
16      @XmlAttribute
17      private final String name;
18  
19      @XmlElement
20      private String description;
21  
22      private FavouriteDrink() {
23          this(null);
24      }
25  
26      public FavouriteDrink(String name) {
27          this.name = name;
28      }
29  
30      public String getName() {
31          return name;
32      }
33  
34      public String getDescription() {
35          return description;
36      }
37  
38      public void setDescription(String description) {
39          this.description = description;
40      }
41  }