org.qtitools.qti.node.test
Enum NavigationMode

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

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

The navigation mode determines the general paths that the candidate may take.

linear - restricts the candidate to attempt each item in turn. Once the candidate moves on they are not permitted to return.

nonlinear - the candidate is free to navigate to any item in the test at any time.

Author:
Jiri Kajaba

Enum Constant Summary
LINEAR
          Restricts the candidate to attempt each item in turn.
NONLINEAR
          The candidate is free to navigate to any item in the test at any time.
 
Field Summary
static java.lang.String CLASS_TAG
          Name of this class in xml schema.
 
Method Summary
static NavigationMode parseNavigationMode(java.lang.String navigationMode)
          Returns parsed NavigationMode from given String.
 java.lang.String toString()
           
static NavigationMode valueOf(java.lang.String name)
          Returns the enum constant of this type with the specified name.
static NavigationMode[] 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

LINEAR

public static final NavigationMode LINEAR
Restricts the candidate to attempt each item in turn.


NONLINEAR

public static final NavigationMode NONLINEAR
The candidate is free to navigate to any item in the test at any time.

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 NavigationMode[] 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(NavigationMode c : NavigationMode.values())
        System.out.println(c);

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

valueOf

public static NavigationMode 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<NavigationMode>

parseNavigationMode

public static NavigationMode parseNavigationMode(java.lang.String navigationMode)
                                          throws QTIParseException
Returns parsed NavigationMode from given String.

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


Copyright © 2009. All Rights Reserved.