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

Quick Search    Search Deep

com.RuntimeCollective.questionnaire.bean
Interface Question  view Question download Question.java

All Superinterfaces:
com.RuntimeCollective.webapps.bean.EntityBean, java.io.Serializable
All Known Implementing Classes:
SimpleQuestion

public interface Question
extends com.RuntimeCollective.webapps.bean.EntityBean

Interface to implement if you want to create a new kind of Question for Questionnaires.

Version:
$Id: Question.java,v 1.4 2003/09/30 15:12:53 joe Exp $

Field Summary
 
Fields inherited from interface com.RuntimeCollective.webapps.bean.EntityBean
DATABASE_TABLE, INTERFACE_BEAN, NULL_ID
 
Method Summary
 void delete()
          Delete this bean from the database.
 java.lang.String getDescription()
          Get the Description of this Question
 int getId()
          Get the unique id of this bean instance.
 java.lang.String getName()
          Get the Name of this Question
 Questionnaire getQuestionnaire()
          Get the Questionnaire of this Question
 boolean isAnswerValid(java.lang.Object answer)
          Check the validity of a raw Object answer for this Question.
 Answer makeNewAnswer(java.lang.Object answer)
          Make a new Answer to this Question, based on a row answer Object.
 void save()
          Save this bean to the database.
 void setDescription(java.lang.String description)
          Set the Description of this Question
 void setId(int id)
          Set the unique id of this bean instance.
 void setName(java.lang.String name)
          Set the Name of this Question
 void setQuestionnaire(Questionnaire questionnaire)
          Set the Questionnaire of this Question
 

Method Detail

getId

public int getId()
Get the unique id of this bean instance.

Specified by:
getId in interface com.RuntimeCollective.webapps.bean.EntityBean

setId

public void setId(int id)
Set the unique id of this bean instance.

Specified by:
setId in interface com.RuntimeCollective.webapps.bean.EntityBean

save

public void save()
Save this bean to the database.

Specified by:
save in interface com.RuntimeCollective.webapps.bean.EntityBean

delete

public void delete()
Delete this bean from the database.

Specified by:
delete in interface com.RuntimeCollective.webapps.bean.EntityBean

setName

public void setName(java.lang.String name)
Set the Name of this Question


getName

public java.lang.String getName()
Get the Name of this Question


setDescription

public void setDescription(java.lang.String description)
Set the Description of this Question


getDescription

public java.lang.String getDescription()
Get the Description of this Question


setQuestionnaire

public void setQuestionnaire(Questionnaire questionnaire)
Set the Questionnaire of this Question


getQuestionnaire

public Questionnaire getQuestionnaire()
Get the Questionnaire of this Question


makeNewAnswer

public Answer makeNewAnswer(java.lang.Object answer)
                     throws com.RuntimeCollective.questionnaire.InvalidAnswerException
Make a new Answer to this Question, based on a row answer Object.
This checks the validity of the raw Object answer.


isAnswerValid

public boolean isAnswerValid(java.lang.Object answer)
Check the validity of a raw Object answer for this Question.