1 25 26 package org.objectweb.speedo.pobjects.fetchgroup; 27 28 31 public class Dictionnary extends Book { 32 33 int wordNb; 34 int year; 35 Editor editor; 36 37 public Dictionnary(int isbn, Author author, int pageNb, int wordNb, int year, Editor editor) { 38 super(isbn, author, pageNb, "dictionnary"); 39 this.wordNb = wordNb; 40 this.year = year; 41 this.editor = editor; 42 } 43 44 public Editor getEditor() { 45 return editor; 46 } 47 public void setEditor(Editor editor) { 48 this.editor = editor; 49 } 50 public int getWordNb() { 51 return wordNb; 52 } 53 public void setWordNb(int wordNb) { 54 this.wordNb = wordNb; 55 } 56 public int getYear() { 57 return year; 58 } 59 public void setYear(int year) { 60 this.year = year; 61 } 62 63 public String toString() { 64 return super.toString() + 65 "\n\t[wordNb=" + wordNb + ", year=" + year + ",editor=" + (editor == null?"no editor":editor.toString()); 66 } 67 } 68 | Popular Tags |