1 package be
.nikiroo
.fanfix
.data
;
3 import java
.awt
.image
.BufferedImage
;
7 * The meta data associated to a {@link Story} object.
11 public class MetaData
{
13 private String author
;
15 private Chapter resume
;
16 private List
<String
> tags
;
17 private BufferedImage cover
;
18 private String subject
;
19 private String source
;
23 private String publisher
;
24 private boolean imageDocument
;
27 * The title of the story.
31 public String
getTitle() {
36 * The title of the story.
41 public void setTitle(String title
) {
46 * The author of the story.
50 public String
getAuthor() {
55 * The author of the story.
60 public void setAuthor(String author
) {
65 * The story publication date.
69 public String
getDate() {
74 * The story publication date.
79 public void setDate(String date
) {
84 * The tags associated with this story.
88 public List
<String
> getTags() {
93 * The tags associated with this story.
98 public void setTags(List
<String
> tags
) {
103 * The story resume (a.k.a. description).
107 public Chapter
getResume() {
112 * The story resume (a.k.a. description).
117 public void setResume(Chapter resume
) {
118 this.resume
= resume
;
122 * The cover image of the story if any (can be NULL).
126 public BufferedImage
getCover() {
131 * The cover image of the story if any (can be NULL).
136 public void setCover(BufferedImage cover
) {
141 * The subject of the story (or instance, if it is a fanfiction, what is the
142 * original work; if it is a technical text, what is the technical
145 * @return the subject
147 public String
getSubject() {
152 * The subject of the story (for instance, if it is a fanfiction, what is
153 * the original work; if it is a technical text, what is the technical
159 public void setSubject(String subject
) {
160 this.subject
= subject
;
164 * The source of this story (where it was downloaded from).
168 public String
getSource() {
173 * The source of this story (where it was downloaded from).
178 public void setSource(String source
) {
179 this.source
= source
;
183 * A unique value representing the story (it is often an URL).
187 public String
getUuid() {
192 * A unique value representing the story (it is often an URL).
197 public void setUuid(String uuid
) {
202 * A unique value representing the story in the local library.
206 public String
getLuid() {
211 * A unique value representing the story in the local library.
216 public void setLuid(String luid
) {
221 * The 2-letter code language of this story.
225 public String
getLang() {
230 * The 2-letter code language of this story.
235 public void setLang(String lang
) {
240 * The story publisher (other the same as the source).
242 * @return the publisher
244 public String
getPublisher() {
249 * The story publisher (other the same as the source).
252 * the publisher to set
254 public void setPublisher(String publisher
) {
255 this.publisher
= publisher
;
259 * Document catering mostly to image files.
261 * @return the imageDocument state
263 public boolean isImageDocument() {
264 return imageDocument
;
268 * Document catering mostly to image files.
270 * @param imageDocument
271 * the imageDocument state to set
273 public void setImageDocument(boolean imageDocument
) {
274 this.imageDocument
= imageDocument
;