package be.nikiroo.fanfix.data;
+import java.io.Serializable;
import java.util.ArrayList;
import java.util.Iterator;
import java.util.List;
*
* @author niki
*/
-public class Chapter implements Iterable<Paragraph>, Cloneable {
+public class Chapter implements Iterable<Paragraph>, Cloneable, Serializable {
+ private static final long serialVersionUID = 1L;
+
private String name;
private int number;
private List<Paragraph> paragraphs = new ArrayList<Paragraph>();
package be.nikiroo.fanfix.data;
+import java.io.Serializable;
import java.util.ArrayList;
import java.util.List;
*
* @author niki
*/
-public class MetaData implements Cloneable, Comparable<MetaData> {
+public class MetaData implements Cloneable, Comparable<MetaData>, Serializable {
+ private static final long serialVersionUID = 1L;
+
private String title;
private String author;
private String date;
package be.nikiroo.fanfix.data;
+import java.io.Serializable;
+
import be.nikiroo.utils.Image;
/**
*
* @author niki
*/
-public class Paragraph implements Cloneable {
+public class Paragraph implements Cloneable, Serializable {
+ private static final long serialVersionUID = 1L;
+
/**
* A paragraph type, that will dictate how the paragraph will be handled.
*
package be.nikiroo.fanfix.data;
+import java.io.Serializable;
import java.util.ArrayList;
import java.util.Iterator;
import java.util.List;
*
* @author niki
*/
-public class Story implements Iterable<Chapter>, Cloneable {
+public class Story implements Iterable<Chapter>, Cloneable, Serializable {
+ private static final long serialVersionUID = 1L;
+
private MetaData meta;
private List<Chapter> chapters = new ArrayList<Chapter>();
private List<Chapter> empty = new ArrayList<Chapter>();
/**
* This package contains the data structure used by the program, without the
* logic behind them.
+ * <p>
+ * All the classes inside are serializable.
*
* @author niki
*/