1 package org.readium.r2_streamer.model.publication.link;
3 import org.readium.r2_streamer.model.publication.SMIL.MediaOverlays;
5 import java.io.Serializable;
6 import java.util.ArrayList;
10 * Created by Shrikant Badwaik on 25-Jan-17.
13 public class Link implements Serializable {
14 private static final long serialVersionUID = 7612342295622776147L;
17 public List<String> rel = new ArrayList<>();
18 public String typeLink;
21 public String bookTitle;
22 public String chapterTitle;
24 public List<String> properties;
25 public String duration;
26 public boolean templated;
27 public MediaOverlays mediaOverlay;
30 this.properties = new ArrayList<>();
31 this.mediaOverlay = new MediaOverlays();
34 public Link(String href, String rel, String typeLink) {
37 this.typeLink = typeLink;
41 public String toString() {
44 ", mediaOverlay=" + mediaOverlay +
45 ", href='" + href + '\'' +
47 ", typeLink='" + typeLink + '\'' +
48 ", height=" + height +
50 ", bookTitle='" + bookTitle + '\'' +
51 ", chapterTitle='" + chapterTitle + '\'' +
52 ", type='" + type + '\'' +
53 ", properties=" + properties +
54 ", duration='" + duration + '\'' +
55 ", templated=" + templated +
59 public String getId() {
63 public void setId(String id) {
67 public String getHref() {
71 public void setHref(String href) {
75 public List<String> getRel() {
79 public void setRel(List<String> rel) {
83 public String getTypeLink() {
87 public void setTypeLink(String typeLink) {
88 this.typeLink = typeLink;
91 public int getHeight() {
95 public void setHeight(int height) {
99 public int getWidth() {
103 public void setWidth(int width) {
107 public String getBookTitle() {
111 public void setBookTitle(String bookTitle) {
112 this.bookTitle = bookTitle;
115 public String getChapterTitle() {
119 public void setChapterTitle(String chapterTitle) {
120 this.chapterTitle = chapterTitle;
123 public String getType() {
127 public void setType(String type) {
131 public List<String> getProperties() {
135 public void setProperties(List<String> properties) {
136 this.properties = properties;
139 public String getDuration() {
143 public void setDuration(String duration) {
144 this.duration = duration;
147 public boolean isTemplated() {
151 public void setTemplated(boolean templated) {
152 this.templated = templated;