Classes in this File | Line Coverage | Branch Coverage | Complexity | ||||
Pages |
|
| 1.0;1 |
1 | package org.jtheque.primary.utils.web.analyzers.generic; | |
2 | ||
3 | /* | |
4 | * This file is part of JTheque. | |
5 | * | |
6 | * JTheque is free software: you can redistribute it and/or modify | |
7 | * it under the terms of the GNU General Public License as published by | |
8 | * the Free Software Foundation, either version 3 of the License. | |
9 | * | |
10 | * JTheque is distributed in the hope that it will be useful, | |
11 | * but WITHOUT ANY WARRANTY; without even the implied warranty of | |
12 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | |
13 | * GNU General Public License for more details. | |
14 | * | |
15 | * You should have received a copy of the GNU General Public License | |
16 | * along with JTheque. If not, see <http://www.gnu.org/licenses/>. | |
17 | */ | |
18 | ||
19 | /** | |
20 | * A container for the pages of a generic web getter. | |
21 | * | |
22 | * @author Baptiste Wicht | |
23 | */ | |
24 | 0 | public final class Pages { |
25 | private Page filmsPage; | |
26 | private Page actorsPage; | |
27 | private Page resultsPage; | |
28 | ||
29 | /** | |
30 | * Return the page for the Films page. | |
31 | * | |
32 | * @return The page for the films page. | |
33 | */ | |
34 | public Page getFilmsPage(){ | |
35 | 0 | return filmsPage; |
36 | } | |
37 | ||
38 | /** | |
39 | * Set the films page. | |
40 | * | |
41 | * @param filmsPage The page for the films. | |
42 | */ | |
43 | public void setFilmsPage(Page filmsPage){ | |
44 | 0 | this.filmsPage = filmsPage; |
45 | 0 | } |
46 | ||
47 | /** | |
48 | * Return the page for the actors if there is one. | |
49 | * | |
50 | * @return The page for the actors else null if there is no page for the actors. | |
51 | */ | |
52 | public Page getActorsPage(){ | |
53 | 0 | return actorsPage; |
54 | } | |
55 | ||
56 | /** | |
57 | * Set the actors page. | |
58 | * | |
59 | * @param actorsPage The page for the actors. | |
60 | */ | |
61 | public void setActorsPage(Page actorsPage){ | |
62 | 0 | this.actorsPage = actorsPage; |
63 | 0 | } |
64 | ||
65 | /** | |
66 | * Return the page for the results. | |
67 | * | |
68 | * @return The page for the results. | |
69 | */ | |
70 | public Page getResultsPage(){ | |
71 | 0 | return resultsPage; |
72 | } | |
73 | ||
74 | /** | |
75 | * Set the results page. | |
76 | * | |
77 | * @param resultsPage The page for the results. | |
78 | */ | |
79 | public void setResultsPage(Page resultsPage){ | |
80 | 0 | this.resultsPage = resultsPage; |
81 | 0 | } |
82 | } |