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
;
25 private boolean imageDocument
;
28 * The title of the story.
32 public String
getTitle() {
37 * The title of the story.
42 public void setTitle(String title
) {
47 * The author of the story.
51 public String
getAuthor() {
56 * The author of the story.
61 public void setAuthor(String author
) {
66 * The story publication date.
70 public String
getDate() {
75 * The story publication date.
80 public void setDate(String date
) {
85 * The tags associated with this story.
89 public List
<String
> getTags() {
94 * The tags associated with this story.
99 public void setTags(List
<String
> tags
) {
104 * The story resume (a.k.a. description).
108 public Chapter
getResume() {
113 * The story resume (a.k.a. description).
118 public void setResume(Chapter resume
) {
119 this.resume
= resume
;
123 * The cover image of the story if any (can be NULL).
127 public BufferedImage
getCover() {
132 * The cover image of the story if any (can be NULL).
137 public void setCover(BufferedImage cover
) {
142 * The subject of the story (or instance, if it is a fanfiction, what is the
143 * original work; if it is a technical text, what is the technical
146 * @return the subject
148 public String
getSubject() {
153 * The subject of the story (for instance, if it is a fanfiction, what is
154 * the original work; if it is a technical text, what is the technical
160 public void setSubject(String subject
) {
161 this.subject
= subject
;
165 * The source of this story (where it was downloaded from).
169 public String
getSource() {
174 * The source of this story (where it was downloaded from).
179 public void setSource(String source
) {
180 this.source
= source
;
184 * A unique value representing the story (it is often an URL).
188 public String
getUuid() {
193 * A unique value representing the story (it is often an URL).
198 public void setUuid(String uuid
) {
203 * A unique value representing the story in the local library.
207 public String
getLuid() {
212 * A unique value representing the story in the local library.
217 public void setLuid(String luid
) {
222 * The 2-letter code language of this story.
226 public String
getLang() {
231 * The 2-letter code language of this story.
236 public void setLang(String lang
) {
241 * The story publisher (other the same as the source).
243 * @return the publisher
245 public String
getPublisher() {
250 * The story publisher (other the same as the source).
253 * the publisher to set
255 public void setPublisher(String publisher
) {
256 this.publisher
= publisher
;
260 * The output type this {@link Story} is in.
262 * @return the type the type
264 public String
getType() {
269 * The output type this {@link Story} is in.
272 * the new type to set
274 public void setType(String type
) {
279 * Document catering mostly to image files.
281 * @return the imageDocument state
283 public boolean isImageDocument() {
284 return imageDocument
;
288 * Document catering mostly to image files.
290 * @param imageDocument
291 * the imageDocument state to set
293 public void setImageDocument(boolean imageDocument
) {
294 this.imageDocument
= imageDocument
;