01: package example;
02:
03: import java.util.*;
04:
05: import javax.xml.bind.annotation.*;
06:
07: @XmlRootElement
08: public class Theater {
09: @XmlElement(name="name")
10: private String _name;
11:
12: @XmlElement(name="movie")
13: private ArrayList<Movie> _movieList = new ArrayList<Movie>();
14:
15: public String getName() {
16: return _name;
17: }
18:
19: public ArrayList<Movie> getMovieList() {
20: return _movieList;
21: }
22: }
|