KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > contineo > documan > Article


1 /*
2  * article.java
3  *
4  * Created on 3. Juli 2004, 23:02
5  */

6
7 package org.contineo.documan;
8
9 import javax.servlet.http.HttpServletRequest JavaDoc;
10 import org.apache.struts.action.ActionMapping;
11 import org.apache.struts.validator.ValidatorForm;
12
13 /**
14  *
15  * @author Michael Scholz
16  */

17 public class Article extends ValidatorForm {
18
19     private static final long serialVersionUID = 1L;
20     
21     /**
22      * @uml.property name="articleId"
23      */

24     private int articleId;
25     private int docid;
26     /**
27      * @uml.property name="subject"
28      */

29     private String JavaDoc subject;
30     /**
31      * @uml.property name="message"
32      */

33     private String JavaDoc message;
34     /**
35      * @uml.property name="articleDate"
36      */

37     private String JavaDoc articleDate;
38     /**
39      * @uml.property name="username"
40      */

41     private String JavaDoc username;
42
43     
44     /** Creates a new instance of article */
45     public Article() {
46         articleId = 0;
47         docid = 0;
48         subject = "";
49         message = "";
50         articleDate = "";
51         username = "";
52     }
53
54     /**
55      * @return Returns the articleDate.
56      *
57      * @uml.property name="articleDate"
58      */

59     public String JavaDoc getArticleDate() {
60         return articleDate;
61     }
62
63     /**
64      * @param articleDate The articleDate to set.
65      *
66      * @uml.property name="articleDate"
67      */

68     public void setArticleDate(String JavaDoc articleDate) {
69         this.articleDate = articleDate;
70     }
71
72     /**
73      * @return Returns the articleId.
74      *
75      * @uml.property name="articleId"
76      */

77     public int getArticleId() {
78         return articleId;
79     }
80
81     /**
82      * @param articleId The articleId to set.
83      *
84      * @uml.property name="articleId"
85      */

86     public void setArticleId(int articleId) {
87         this.articleId = articleId;
88     }
89
90     /**
91      * @return Returns the documentId.
92      *
93      * @uml.property name="documentId"
94      */

95     public int getDocid() {
96         return docid;
97     }
98
99     /**
100      * @param documentId The documentId to set.
101      *
102      * @uml.property name="documentId"
103      */

104     public void setDocid(int documentId) {
105         this.docid = documentId;
106     }
107
108     /**
109      * @return Returns the message.
110      *
111      * @uml.property name="message"
112      */

113     public String JavaDoc getMessage() {
114         return message;
115     }
116
117     /**
118      * @param message The message to set.
119      *
120      * @uml.property name="message"
121      */

122     public void setMessage(String JavaDoc message) {
123         this.message = message;
124     }
125
126     /**
127      * @return Returns the subject.
128      *
129      * @uml.property name="subject"
130      */

131     public String JavaDoc getSubject() {
132         return subject;
133     }
134
135     /**
136      * @param subject The subject to set.
137      *
138      * @uml.property name="subject"
139      */

140     public void setSubject(String JavaDoc subject) {
141         this.subject = subject;
142     }
143
144     /**
145      * @return Returns the username.
146      *
147      * @uml.property name="username"
148      */

149     public String JavaDoc getUsername() {
150         return username;
151     }
152
153     /**
154      * @param username The username to set.
155      *
156      * @uml.property name="username"
157      */

158     public void setUsername(String JavaDoc username) {
159         this.username = username;
160     }
161
162     
163     public void reset(ActionMapping mapping, HttpServletRequest JavaDoc request) {
164         articleId = 0;
165         docid = 0;
166         subject = "";
167         message = "";
168         articleDate = "";
169         username = "";
170     }
171 }
172
Popular Tags