org.qtitools.qti.node.test
Enum VisibilityMode

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

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

The VisibilityMode determines how the visibility of the feedback is controlled.

SHOW_IF_MATCH - the feedback is hidden by default and shown only if the associated outcome variable matches, or contains, the value of the identifier attribute.

HIDE_IF_MATCH - the feedback is shown by default and hidden only if the associated outcome variable matches, or contains, the value of the identifier attribute.

This class is referred as showHide in specification.

Author:
Jiri Kajaba

Enum Constant Summary
HIDE_IF_MATCH
          Feedback is shown only if outcome variable doesn't match the value of identifier attribute.
SHOW_IF_MATCH
          Feedback is shown only if outcome variable matches the value of identifier attribute.
 
Field Summary
static java.lang.String CLASS_TAG
          Name of this class in xml schema.
 
Method Summary
static VisibilityMode parseVisibilityMode(java.lang.String visibilityMode)
          Returns parsed VisibilityMode from given String.
 java.lang.String toString()
           
static VisibilityMode valueOf(java.lang.String name)
          Returns the enum constant of this type with the specified name.
static VisibilityMode[] 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

SHOW_IF_MATCH

public static final VisibilityMode SHOW_IF_MATCH
Feedback is shown only if outcome variable matches the value of identifier attribute.


HIDE_IF_MATCH

public static final VisibilityMode HIDE_IF_MATCH
Feedback is shown only if outcome variable doesn't match the value of identifier attribute.

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

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

valueOf

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

parseVisibilityMode

public static VisibilityMode parseVisibilityMode(java.lang.String visibilityMode)
                                          throws QTIParseException
Returns parsed VisibilityMode from given String.

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


Copyright © 2009. All Rights Reserved.