KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > com > geinuke > vo > SurveyVO


1 /*
2 -- GeiNuke --
3 Copyright (c) 2005 by Roberto Sidoti [geinuke@users.sourceforge.net]
4 http://www.hostingjava.it/-geinuke/
5
6 This file is part of GeiNuke.
7
8    GeiNuke is free software; you can redistribute it and/or modify
9    it under the terms of the GNU General Public License as published by
10    the Free Software Foundation; either version 2 of the License, or
11    (at your option) any later version.
12
13    GeiNuke is distributed in the hope that it will be useful,
14    but WITHOUT ANY WARRANTY; without even the implied warranty of
15    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16    GNU General Public License for more details.
17
18    You should have received a copy of the GNU General Public License
19    along with GeiNuke; if not, write to the Free Software
20    Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
21 */

22 package com.geinuke.vo;
23
24 import java.util.ArrayList JavaDoc;
25
26 public class SurveyVO {
27     protected int sid=-1;
28     protected int sType=-1;
29     protected int sStatus=-1;
30     protected String JavaDoc sText=null;
31     protected String JavaDoc sTitle=null;
32     protected long sDate=0;
33     protected ArrayList JavaDoc answers=null;
34     protected int checkType=0;
35     
36     public static int TYPE_SINGLE_CHOOSE=0;
37     public static int STATUS_DISABLED=0;
38     public static int STATUS_ENABLED=1;
39     public static int STATUS_CURRENT=2;
40     
41     public static int CHECK_TYPE_IP=0;
42     public static int CHECK_TYPE_USER=1;
43     
44     public SurveyVO(){
45         this.answers=new ArrayList JavaDoc();
46         
47     }
48     
49     public ArrayList JavaDoc getAnswers() {
50         return answers;
51     }
52     public void setAnswers(ArrayList JavaDoc answers) {
53         this.answers = answers;
54     }
55     public long getSDate() {
56         return sDate;
57     }
58     public void setSDate(long date) {
59         sDate = date;
60     }
61     public int getSid() {
62         return sid;
63     }
64     public void setSid(int sid) {
65         this.sid = sid;
66     }
67     public int getSStatus() {
68         return sStatus;
69     }
70     public void setSStatus(int status) {
71         sStatus = status;
72     }
73     public String JavaDoc getSText() {
74         return sText;
75     }
76     public void setSText(String JavaDoc text) {
77         sText = text;
78     }
79     
80     public int getSType() {
81         return sType;
82     }
83     public void setSType(int type) {
84         sType = type;
85     }
86     /**
87      * @return Returns the sTitle.
88      */

89     public String JavaDoc getSTitle() {
90         return sTitle;
91     }
92     /**
93      * @param title The sTitle to set.
94      */

95     public void setSTitle(String JavaDoc title) {
96         sTitle = title;
97     }
98     public int getCheckType() {
99         return checkType;
100     }
101     public void setCheckType(int checkType) {
102         this.checkType = checkType;
103     }
104     
105 }
106
Popular Tags