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
;
24 private String publisher
;
26 private boolean imageDocument
;
29 * The title of the story.
33 public String
getTitle() {
38 * The title of the story.
43 public void setTitle(String title
) {
48 * The author of the story.
52 public String
getAuthor() {
57 * The author of the story.
62 public void setAuthor(String author
) {
67 * The story publication date.
71 public String
getDate() {
76 * The story publication date.
81 public void setDate(String date
) {
86 * The tags associated with this story.
90 public List
<String
> getTags() {
95 * The tags associated with this story.
100 public void setTags(List
<String
> tags
) {
105 * The story resume (a.k.a. description).
109 public Chapter
getResume() {
114 * The story resume (a.k.a. description).
119 public void setResume(Chapter resume
) {
120 this.resume
= resume
;
124 * The cover image of the story if any (can be NULL).
128 public BufferedImage
getCover() {
133 * The cover image of the story if any (can be NULL).
138 public void setCover(BufferedImage cover
) {
143 * The subject of the story (or instance, if it is a fanfiction, what is the
144 * original work; if it is a technical text, what is the technical
147 * @return the subject
149 public String
getSubject() {
154 * The subject of the story (for instance, if it is a fanfiction, what is
155 * the original work; if it is a technical text, what is the technical
161 public void setSubject(String subject
) {
162 this.subject
= subject
;
166 * The source of this story (which online library it was downloaded from).
170 public String
getSource() {
175 * The source of this story (which online library it was downloaded from).
180 public void setSource(String source
) {
181 this.source
= source
;
185 * The original URL from which this {@link Story} was imported.
189 public String
getUrl() {
194 * The original URL from which this {@link Story} was imported.
199 public void setUrl(String url
) {
204 * A unique value representing the story (it is often a URL).
208 public String
getUuid() {
213 * A unique value representing the story (it is often a URL).
218 public void setUuid(String uuid
) {
223 * A unique value representing the story in the local library.
227 public String
getLuid() {
232 * A unique value representing the story in the local library.
237 public void setLuid(String luid
) {
242 * The 2-letter code language of this story.
246 public String
getLang() {
251 * The 2-letter code language of this story.
256 public void setLang(String lang
) {
261 * The story publisher (other the same as the source).
263 * @return the publisher
265 public String
getPublisher() {
270 * The story publisher (other the same as the source).
273 * the publisher to set
275 public void setPublisher(String publisher
) {
276 this.publisher
= publisher
;
280 * The output type this {@link Story} is in.
282 * @return the type the type
284 public String
getType() {
289 * The output type this {@link Story} is in.
292 * the new type to set
294 public void setType(String type
) {
299 * Document catering mostly to image files.
301 * @return the imageDocument state
303 public boolean isImageDocument() {
304 return imageDocument
;
308 * Document catering mostly to image files.
310 * @param imageDocument
311 * the imageDocument state to set
313 public void setImageDocument(boolean imageDocument
) {
314 this.imageDocument
= imageDocument
;