X-Git-Url: http://git.nikiroo.be/?p=fanfix.git;a=blobdiff_plain;f=src%2Fbe%2Fnikiroo%2Ffanfix%2Fdata%2FChapter.java;fp=src%2Fbe%2Fnikiroo%2Ffanfix%2Fdata%2FChapter.java;h=839d67b7c0ad2a079cbbc28ddf7e16019031b85f;hp=551606348843446c00ddc59fc53827e7a3e35aa9;hb=793f1071fae48daed3b545a03a286c85e527d244;hpb=b2612f9dcd0a37f4ec22fcabe55390280e06daf2 diff --git a/src/be/nikiroo/fanfix/data/Chapter.java b/src/be/nikiroo/fanfix/data/Chapter.java index 5516063..839d67b 100644 --- a/src/be/nikiroo/fanfix/data/Chapter.java +++ b/src/be/nikiroo/fanfix/data/Chapter.java @@ -14,6 +14,7 @@ public class Chapter implements Iterable { private int number; private List paragraphs = new ArrayList(); private List empty = new ArrayList(); + private long words; /** * Create a new {@link Chapter} with the given information. @@ -92,6 +93,25 @@ public class Chapter implements Iterable { return paragraphs == null ? empty.iterator() : paragraphs.iterator(); } + /** + * The number of words in this {@link Chapter}. + * + * @return the number of words + */ + public long getWords() { + return words; + } + + /** + * The number of words in this {@link Chapter}. + * + * @param words + * the number of words to set + */ + public void setWords(long words) { + this.words = words; + } + /** * Display a DEBUG {@link String} representation of this object. */