org.olat.ims.qti.container
Class HttpItemInput

java.lang.Object
  extended by org.olat.ims.qti.container.HttpItemInput
All Implemented Interfaces:
java.io.Serializable, ItemInput

public class HttpItemInput
extends java.lang.Object
implements ItemInput, java.io.Serializable

Initial Date: 02.04.2003

Author:
Felix Jost
See Also:
Serialized Form

Constructor Summary
HttpItemInput(java.lang.String itemIdent)
          Constructor
 
Method Summary
 void addTestVariableVal(java.lang.String varName)
           
 boolean contains(java.lang.String varName, java.lang.String value)
           
 boolean containsIgnoreCase(java.lang.String varName, java.lang.String value)
           
 java.util.List getAsList(java.lang.String varName)
          returns a List of Strings with the corresponding answers, e.g.
 java.lang.String getIdent()
           
 java.util.Map getInputMap()
          Return the map of answers for all inputs
 java.lang.String getSingle(java.lang.String varName)
          returns the value of the Variable
 boolean isEmpty()
           
 java.lang.Object putSingle(java.lang.String key, java.lang.String value)
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

HttpItemInput

public HttpItemInput(java.lang.String itemIdent)
Constructor

Method Detail

addTestVariableVal

public void addTestVariableVal(java.lang.String varName)

putSingle

public java.lang.Object putSingle(java.lang.String key,
                                  java.lang.String value)

getSingle

public java.lang.String getSingle(java.lang.String varName)
Description copied from interface: ItemInput
returns the value of the Variable

Specified by:
getSingle in interface ItemInput
Returns:
String the value of the Variable

getAsList

public java.util.List getAsList(java.lang.String varName)
Description copied from interface: ItemInput
returns a List of Strings with the corresponding answers, e.g. for a multiple choice with multiple response it could be mr01 = { "A", "C", "D"} if the user chose a,c, and d from the five answers with values a,b,c,d,e,f

Specified by:
getAsList in interface ItemInput
Returns:
List the List containing the String(s)
See Also:
org.olat.qti.process.ItemInput#getAsSet(java.lang.String)

getInputMap

public java.util.Map getInputMap()
Return the map of answers for all inputs

Specified by:
getInputMap in interface ItemInput
Returns:

contains

public boolean contains(java.lang.String varName,
                        java.lang.String value)
Specified by:
contains in interface ItemInput
Returns:

containsIgnoreCase

public boolean containsIgnoreCase(java.lang.String varName,
                                  java.lang.String value)
Specified by:
containsIgnoreCase in interface ItemInput

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object

getIdent

public java.lang.String getIdent()
Specified by:
getIdent in interface ItemInput

isEmpty

public boolean isEmpty()
Specified by:
isEmpty in interface ItemInput
Returns:
true if the user gave an empty answer (did not select anything)