1 package org.readium.r2_streamer.model.publication.metadata;
3 import org.readium.r2_streamer.model.publication.subject.Subject;
4 import org.readium.r2_streamer.model.publication.contributor.Contributor;
5 import org.readium.r2_streamer.model.publication.rendition.Rendition;
7 import java.io.Serializable;
8 import java.util.ArrayList;
10 import java.util.List;
13 * Created by Shrikant Badwaik on 25-Jan-17.
16 public class MetaData implements Serializable {
17 private static final long serialVersionUID = 8526472295622776148L;
19 public String identifier;
21 public List<Contributor> creators;
22 public List<Contributor> translators;
23 public List<Contributor> editors;
24 public List<Contributor> artists;
25 public List<Contributor> illustrators;
26 public List<Contributor> letterers;
27 public List<Contributor> pencilers;
28 public List<Contributor> colorists;
29 public List<Contributor> inkers;
30 public List<Contributor> narrators;
31 public List<Contributor> contributors;
32 public List<Contributor> publishers;
33 public List<Contributor> imprints;
35 public List<String> languages;
37 public Date publicationDate;
38 public String description;
39 public String direction;
40 public Rendition rendition;
42 public List<String> epubType;
43 public List<String> rights;
44 public List<Subject> subjects;
46 private List<MetadataItem> otherMetadata;
49 this.rendition = new Rendition();
50 this.creators = new ArrayList<>();
51 this.translators = new ArrayList<>();
52 this.editors = new ArrayList<>();
53 this.artists = new ArrayList<>();
54 this.illustrators = new ArrayList<>();
55 this.letterers = new ArrayList<>();
56 this.pencilers = new ArrayList<>();
57 this.colorists = new ArrayList<>();
58 this.inkers = new ArrayList<>();
59 this.narrators = new ArrayList<>();
60 this.contributors = new ArrayList<>();
61 this.publishers = new ArrayList<>();
62 this.imprints = new ArrayList<>();
63 this.languages = new ArrayList<>();
64 this.epubType = new ArrayList<>();
65 this.rights = new ArrayList<>();
66 this.subjects = new ArrayList<>();
67 this.otherMetadata = new ArrayList<>();
70 public MetaData(String title, String identifier, List<Contributor> creators, List<Contributor> translators, List<Contributor> editors, List<Contributor> artists, List<Contributor> illustrators, List<Contributor> letterers, List<Contributor> pencilers, List<Contributor> colorists, List<Contributor> inkers, List<Contributor> narrators, List<Contributor> contributors, List<Contributor> publishers, List<Contributor> imprints, List<String> languages, Date modified, Date publicationDate, String description, String direction, Rendition rendition, String source, List<String> epubType, List<String> rights, List<Subject> subjects, List<MetadataItem> otherMetadata) {
72 this.identifier = identifier;
73 this.creators = creators;
74 this.translators = translators;
75 this.editors = editors;
76 this.artists = artists;
77 this.illustrators = illustrators;
78 this.letterers = letterers;
79 this.pencilers = pencilers;
80 this.colorists = colorists;
82 this.narrators = narrators;
83 this.contributors = contributors;
84 this.publishers = publishers;
85 this.imprints = imprints;
86 this.languages = languages;
87 this.modified = modified;
88 this.publicationDate = publicationDate;
89 this.description = description;
90 this.direction = "default"; // = direction;
91 this.rendition = rendition;
93 this.epubType = epubType;
95 this.subjects = subjects;
96 this.otherMetadata = otherMetadata;
100 public String toString() {
102 "title='" + title + '\'' +
103 ", identifier='" + identifier + '\'' +
104 ", creators=" + creators +
105 ", translators=" + translators +
106 ", editors=" + editors +
107 ", artists=" + artists +
108 ", illustrators=" + illustrators +
109 ", letterers=" + letterers +
110 ", pencilers=" + pencilers +
111 ", colorists=" + colorists +
112 ", inkers=" + inkers +
113 ", narrators=" + narrators +
114 ", contributors=" + contributors +
115 ", publishers=" + publishers +
116 ", imprints=" + imprints +
117 ", languages=" + languages +
118 ", modified=" + modified +
119 ", publicationDate=" + publicationDate +
120 ", description='" + description + '\'' +
121 ", direction='" + direction + '\'' +
122 ", rendition=" + rendition +
123 ", source='" + source + '\'' +
124 ", epubType=" + epubType +
125 ", rights=" + rights +
126 ", subjects=" + subjects +
127 ", otherMetadata=" + otherMetadata +
131 public String getTitle() {
135 public void setTitle(String title) {
139 public String getIdentifier() {
143 public void setIdentifier(String identifier) {
144 this.identifier = identifier;
147 public List<Contributor> getCreators() {
151 public void setCreators(List<Contributor> creators) {
152 this.creators = creators;
155 public List<Contributor> getTranslators() {
159 public void setTranslators(List<Contributor> translators) {
160 this.translators = translators;
163 public List<Contributor> getEditors() {
167 public void setEditors(List<Contributor> editors) {
168 this.editors = editors;
171 public List<Contributor> getArtists() {
175 public void setArtists(List<Contributor> artists) {
176 this.artists = artists;
179 public List<Contributor> getIllustrators() {
183 public void setIllustrators(List<Contributor> illustrators) {
184 this.illustrators = illustrators;
187 public List<Contributor> getLetterers() {
191 public void setLetterers(List<Contributor> letterers) {
192 this.letterers = letterers;
195 public List<Contributor> getPencilers() {
199 public void setPencilers(List<Contributor> pencilers) {
200 this.pencilers = pencilers;
203 public List<Contributor> getColorists() {
207 public void setColorists(List<Contributor> colorists) {
208 this.colorists = colorists;
211 public List<Contributor> getInkers() {
215 public void setInkers(List<Contributor> inkers) {
216 this.inkers = inkers;
219 public List<Contributor> getNarrators() {
223 public void setNarrators(List<Contributor> narrators) {
224 this.narrators = narrators;
227 public List<Contributor> getContributors() {
231 public void setContributors(List<Contributor> contributors) {
232 this.contributors = contributors;
235 public List<Contributor> getPublishers() {
239 public void setPublishers(List<Contributor> publishers) {
240 this.publishers = publishers;
243 public List<Contributor> getImprints() {
247 public void setImprints(List<Contributor> imprints) {
248 this.imprints = imprints;
251 public List<String> getLanguages() {
255 public void setLanguages(List<String> languages) {
256 this.languages = languages;
259 public Date getModified() {
263 public void setModified(Date modified) {
264 this.modified = modified;
267 public Date getPublicationDate() {
268 return publicationDate;
271 public void setPublicationDate(Date publicationDate) {
272 this.publicationDate = publicationDate;
275 public String getDescription() {
279 public void setDescription(String description) {
280 this.description = description;
283 public String getDirection() {
287 public void setDirection(String direction) {
288 this.direction = direction;
291 public Rendition getRendition() {
295 public void setRendition(Rendition rendition) {
296 this.rendition = rendition;
299 public String getSource() {
303 public void setSource(String source) {
304 this.source = source;
307 public List<String> getEpubType() {
311 public void setEpubType(List<String> epubType) {
312 this.epubType = epubType;
315 public List<String> getRights() {
319 public void setRights(List<String> rights) {
320 this.rights = rights;
323 public List<Subject> getSubjects() {
327 public void setSubjects(List<Subject> subjects) {
328 this.subjects = subjects;
331 public List<MetadataItem> getOtherMetadata() {
332 return otherMetadata;
335 public void setOtherMetadata(List<MetadataItem> otherMetadata) {
336 this.otherMetadata = otherMetadata;