org.qtitools.qti.node.item.response.processing
Enum ResponseRuleType

java.lang.Object
  extended by java.lang.Enum<ResponseRuleType>
      extended by org.qtitools.qti.node.item.response.processing.ResponseRuleType
All Implemented Interfaces:
java.io.Serializable, java.lang.Comparable<ResponseRuleType>

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

This class creates all supported response rules from given CLASS_TAG.

Supported response rules: responseCondition, setOutcomeValue, responseProcessingFragment, responseCondition, exitResponse.

Not implemented response rules: include.

Author:
Jonathon Hare

Enum Constant Summary
EXIT_RESPONSE
          Creates exitResponse response rule.
LOOKUP_OUTCOME_VALUE
          Creates lookupOutcomeValue response rule.
RESPONSE_CONDITION
          Creates responseCondition response rule.
RESPONSE_PROCESSING_FRAGMENT
          Creates responseProcessingFragment response rule.
SET_OUTCOME_VALUE
          Creates setOutcomeValue response rule.
 
Method Summary
abstract  ResponseRule create(XmlObject parent)
          Creates response rule.
static ResponseRule getInstance(XmlObject parent, java.lang.String classTag)
          Creates response rule.
 java.lang.String toString()
           
static ResponseRuleType valueOf(java.lang.String name)
          Returns the enum constant of this type with the specified name.
static ResponseRuleType[] 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

LOOKUP_OUTCOME_VALUE

public static final ResponseRuleType LOOKUP_OUTCOME_VALUE
Creates lookupOutcomeValue response rule.

See Also:
LookupOutcomeValue

RESPONSE_CONDITION

public static final ResponseRuleType RESPONSE_CONDITION
Creates responseCondition response rule.

See Also:
ResponseCondition

RESPONSE_PROCESSING_FRAGMENT

public static final ResponseRuleType RESPONSE_PROCESSING_FRAGMENT
Creates responseProcessingFragment response rule.

See Also:
ResponseProcessingFragment

SET_OUTCOME_VALUE

public static final ResponseRuleType SET_OUTCOME_VALUE
Creates setOutcomeValue response rule.

See Also:
SetOutcomeValue

EXIT_RESPONSE

public static final ResponseRuleType EXIT_RESPONSE
Creates exitResponse response rule.

See Also:
SetOutcomeValue
Method Detail

values

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

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

valueOf

public static ResponseRuleType 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 ResponseRule create(XmlObject parent)
Creates response rule.

Parameters:
parent - parent of created response rule
Returns:
created response rule

toString

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

getInstance

public static ResponseRule getInstance(XmlObject parent,
                                       java.lang.String classTag)
Creates response rule.

Parameters:
parent - parent of created response rule
classTag - CLASS_TAG of created response rule
Returns:
created response rule


Copyright © 2009. All Rights Reserved.