KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > example > HelloResult


1 package example;
2
3 import java.io.Serializable JavaDoc;
4
5 import javax.xml.bind.annotation.XmlElement;
6 import javax.xml.bind.annotation.XmlRootElement;
7
8 @XmlRootElement(name="hello")
9 public class HelloResult implements Serializable JavaDoc {
10
11   @XmlElement
12   public String JavaDoc value = "hello, world";
13
14   public String JavaDoc toString()
15   {
16     return value;
17   }
18 }
19
Popular Tags