eschool.data
Class Answer

java.lang.Object
  extended byeschool.data.Answer

public class Answer
extends java.lang.Object


Constructor Summary
Answer(int answerid, java.lang.String content, int correct)
          Creates a new answer for a test question.
 
Method Summary
 int getAnswerid()
           
 java.lang.String getContent()
           
 int getCorrect()
           
 void setAnswerid(int answerid)
           
 void setContent(java.lang.String content)
           
 void setCorrect(int correct)
           
 java.lang.String toString()
          A string representation of the current object
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Answer

public Answer(int answerid,
              java.lang.String content,
              int correct)
Creates a new answer for a test question.

Parameters:
answerid - id of the answer
content - content of the answer
correct - true if the answer is correct; false otherwise
Method Detail

getAnswerid

public int getAnswerid()
Returns:
answerid - id of the answer

setAnswerid

public void setAnswerid(int answerid)
Parameters:
answerid -

getContent

public java.lang.String getContent()
Returns:
content - content of the answer

setContent

public void setContent(java.lang.String content)
Parameters:
content -

getCorrect

public int getCorrect()
Returns:
correct - true if the answer is correct; false otherwise

setCorrect

public void setCorrect(int correct)
Parameters:
correct -

toString

public java.lang.String toString()
A string representation of the current object