net.sourceforge.pavlov.library
Class AnswerAtom

java.lang.Object
  extended by net.sourceforge.pavlov.library.AnswerAtom

public class AnswerAtom
extends Object

One of a set of possible answers to a question.


Field Summary
protected  Object content
           
protected  boolean correct
           
 
Constructor Summary
AnswerAtom(boolean isCorrect, Object answer)
           
 
Method Summary
 Object getContent()
          Get the Content value.
 boolean isCorrect()
          Get the Correct value.
 void setContent(Object newContent)
          Set the Content value.
 void setCorrect(boolean newCorrect)
          Set the Correct value.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

correct

protected boolean correct

content

protected Object content
Constructor Detail

AnswerAtom

public AnswerAtom(boolean isCorrect,
                  Object answer)
Method Detail

isCorrect

public boolean isCorrect()
Get the Correct value.

Returns:
the Correct value.

setCorrect

public void setCorrect(boolean newCorrect)
Set the Correct value.

Parameters:
newCorrect - The new Correct value.

getContent

public Object getContent()
Get the Content value.

Returns:
the Content value.

setContent

public void setContent(Object newContent)
Set the Content value.

Parameters:
newContent - The new Content value.