org.qtitools.qti.node.outcome.processing
Enum OutcomeRuleType

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

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

This class creates all supported outcome rules from given CLASS_TAG.

Supported outcome rules: outcomeCondition, setOutcomeValue, exitTest.

Not implemented outcome rules: include.

Author:
Jiri Kajaba

Enum Constant Summary
EXIT_TEST
          Creates exitTest outcome rule.
LOOKUP_OUTCOME_VALUE
          Creates lookupOutcomeValue outcome rule.
OUTCOME_CONDITION
          Creates outcomeCondition outcome rule.
OUTCOME_PROCESSING_FRAGMENT
          Creates outcomeProcessingFragment outcome rule.
SET_OUTCOME_VALUE
          Creates setOutcomeValue outcome rule.
 
Method Summary
abstract  OutcomeRule create(XmlObject parent)
          Creates outcome rule.
static OutcomeRule getInstance(XmlObject parent, java.lang.String classTag)
          Creates outcome rule.
 java.lang.String toString()
           
static OutcomeRuleType valueOf(java.lang.String name)
          Returns the enum constant of this type with the specified name.
static OutcomeRuleType[] 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 OutcomeRuleType LOOKUP_OUTCOME_VALUE
Creates lookupOutcomeValue outcome rule.

See Also:
LookupOutcomeValue

OUTCOME_CONDITION

public static final OutcomeRuleType OUTCOME_CONDITION
Creates outcomeCondition outcome rule.

See Also:
OutcomeCondition

OUTCOME_PROCESSING_FRAGMENT

public static final OutcomeRuleType OUTCOME_PROCESSING_FRAGMENT
Creates outcomeProcessingFragment outcome rule.

See Also:
OutcomeProcessingFragment

SET_OUTCOME_VALUE

public static final OutcomeRuleType SET_OUTCOME_VALUE
Creates setOutcomeValue outcome rule.

See Also:
SetOutcomeValue

EXIT_TEST

public static final OutcomeRuleType EXIT_TEST
Creates exitTest outcome rule.

See Also:
ExitTest
Method Detail

values

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

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

valueOf

public static OutcomeRuleType 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 OutcomeRule create(XmlObject parent)
Creates outcome rule.

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

toString

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

getInstance

public static OutcomeRule getInstance(XmlObject parent,
                                      java.lang.String classTag)
Creates outcome rule.

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


Copyright © 2009. All Rights Reserved.