View Javadoc

1   package com.atlassian.plugins.rest.sample.expansion.entity;
2   
3   import com.atlassian.plugins.rest.common.expand.Expandable;
4   
5   import static javax.xml.bind.annotation.XmlAccessType.FIELD;
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  public class Game {
15      @XmlAttribute
16      private String name;
17  
18      @XmlElement
19      @Expandable
20      private Players players;
21  
22  
23      private Game() {
24      }
25  
26      public Game(String name) {
27          this.name = name;
28      }
29  
30      public void setPlayers(Players players) {
31          this.players = players;
32      }
33  
34      public String getName() {
35          return name;
36      }
37  
38      public Players getPlayers() {
39          return players;
40      }
41  }