View Javadoc
1   /*
2    * This file is part of ***  M y C o R e  ***
3    * See http://www.mycore.de/ for details.
4    *
5    * MyCoRe is free software: you can redistribute it and/or modify
6    * it under the terms of the GNU General Public License as published by
7    * the Free Software Foundation, either version 3 of the License, or
8    * (at your option) any later version.
9    *
10   * MyCoRe 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 MyCoRe.  If not, see <http://www.gnu.org/licenses/>.
17   */
18  
19  package org.mycore.mets.model.simple;
20  
21  import java.util.ArrayList;
22  import java.util.List;
23  
24  public class MCRMetsPage {
25      private String id;
26  
27      private String orderLabel;
28  
29      private String contentIds;
30  
31      private Boolean hidden;
32  
33      private List<MCRMetsFile> fileList;
34  
35      public MCRMetsPage(String id, String orderLabel, String contentIds) {
36          this();
37          this.id = id;
38          this.orderLabel = orderLabel;
39          this.contentIds = contentIds;
40      }
41  
42      public void setId(String id) {
43          this.id = id;
44      }
45  
46      public String getId() {
47          return id;
48      }
49  
50      public MCRMetsPage() {
51          this.fileList = new ArrayList<>();
52      }
53  
54      public List<MCRMetsFile> getFileList() {
55          return fileList;
56      }
57  
58      public String getOrderLabel() {
59          return orderLabel;
60      }
61  
62      public void setOrderLabel(String orderLabel) {
63          if (orderLabel == "") {
64              orderLabel = null;
65          }
66          this.orderLabel = orderLabel;
67      }
68  
69      public String getContentIds() {
70          return contentIds;
71      }
72  
73      public void setContentIds(String contentIds) {
74          if (contentIds == "") {
75              contentIds = null;
76          }
77          this.contentIds = contentIds;
78      }
79  
80      public Boolean isHidden() {
81          return hidden;
82      }
83  
84      public void setHidden(Boolean hidden) {
85          this.hidden = hidden;
86      }
87  }