KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > example > Theater


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