X-Git-Url: https://git.mdrn.pl/wl-app.git/blobdiff_plain/48b2fe9f7c2dc3d9aeaaa6dbfb27c7da4f3235ff..269195b3729c1bdc22e9053ee4ebca667ea8549d:/Android/r2-streamer/r2-parser/src/main/java/org/readium/r2_streamer/model/publication/metadata/MetaData.java diff --git a/Android/r2-streamer/r2-parser/src/main/java/org/readium/r2_streamer/model/publication/metadata/MetaData.java b/Android/r2-streamer/r2-parser/src/main/java/org/readium/r2_streamer/model/publication/metadata/MetaData.java new file mode 100755 index 0000000..5eac667 --- /dev/null +++ b/Android/r2-streamer/r2-parser/src/main/java/org/readium/r2_streamer/model/publication/metadata/MetaData.java @@ -0,0 +1,338 @@ +package org.readium.r2_streamer.model.publication.metadata; + +import org.readium.r2_streamer.model.publication.subject.Subject; +import org.readium.r2_streamer.model.publication.contributor.Contributor; +import org.readium.r2_streamer.model.publication.rendition.Rendition; + +import java.io.Serializable; +import java.util.ArrayList; +import java.util.Date; +import java.util.List; + +/** + * Created by Shrikant Badwaik on 25-Jan-17. + */ + +public class MetaData implements Serializable { + private static final long serialVersionUID = 8526472295622776148L; + public String title; + public String identifier; + + public List creators; + public List translators; + public List editors; + public List artists; + public List illustrators; + public List letterers; + public List pencilers; + public List colorists; + public List inkers; + public List narrators; + public List contributors; + public List publishers; + public List imprints; + + public List languages; + public Date modified; + public Date publicationDate; + public String description; + public String direction; + public Rendition rendition; + public String source; + public List epubType; + public List rights; + public List subjects; + + private List otherMetadata; + + public MetaData() { + this.rendition = new Rendition(); + this.creators = new ArrayList<>(); + this.translators = new ArrayList<>(); + this.editors = new ArrayList<>(); + this.artists = new ArrayList<>(); + this.illustrators = new ArrayList<>(); + this.letterers = new ArrayList<>(); + this.pencilers = new ArrayList<>(); + this.colorists = new ArrayList<>(); + this.inkers = new ArrayList<>(); + this.narrators = new ArrayList<>(); + this.contributors = new ArrayList<>(); + this.publishers = new ArrayList<>(); + this.imprints = new ArrayList<>(); + this.languages = new ArrayList<>(); + this.epubType = new ArrayList<>(); + this.rights = new ArrayList<>(); + this.subjects = new ArrayList<>(); + this.otherMetadata = new ArrayList<>(); + } + + public MetaData(String title, String identifier, List creators, List translators, List editors, List artists, List illustrators, List letterers, List pencilers, List colorists, List inkers, List narrators, List contributors, List publishers, List imprints, List languages, Date modified, Date publicationDate, String description, String direction, Rendition rendition, String source, List epubType, List rights, List subjects, List otherMetadata) { + this.title = title; + this.identifier = identifier; + this.creators = creators; + this.translators = translators; + this.editors = editors; + this.artists = artists; + this.illustrators = illustrators; + this.letterers = letterers; + this.pencilers = pencilers; + this.colorists = colorists; + this.inkers = inkers; + this.narrators = narrators; + this.contributors = contributors; + this.publishers = publishers; + this.imprints = imprints; + this.languages = languages; + this.modified = modified; + this.publicationDate = publicationDate; + this.description = description; + this.direction = "default"; // = direction; + this.rendition = rendition; + this.source = source; + this.epubType = epubType; + this.rights = rights; + this.subjects = subjects; + this.otherMetadata = otherMetadata; + } + + @Override + public String toString() { + return "MetaData{" + + "title='" + title + '\'' + + ", identifier='" + identifier + '\'' + + ", creators=" + creators + + ", translators=" + translators + + ", editors=" + editors + + ", artists=" + artists + + ", illustrators=" + illustrators + + ", letterers=" + letterers + + ", pencilers=" + pencilers + + ", colorists=" + colorists + + ", inkers=" + inkers + + ", narrators=" + narrators + + ", contributors=" + contributors + + ", publishers=" + publishers + + ", imprints=" + imprints + + ", languages=" + languages + + ", modified=" + modified + + ", publicationDate=" + publicationDate + + ", description='" + description + '\'' + + ", direction='" + direction + '\'' + + ", rendition=" + rendition + + ", source='" + source + '\'' + + ", epubType=" + epubType + + ", rights=" + rights + + ", subjects=" + subjects + + ", otherMetadata=" + otherMetadata + + '}'; + } + + public String getTitle() { + return title; + } + + public void setTitle(String title) { + this.title = title; + } + + public String getIdentifier() { + return identifier; + } + + public void setIdentifier(String identifier) { + this.identifier = identifier; + } + + public List getCreators() { + return creators; + } + + public void setCreators(List creators) { + this.creators = creators; + } + + public List getTranslators() { + return translators; + } + + public void setTranslators(List translators) { + this.translators = translators; + } + + public List getEditors() { + return editors; + } + + public void setEditors(List editors) { + this.editors = editors; + } + + public List getArtists() { + return artists; + } + + public void setArtists(List artists) { + this.artists = artists; + } + + public List getIllustrators() { + return illustrators; + } + + public void setIllustrators(List illustrators) { + this.illustrators = illustrators; + } + + public List getLetterers() { + return letterers; + } + + public void setLetterers(List letterers) { + this.letterers = letterers; + } + + public List getPencilers() { + return pencilers; + } + + public void setPencilers(List pencilers) { + this.pencilers = pencilers; + } + + public List getColorists() { + return colorists; + } + + public void setColorists(List colorists) { + this.colorists = colorists; + } + + public List getInkers() { + return inkers; + } + + public void setInkers(List inkers) { + this.inkers = inkers; + } + + public List getNarrators() { + return narrators; + } + + public void setNarrators(List narrators) { + this.narrators = narrators; + } + + public List getContributors() { + return contributors; + } + + public void setContributors(List contributors) { + this.contributors = contributors; + } + + public List getPublishers() { + return publishers; + } + + public void setPublishers(List publishers) { + this.publishers = publishers; + } + + public List getImprints() { + return imprints; + } + + public void setImprints(List imprints) { + this.imprints = imprints; + } + + public List getLanguages() { + return languages; + } + + public void setLanguages(List languages) { + this.languages = languages; + } + + public Date getModified() { + return modified; + } + + public void setModified(Date modified) { + this.modified = modified; + } + + public Date getPublicationDate() { + return publicationDate; + } + + public void setPublicationDate(Date publicationDate) { + this.publicationDate = publicationDate; + } + + public String getDescription() { + return description; + } + + public void setDescription(String description) { + this.description = description; + } + + public String getDirection() { + return direction; + } + + public void setDirection(String direction) { + this.direction = direction; + } + + public Rendition getRendition() { + return rendition; + } + + public void setRendition(Rendition rendition) { + this.rendition = rendition; + } + + public String getSource() { + return source; + } + + public void setSource(String source) { + this.source = source; + } + + public List getEpubType() { + return epubType; + } + + public void setEpubType(List epubType) { + this.epubType = epubType; + } + + public List getRights() { + return rights; + } + + public void setRights(List rights) { + this.rights = rights; + } + + public List getSubjects() { + return subjects; + } + + public void setSubjects(List subjects) { + this.subjects = subjects; + } + + public List getOtherMetadata() { + return otherMetadata; + } + + public void setOtherMetadata(List otherMetadata) { + this.otherMetadata = otherMetadata; + } +} \ No newline at end of file