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.iiif.presentation.model.basic;
20  
21  import java.util.List;
22  
23  import org.mycore.iiif.presentation.model.MCRIIIFPresentationBase;
24  import org.mycore.iiif.presentation.model.additional.MCRIIIFAnnotationBase;
25  import org.mycore.iiif.presentation.model.attributes.MCRIIIFMetadata;
26  import org.mycore.iiif.presentation.model.attributes.MCRIIIFViewingDirection;
27  
28  public class MCRIIIFSequence extends MCRIIIFPresentationBase {
29  
30      public static final String TYPE = "sc:Sequence";
31  
32      public List<MCRIIIFCanvas> canvases;
33  
34      public List<MCRIIIFMetadata> metadata;
35  
36      protected MCRIIIFReference startCanvas;
37  
38      private transient MCRIIIFCanvas origStartCanvas;
39  
40      private String description;
41  
42      private String label;
43  
44      private MCRIIIFAnnotationBase thumbnail = null;
45  
46      private MCRIIIFViewingDirection viewingDirection = null;
47  
48      public MCRIIIFSequence(String id) {
49          super(id, TYPE, API_PRESENTATION_2);
50      }
51  
52      public MCRIIIFCanvas getStartCanvas() {
53          return origStartCanvas;
54      }
55  
56      public void setStartCanvas(MCRIIIFCanvas startCanvas) {
57          this.origStartCanvas = startCanvas;
58          this.startCanvas = new MCRIIIFReference(startCanvas);
59      }
60  
61      public String getDescription() {
62          return description;
63      }
64  
65      public void setDescription(String description) {
66          this.description = description;
67      }
68  
69      public String getLabel() {
70          return label;
71      }
72  
73      public void setLabel(String label) {
74          this.label = label;
75      }
76  
77      public MCRIIIFAnnotationBase getThumbnail() {
78          return thumbnail;
79      }
80  
81      public void setThumbnail(MCRIIIFAnnotationBase thumbnail) {
82          this.thumbnail = thumbnail;
83      }
84  
85      public MCRIIIFViewingDirection getViewingDirection() {
86          return viewingDirection;
87      }
88  
89      public void setViewingDirection(MCRIIIFViewingDirection viewingDirection) {
90          this.viewingDirection = viewingDirection;
91      }
92  
93  }