ch.tatool.core.data
Class Question

java.lang.Object
  extended by ch.tatool.core.data.Question

public class Question
extends Object

Helper Class with getter and setter methods for properties concerning trial questions and answers.

Author:
Michael Ruflin

Field Summary
static String PROPERTY_ANSWER
          Property name used to set the answer value.
static String PROPERTY_QUESTION
          Property name used to set the question value.
static String PROPERTY_RESPONSE
          Property name used to set the response value.
 
Method Summary
static ObjectProperty getAnswerProperty()
          Gets the answerProperty, which represents the correct answer, as a ObjectProperty.
static StringProperty getQuestionProperty()
          Gets the questionProperty as a StringProperty.
static ObjectProperty getResponseProperty()
          Gets the responseProperty, which represents the given response of a user, as an ObjectProperty.
static void setAnswer(Node node, Object answer)
          Helper Method to set the answer of a element trial.
static void setAnswerProperty(ObjectProperty answerProperty)
          Sets the answerProperty, which represents the correct answer, as an ObjectProperty.
static void setQuestionAnswer(Node node, String question, Object answer)
          Helper Method to set the question and answer of a element trial.
static void setQuestionProperty(StringProperty questionProperty)
          Sets the questionProperty as a StringProperty.
static void setResponseProperty(ObjectProperty responseProperty)
          Sets the responseProperty, which represents the given response of a user, as an ObjectProperty.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

PROPERTY_QUESTION

public static final String PROPERTY_QUESTION
Property name used to set the question value.

See Also:
Constant Field Values

PROPERTY_ANSWER

public static final String PROPERTY_ANSWER
Property name used to set the answer value.

See Also:
Constant Field Values

PROPERTY_RESPONSE

public static final String PROPERTY_RESPONSE
Property name used to set the response value.

See Also:
Constant Field Values
Method Detail

getQuestionProperty

public static StringProperty getQuestionProperty()
Gets the questionProperty as a StringProperty.

Returns:
questionProperty

getAnswerProperty

public static ObjectProperty getAnswerProperty()
Gets the answerProperty, which represents the correct answer, as a ObjectProperty.

Returns:
answerProperty

getResponseProperty

public static ObjectProperty getResponseProperty()
Gets the responseProperty, which represents the given response of a user, as an ObjectProperty.

Returns:
responseProperty

setQuestionProperty

public static void setQuestionProperty(StringProperty questionProperty)
Sets the questionProperty as a StringProperty.

Parameters:
questionProperty - the StringProperty that will be set

setAnswerProperty

public static void setAnswerProperty(ObjectProperty answerProperty)
Sets the answerProperty, which represents the correct answer, as an ObjectProperty.

Parameters:
answerProperty - the ObjectProperty that will be set

setResponseProperty

public static void setResponseProperty(ObjectProperty responseProperty)
Sets the responseProperty, which represents the given response of a user, as an ObjectProperty.

Parameters:
responseProperty - the ObjectProperty that will be set

setQuestionAnswer

public static void setQuestionAnswer(Node node,
                                     String question,
                                     Object answer)
Helper Method to set the question and answer of a element trial.

Parameters:
node -
question -
answer -

setAnswer

public static void setAnswer(Node node,
                             Object answer)
Helper Method to set the answer of a element trial.

Parameters:
node -
answer -


Copyright © 2012. All Rights Reserved.