Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

Source code: com/RuntimeCollective/questionnaire/bean/Answer.java


1   /* $Header: /home/CVS/rjp/src/com/RuntimeCollective/questionnaire/bean/Answer.java,v 1.4 2003/09/30 15:12:53 joe Exp $
2    * $Revision: 1.4 $
3    * $Date: 2003/09/30 15:12:53 $
4    *
5    * ====================================================================
6    *
7    * Josephine : http://www.runtime-collective.com/josephine/index.html
8    *
9    * Copyright (C) 2003 Runtime Collective
10   * 
11   * This product includes software developed by the
12   * Apache Software Foundation (http://www.apache.org/).
13   *
14   * This library is free software; you can redistribute it and/or
15   * modify it under the terms of the GNU Lesser General Public
16   * License as published by the Free Software Foundation; either
17   * version 2.1 of the License, or (at your option) any later version.
18   *
19   * This library is distributed in the hope that it will be useful,
20   * but WITHOUT ANY WARRANTY; without even the implied warranty of
21   * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
22   * Lesser General Public License for more details.
23   *
24   * You should have received a copy of the GNU Lesser General Public
25   * License along with this library; if not, write to the Free Software
26   * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
27   *
28   */
29  
30  package com.RuntimeCollective.questionnaire.bean;
31  
32  import com.RuntimeCollective.questionnaire.InvalidAnswerException;
33  import com.RuntimeCollective.questionnaire.bean.Question;
34  import com.RuntimeCollective.questionnaire.bean.UserAnswers;
35  import com.RuntimeCollective.webapps.bean.EntityBean;
36  
37  /**
38   * Interface to implement if you want to create a new kind of Answer for Questionnaires.
39   *
40   * @version $Id: Answer.java,v 1.4 2003/09/30 15:12:53 joe Exp $
41   */
42  public interface Answer extends EntityBean {
43  
44  
45      // EntityBean specific
46  
47      /** Get the unique id of this bean instance. */
48      public int getId();
49  
50      /** Set the unique id of this bean instance. */
51      public void setId(int id);
52  
53      /** Save this bean to the database. */
54      public void save();
55  
56      /** Delete this bean from the database. */
57      public void delete();
58  
59  
60  
61      // Answer specific
62  
63      /** Set the UserAnswers of this Answer */
64      public void setUserAnswers(UserAnswers userAnswers);
65  
66      /** Get the UserAnswers of this Answer */
67      public UserAnswers getUserAnswers();
68  
69      /** Set the AnsweredQuestion of this Answer */
70      public void setAnsweredQuestion(Question answeredQuestion);
71  
72      /** Get the AnsweredQuestion of this Answer */
73      public Question getAnsweredQuestion();
74  
75      /** Set the AnswerGiven of this Answer */
76      public void setAnswerGiven(Object answerGiven) throws InvalidAnswerException;
77  
78      /** Get the AnswerGiven of this Answer */
79      public Object getAnswerGiven();
80  }
81  
82  
83  
84