org.olat.ims.qti.editor.beecom.objects
Class Control

java.lang.Object
  extended by org.olat.ims.qti.editor.beecom.objects.Control
All Implemented Interfaces:
QTIObject

public class Control
extends java.lang.Object
implements QTIObject


Field Summary
static int CTRL_NO
           
static int CTRL_UNDEF
           
static int CTRL_YES
           
 
Constructor Summary
Control()
           
Control(int feedback, int hint, int solution)
          Constructor for Switches.
Control(java.lang.String feedback, java.lang.String hint, java.lang.String solution)
           
 
Method Summary
 void addToElement(org.dom4j.Element root)
           
 int getFeedback()
           
 int getHint()
           
 int getSolution()
           
 java.lang.String getView()
          Returns the view.
 boolean isFeedback()
          Returns the feedback.
 boolean isHint()
          Returns the hints.
 boolean isSolution()
          Returns the solutions.
 void setFeedback(int feedback)
          Sets the feedback.
 void setHint(int hint)
          Sets the hints.
 void setSolution(int solution)
          Sets the solutions.
 void setSwitches(int feedback, int hint, int solution)
           
 void setSwitches(java.lang.String feedback, java.lang.String hint, java.lang.String solution)
           
 void setView(java.lang.String view)
          Sets the view.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

CTRL_UNDEF

public static final int CTRL_UNDEF
See Also:
Constant Field Values

CTRL_YES

public static final int CTRL_YES
See Also:
Constant Field Values

CTRL_NO

public static final int CTRL_NO
See Also:
Constant Field Values
Constructor Detail

Control

public Control()

Control

public Control(int feedback,
               int hint,
               int solution)
Constructor for Switches.


Control

public Control(java.lang.String feedback,
               java.lang.String hint,
               java.lang.String solution)
Method Detail

setSwitches

public void setSwitches(int feedback,
                        int hint,
                        int solution)

setSwitches

public void setSwitches(java.lang.String feedback,
                        java.lang.String hint,
                        java.lang.String solution)

addToElement

public void addToElement(org.dom4j.Element root)
Specified by:
addToElement in interface QTIObject
See Also:
org.olat.ims.qti.editor.beecom.QTIObject#addToElement(org.dom4j.Element)

isFeedback

public boolean isFeedback()
Returns the feedback.

Returns:
boolean

isHint

public boolean isHint()
Returns the hints.

Returns:
boolean

isSolution

public boolean isSolution()
Returns the solutions.

Returns:
boolean

setFeedback

public void setFeedback(int feedback)
Sets the feedback.

Parameters:
feedback - The feedback to set

setHint

public void setHint(int hint)
Sets the hints.

Parameters:
hints - The hints to set

setSolution

public void setSolution(int solution)
Sets the solutions.

Parameters:
solutions - The solutions to set

getView

public java.lang.String getView()
Returns the view.

Returns:
String

setView

public void setView(java.lang.String view)
Sets the view.

Parameters:
view - The view to set

getFeedback

public int getFeedback()
Returns:

getHint

public int getHint()
Returns:

getSolution

public int getSolution()
Returns: