View Javadoc

1   package com.atlassian.plugins.rest.sample.entities;
2   
3   import javax.xml.bind.annotation.XmlAttribute;
4   import javax.xml.bind.annotation.XmlRootElement;
5   
6   /**
7    * A simple Pear
8    */
9   @XmlRootElement
10  public class Pear {
11      @XmlAttribute
12      private String name;
13  
14      public Pear() {
15      }
16  
17      public Pear(String name) {
18          this.name = name;
19      }
20  
21      public String getName() {
22          return name;
23      }
24  }