KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > objectweb > speedo > pobjects > fetchgroup > Dictionnary


1 /**
2  * Speedo: an implementation of JDO compliant personality on top of JORM generic
3  * I/O sub-system.
4  * Copyright (C) 2001-2004 France Telecom R&D
5  *
6  * This library is free software; you can redistribute it and/or
7  * modify it under the terms of the GNU Lesser General Public
8  * License as published by the Free Software Foundation; either
9  * version 2 of the License, or (at your option) any later version.
10  *
11  * This library is distributed in the hope that it will be useful,
12  * but WITHOUT ANY WARRANTY; without even the implied warranty of
13  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14  * Lesser General Public License for more details.
15  *
16  * You should have received a copy of the GNU Lesser General Public
17  * License along with this library; if not, write to the Free Software
18  * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
19  *
20  *
21  *
22  * Contact: speedo@objectweb.org
23  *
24  */

25
26 package org.objectweb.speedo.pobjects.fetchgroup;
27
28 /**
29  * @author Y.Bersihand
30  */

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 JavaDoc toString() {
64         return super.toString() +
65         "\n\t[wordNb=" + wordNb + ", year=" + year + ",editor=" + (editor == null?"no editor":editor.toString());
66     }
67 }
68
Popular Tags