org.qtitools.qti.node.test
Enum SubmissionMode

java.lang.Object
  extended by java.lang.Enum<SubmissionMode>
      extended by org.qtitools.qti.node.test.SubmissionMode
All Implemented Interfaces:
java.io.Serializable, java.lang.Comparable<SubmissionMode>

public enum SubmissionMode
extends java.lang.Enum<SubmissionMode>

The submission mode determines when the candidate's responses are submitted for response processing.

individual - requires the candidate to submit their responses on an item-by-item basis.

simultaneous - the candidate's responses are all submitted together at the end of the testPart.

Author:
Jiri Kajaba

Enum Constant Summary
INDIVIDUAL
          Requires the candidate to submit their responses on an item-by-item basis.
SIMULTANEOUS
          The candidate's responses are all submitted together at the end of the testPart.
 
Field Summary
static java.lang.String CLASS_TAG
          Name of this class in xml schema.
 
Method Summary
static SubmissionMode parseSubmissionMode(java.lang.String submissionMode)
          Returns parsed SubmissionMode from given String.
 java.lang.String toString()
           
static SubmissionMode valueOf(java.lang.String name)
          Returns the enum constant of this type with the specified name.
static SubmissionMode[] values()
          Returns an array containing the constants of this enum type, in the order they're declared.
 
Methods inherited from class java.lang.Enum
clone, compareTo, equals, getDeclaringClass, hashCode, name, ordinal, valueOf
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 

Enum Constant Detail

INDIVIDUAL

public static final SubmissionMode INDIVIDUAL
Requires the candidate to submit their responses on an item-by-item basis.


SIMULTANEOUS

public static final SubmissionMode SIMULTANEOUS
The candidate's responses are all submitted together at the end of the testPart.

Field Detail

CLASS_TAG

public static final java.lang.String CLASS_TAG
Name of this class in xml schema.

See Also:
Constant Field Values
Method Detail

values

public static final SubmissionMode[] values()
Returns an array containing the constants of this enum type, in the order they're declared. This method may be used to iterate over the constants as follows:
for(SubmissionMode c : SubmissionMode.values())
        System.out.println(c);

Returns:
an array containing the constants of this enum type, in the order they're declared

valueOf

public static SubmissionMode valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)

Parameters:
name - the name of the enum constant to be returned.
Returns:
the enum constant with the specified name
Throws:
java.lang.IllegalArgumentException - if this enum type has no constant with the specified name

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Enum<SubmissionMode>

parseSubmissionMode

public static SubmissionMode parseSubmissionMode(java.lang.String submissionMode)
                                          throws QTIParseException
Returns parsed SubmissionMode from given String.

Parameters:
submissionMode - String representation of SubmissionMode
Returns:
parsed SubmissionMode from given String
Throws:
QTIParseException - if given String is not valid SubmissionMode


Copyright © 2009. All Rights Reserved.