|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD | |||||||||
java.lang.Objectjava.lang.Enum<TemplateRuleType>
org.qtitools.qti.node.item.template.processing.TemplateRuleType
public enum TemplateRuleType
This class creates all supported template rules from given CLASS_TAG.
Supported template rules: templateCondition, setTemplateValue, exitTemplate, setCorrectResponse, setDefaultValue.
| Enum Constant Summary | |
|---|---|
EXIT_TEMPLATE
Creates exitTemplate template rule. |
|
SET_CORRECT_RESPONSE
Creates setCorrectResponse template rule. |
|
SET_DEFAULT_VALUE
Creates setDefaultValue template rule. |
|
SET_TEMPLATE_VALUE
Creates setTemplateValue template rule. |
|
TEMPLATE_CONDITION
Creates templateCondition template rule. |
|
| Method Summary | |
|---|---|
abstract TemplateRule |
create(XmlObject parent)
Creates template rule. |
static TemplateRule |
getInstance(XmlObject parent,
java.lang.String classTag)
Creates template rule. |
java.lang.String |
toString()
|
static TemplateRuleType |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name. |
static TemplateRuleType[] |
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 |
|---|
public static final TemplateRuleType TEMPLATE_CONDITION
TemplateConditionpublic static final TemplateRuleType SET_TEMPLATE_VALUE
SetTemplateValuepublic static final TemplateRuleType EXIT_TEMPLATE
ExitTemplatepublic static final TemplateRuleType SET_CORRECT_RESPONSE
SetCorrectResponsepublic static final TemplateRuleType SET_DEFAULT_VALUE
SetDefaultValue| Method Detail |
|---|
public static final TemplateRuleType[] values()
for(TemplateRuleType c : TemplateRuleType.values())
System.out.println(c);
public static TemplateRuleType valueOf(java.lang.String name)
name - the name of the enum constant to be returned.
java.lang.IllegalArgumentException - if this enum type has no constant
with the specified namepublic abstract TemplateRule create(XmlObject parent)
parent - parent of created template rule
public java.lang.String toString()
toString in class java.lang.Enum<TemplateRuleType>
public static TemplateRule getInstance(XmlObject parent,
java.lang.String classTag)
parent - parent of created template ruleclassTag - CLASS_TAG of created template rule
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD | |||||||||