org.qtitools.qti.node.result
Enum ItemVariableType

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

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

This class creates all supported item variables from given CLASS_TAG.

Author:
Jonathon Hare

Enum Constant Summary
OUTCOME_VARIABLE
          Creates outcomeVariable.
RESPONSE_VARIABLE
          Creates responseVariable.
TEMPLATE_VARIABLE
          Creates templateVariable.
 
Method Summary
abstract  ItemVariable create(AbstractResult parent)
          Creates itemVariable.
static ItemVariable getInstance(AbstractResult parent, java.lang.String classTag)
          Creates itemVariable.
 java.lang.String toString()
           
static ItemVariableType valueOf(java.lang.String name)
          Returns the enum constant of this type with the specified name.
static ItemVariableType[] 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

OUTCOME_VARIABLE

public static final ItemVariableType OUTCOME_VARIABLE
Creates outcomeVariable.


RESPONSE_VARIABLE

public static final ItemVariableType RESPONSE_VARIABLE
Creates responseVariable.


TEMPLATE_VARIABLE

public static final ItemVariableType TEMPLATE_VARIABLE
Creates templateVariable.

Method Detail

values

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

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

valueOf

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

create

public abstract ItemVariable create(AbstractResult parent)
Creates itemVariable.

Parameters:
parent - parent of created itemVariable
Returns:
created itemVariable

toString

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

getInstance

public static ItemVariable getInstance(AbstractResult parent,
                                       java.lang.String classTag)
Creates itemVariable.

Parameters:
parent - parent of created itemVariable
classTag - CLASS_TAG of created itemVariable
Returns:
created itemVariable


Copyright © 2009. All Rights Reserved.