org.qtitools.qti.node.test
Enum View

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

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

The view in which the parent object is to be shown.

Author:
Jiri Kajaba

Enum Constant Summary
AUTHOR
          Author.
CANDIDATE
          Candidate.
PROCTOR
          Proctor or invigilator.
SCORER
          Scorer.
TEST_CONSTRUCTOR
          Test constructor.
TUTOR
          Tutor.
 
Field Summary
static java.lang.String CLASS_TAG
          Name of this class in xml schema.
 
Method Summary
static View parseView(java.lang.String view)
          Returns parsed View from given String.
 java.lang.String toString()
           
static View valueOf(java.lang.String name)
          Returns the enum constant of this type with the specified name.
static View[] 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

AUTHOR

public static final View AUTHOR
Author.


CANDIDATE

public static final View CANDIDATE
Candidate.


PROCTOR

public static final View PROCTOR
Proctor or invigilator.


SCORER

public static final View SCORER
Scorer.


TEST_CONSTRUCTOR

public static final View TEST_CONSTRUCTOR
Test constructor.


TUTOR

public static final View TUTOR
Tutor.

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

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

valueOf

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

parseView

public static View parseView(java.lang.String view)
                      throws QTIParseException
Returns parsed View from given String.

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


Copyright © 2009. All Rights Reserved.