|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.qtitools.qti.node.AbstractNode
org.qtitools.qti.node.AbstractObject
org.qtitools.qti.node.content.BodyElement
org.qtitools.qti.node.content.template.TemplateElement
public abstract class TemplateElement
Abstract parent of feedback elements
| Field Summary | |
|---|---|
static java.lang.String |
ATTR_IDENTIFIER_NAME
Name of identifier attribute in xml schema. |
static java.lang.String |
ATTR_OUTCOME_IDENTIFIER_NAME
Name of templateIdentifier attribute in xml schema. |
static VisibilityMode |
ATTR_VISIBILITY_MODE_DEFAULT_VALUE
Default value of showHide attribute. |
static java.lang.String |
ATTR_VISIBILITY_MODE_NAME
Name of showHide attribute in xml schema. |
| Fields inherited from class org.qtitools.qti.node.content.BodyElement |
|---|
ATTR_CLASS_NAME, ATTR_ID_NAME, ATTR_LABEL_NAME, ATTR_LANG_NAME, DISPLAY_NAME |
| Fields inherited from interface org.qtitools.qti.node.XmlNode |
|---|
INDENT, NEW_LINE, SIMPLE_NAME_INNER_SEPARATOR, SIMPLE_NAMES_SEPARATOR |
| Constructor Summary | |
|---|---|
TemplateElement(XmlObject parent)
Constructs feedback element. |
|
| Method Summary | |
|---|---|
java.lang.String |
getTemplateIdentifier()
Gets value of templateIdentifier attribute. |
java.lang.String |
getTemplateValue()
Gets value of identifier attribute. |
VisibilityMode |
getVisibilityMode()
Gets value of showHide attribute. |
boolean |
isVisible()
Returns true if this feedback can be displayed. |
void |
setTemplateIdentifier(java.lang.String templateIdentifier)
Sets new value of templateIdentifier attribute. |
void |
setTemplateValue(java.lang.String templateValue)
Sets new value of identifier attribute. |
void |
setVisibilityMode(VisibilityMode visibilityMode)
Sets new value of showHide attribute. |
ValidationResult |
validateAttributes()
Validates attributes of this node. |
protected ValidationResult |
validateChildren()
Validates children (body) of this node. |
| Methods inherited from class org.qtitools.qti.node.content.BodyElement |
|---|
appendChild, evaluate, getChildren, getClassAttr, getFirstChild, getId, getLabel, getLang, getLastChild, insertBefore, removeChild, replaceChild, search, search, search, setId, setLabel, setLang |
| Methods inherited from class org.qtitools.qti.node.AbstractObject |
|---|
getParent, getParentItem, getParentResult, getParentTest, setParent |
| Methods inherited from class org.qtitools.qti.node.AbstractNode |
|---|
attrToXmlString, bodyToXmlString, getAttributes, getClassTag, getFullName, getIndent, getNode, getNode, getNode, getNodeGroups, getParentRoot, getSimpleName, getSourceFile, getSourceNode, getSourceString, getSourceUrl, hasChildNodes, load, load, load, load, loadAttributes, readChild, readChildren, setParent, setSourceFile, setSourceNode, setSourceString, setSourceUrl, toXmlString, toXmlString, validate |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface org.qtitools.qti.node.XmlNode |
|---|
getAttributes, getClassTag, getFullName, getNodeGroups, getParentRoot, getSimpleName, getSourceFile, getSourceNode, getSourceString, getSourceUrl, hasChildNodes, load, load, load, load, setSourceFile, setSourceNode, setSourceString, setSourceUrl, toXmlString, toXmlString |
| Methods inherited from interface org.qtitools.qti.validation.Validatable |
|---|
validate |
| Field Detail |
|---|
public static final java.lang.String ATTR_OUTCOME_IDENTIFIER_NAME
public static final java.lang.String ATTR_VISIBILITY_MODE_NAME
public static final VisibilityMode ATTR_VISIBILITY_MODE_DEFAULT_VALUE
public static final java.lang.String ATTR_IDENTIFIER_NAME
| Constructor Detail |
|---|
public TemplateElement(XmlObject parent)
parent - parent of this element| Method Detail |
|---|
public VisibilityMode getVisibilityMode()
setVisibilityMode(org.qtitools.qti.node.test.VisibilityMode)public void setVisibilityMode(VisibilityMode visibilityMode)
visibilityMode - new value of showHide attributegetVisibilityMode()public java.lang.String getTemplateIdentifier()
setTemplateIdentifier(java.lang.String)public void setTemplateIdentifier(java.lang.String templateIdentifier)
templateIdentifier - new value of templateIdentifier attributegetTemplateIdentifier()public java.lang.String getTemplateValue()
setTemplateValue(java.lang.String)public void setTemplateValue(java.lang.String templateValue)
templateValue - new value of identifier attributegetTemplateValue()public ValidationResult validateAttributes()
AbstractNode
validateAttributes in class AbstractNodeprotected ValidationResult validateChildren()
AbstractNode
validateChildren in class AbstractNodepublic boolean isVisible()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||