spellcast.questions
Interface IQuestion

All Superinterfaces:
org.apache.commons.chain.Command
All Known Implementing Classes:
Question, SelectTargetQuestion

public interface IQuestion
extends org.apache.commons.chain.Command

The IQuestion interface for all questions asked of IWizards. A Question is used to ask for an answer to the specified Question. The default answer is always the first answer in the list.

Version:
$Revision: 1.1 $
Author:
Barrie Treloar

Method Summary
 java.lang.Object getAnswer()
          Get the value of the answer.
 java.util.List<java.lang.Object> getAnswers()
          Get the all the answers.
 java.lang.String getQuestion()
          Get the value of the question.
 void setAnswer(java.lang.Object theAnswer)
          Set the value of the answer.
 
Methods inherited from interface org.apache.commons.chain.Command
execute
 

Method Detail

getQuestion

java.lang.String getQuestion()
Get the value of the question.

Returns:
value of the question.

getAnswer

java.lang.Object getAnswer()
Get the value of the answer.

Returns:
value of the answer.

setAnswer

void setAnswer(java.lang.Object theAnswer)
Set the value of the answer.

Parameters:
theAnswer - value to assign to the answer.

getAnswers

java.util.List<java.lang.Object> getAnswers()
Get the all the answers.

Returns:
all the answers.


Copyright © 2001-2005 Spellcast. All Rights Reserved.