KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > net > killingar > forum > internal > Comic


1 /* Copyright 2000-2005 Anders Hovmöller
2  *
3  * The person or persons who have associated their work with
4  * this document (the "Dedicator") hereby dedicate the entire
5  * copyright in the work of authorship identified below (the
6  * "Work") to the public domain.
7  *
8  * Dedicator makes this dedication for the benefit of the
9  * public at large and to the detriment of Dedicator's heirs
10  * and successors. Dedicator intends this dedication to be an
11  * overt act of relinquishment in perpetuity of all present
12  * and future rights under copyright law, whether vested or
13  * contingent, in the Work. Dedicator understands that such
14  * relinquishment of all rights includes the relinquishment of
15  * all rights to enforce (by lawsuit or otherwise) those
16  * copyrights in the Work.
17  *
18  * Dedicator recognizes that, once placed in the public
19  * domain, the Work may be freely reproduced, distributed,
20  * transmitted, used, modified, built upon, or otherwise
21  * exploited by anyone for any purpose, commercial or non-
22  * commercial, and in any way, including by methods that have
23  * not yet been invented or conceived.
24  */

25
26 /**
27  * Describes a comic.
28  */

29 package net.killingar.forum.internal;
30
31 public class Comic extends NamedItemImpl
32 {
33     public long latestID = -1, firstID = -1;
34     public String JavaDoc URL, position, system;
35
36     public Comic()
37     {
38         super(-1, "");
39     }
40
41     public Comic(
42         long ID,
43         String JavaDoc name,
44         String JavaDoc URL,
45         long latest,
46         long first,
47         String JavaDoc system,
48         String JavaDoc position)
49     {
50         super(ID, name);
51         this.URL = URL;
52         this.latestID = latest;
53         this.firstID = first;
54         this.system = system;
55         this.position = position;
56     }
57
58
59     public Comic(
60         String JavaDoc name,
61         String JavaDoc URL,
62         String JavaDoc system,
63         String JavaDoc position)
64     {
65         super(-1, name);
66         this.URL = URL;
67         this.latestID = -1;
68         this.firstID = -1;
69         this.system = system;
70         this.position = position;
71     }
72
73
74     public long getLatestID() { return latestID; }
75     public long getFirstID() { return firstID; }
76     public String JavaDoc getUrl() { return URL; }
77     public String JavaDoc getPosition() { return position; }
78     public String JavaDoc getSystem() { return system; }
79
80     public void setLatestID(long in) { latestID = in; }
81     public void setFirstID(long in) { firstID = in; }
82     public void setUrl(String JavaDoc in) { URL = in; }
83     public void setPosition(String JavaDoc in) { position = in; }
84     public void setSystem(String JavaDoc in) { system = in; }
85 }
86
Popular Tags