KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > example > Movie


1 package example;
2
3 import java.util.*;
4
5 import javax.xml.bind.annotation.*;
6
7 @XmlRootElement
8 public class Movie {
9   @XmlElement(name="title")
10   private String JavaDoc _title;
11     
12   @XmlElement(name="star")
13   private ArrayList<String JavaDoc> _starList = new ArrayList<String JavaDoc>();
14
15   public String JavaDoc getTitle()
16   {
17     return _title;
18   }
19
20   public ArrayList<String JavaDoc> getStarList()
21   {
22     return _starList;
23   }
24 }
25
Popular Tags