/[projects]/miscJava/Test4Simple/src/main/java/dk/thoerup/webservice/TestResponse.java
ViewVC logotype

Contents of /miscJava/Test4Simple/src/main/java/dk/thoerup/webservice/TestResponse.java

Parent Directory Parent Directory | Revision Log Revision Log


Revision 2518 - (show annotations) (download)
Tue Apr 28 05:59:41 2015 UTC (9 years ago) by torben
File size: 681 byte(s)
use lowercase name for root xml note
1 package dk.thoerup.webservice;
2
3 import java.io.Serializable;
4
5 import javax.xml.bind.annotation.XmlRootElement;
6
7 @XmlRootElement(name = "testresponse")
8 public class TestResponse implements Serializable {
9 private static final long serialVersionUID = 1L;
10
11 private int id;
12 private String name;
13
14 public TestResponse() { //no-arg constructor MUST be present for moxy to work
15 }
16
17 public TestResponse(int i, String n) {
18 this.id = i;
19 this.name = n;
20 }
21
22 public int getId() {
23 return id;
24 }
25
26 public String getName() {
27 return name;
28 }
29
30 public void setId(int i) {
31 this.id = i;
32 }
33
34 public void setName(String n) {
35 this.name = n;
36 }
37 }

  ViewVC Help
Powered by ViewVC 1.1.20