symplik.flower
Class Choice

java.lang.Object
  extended by symplik.flower.Choice

public class Choice
extends java.lang.Object

Choice consists of choiceKey and choiceDesc(ription). ChoiceKey is the value used internally to represent a multiple choice; while choiceDesc is the wording showing to the end users. Multiple choice is always shown in a numeric list in the screen. For each Question, the corresponding answer is the choiceKey, which is stored in the Response.xml file for playback use (run in silent operation).

Version:
$Revision: 3 $
Author:
$Author: Christopher Ho $

Field Summary
private  java.lang.String choiceDesc
           
private  java.lang.String choiceKey
           
static java.lang.String RCS_ID
           
 
Constructor Summary
Choice(java.lang.String key, java.lang.String desc)
          Constructor.
 
Method Summary
 java.lang.String getChoiceDesc()
          ChoiceDesc(ription) Getting method
 java.lang.String getChoiceKey()
          ChoiceKey Getter method
 void setChoiceDesc(java.lang.String choiceDesc)
          ChoiceDesc(ription) Setting method
 void setChoiceKey(java.lang.String choiceKey)
          ChoiceKey Setter method
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

RCS_ID

public static final java.lang.String RCS_ID
See Also:
Constant Field Values

choiceDesc

private java.lang.String choiceDesc

choiceKey

private java.lang.String choiceKey
Constructor Detail

Choice

public Choice(java.lang.String key,
              java.lang.String desc)
Constructor.

Parameters:
Choice - Key
Choice - Description
Method Detail

setChoiceKey

public void setChoiceKey(java.lang.String choiceKey)
ChoiceKey Setter method

Parameters:
choiceKey -

getChoiceKey

public java.lang.String getChoiceKey()
ChoiceKey Getter method

Returns:

setChoiceDesc

public void setChoiceDesc(java.lang.String choiceDesc)
ChoiceDesc(ription) Setting method

Parameters:
choiceDesc -

getChoiceDesc

public java.lang.String getChoiceDesc()
ChoiceDesc(ription) Getting method

Returns:


Copyright © 2010 Symplik Tech. Co. Ltd. All Rights Reserved.