org.qtitools.qti.node.content.variable
Class FeedbackElement

java.lang.Object
  extended by org.qtitools.qti.node.AbstractNode
      extended by org.qtitools.qti.node.AbstractObject
          extended by org.qtitools.qti.node.content.BodyElement
              extended by org.qtitools.qti.node.content.variable.FeedbackElement
All Implemented Interfaces:
java.io.Serializable, XmlNode, XmlObject, Validatable
Direct Known Subclasses:
FeedbackBlock, FeedbackInline

public abstract class FeedbackElement
extends BodyElement

Abstract parent of feedback elements

Author:
Jonathon Hare
See Also:
Serialized Form

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 outcomeIdentifier 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
FeedbackElement(XmlObject parent)
          Constructs feedback element.
 
Method Summary
 java.lang.String getOutcomeIdentifier()
          Gets value of outcomeIdentifier attribute.
 java.lang.String getOutcomeValue()
          Gets value of identifier attribute.
 VisibilityMode getVisibilityMode()
          Gets value of showHide attribute.
 boolean isVisible()
          Returns true if this feedback can be displayed.
 void setOutcomeIdentifier(java.lang.String outcomeIdentifier)
          Sets new value of outcomeIdentifier attribute.
 void setOutcomeValue(java.lang.String outcomeValue)
          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

ATTR_OUTCOME_IDENTIFIER_NAME

public static final java.lang.String ATTR_OUTCOME_IDENTIFIER_NAME
Name of outcomeIdentifier attribute in xml schema.

See Also:
Constant Field Values

ATTR_VISIBILITY_MODE_NAME

public static final java.lang.String ATTR_VISIBILITY_MODE_NAME
Name of showHide attribute in xml schema.

See Also:
Constant Field Values

ATTR_VISIBILITY_MODE_DEFAULT_VALUE

public static final VisibilityMode ATTR_VISIBILITY_MODE_DEFAULT_VALUE
Default value of showHide attribute.


ATTR_IDENTIFIER_NAME

public static final java.lang.String ATTR_IDENTIFIER_NAME
Name of identifier attribute in xml schema.

See Also:
Constant Field Values
Constructor Detail

FeedbackElement

public FeedbackElement(XmlObject parent)
Constructs feedback element.

Parameters:
parent - parent of this element
Method Detail

getVisibilityMode

public VisibilityMode getVisibilityMode()
Gets value of showHide attribute.

Returns:
value of showHide attribute
See Also:
setVisibilityMode(org.qtitools.qti.node.test.VisibilityMode)

setVisibilityMode

public void setVisibilityMode(VisibilityMode visibilityMode)
Sets new value of showHide attribute.

Parameters:
visibilityMode - new value of showHide attribute
See Also:
getVisibilityMode()

getOutcomeIdentifier

public java.lang.String getOutcomeIdentifier()
Gets value of outcomeIdentifier attribute.

Returns:
value of outcomeIdentifier attribute
See Also:
setOutcomeIdentifier(java.lang.String)

setOutcomeIdentifier

public void setOutcomeIdentifier(java.lang.String outcomeIdentifier)
Sets new value of outcomeIdentifier attribute.

Parameters:
outcomeIdentifier - new value of outcomeIdentifier attribute
See Also:
getOutcomeIdentifier()

getOutcomeValue

public java.lang.String getOutcomeValue()
Gets value of identifier attribute.

Returns:
value of identifier attribute
See Also:
setOutcomeValue(java.lang.String)

setOutcomeValue

public void setOutcomeValue(java.lang.String outcomeValue)
Sets new value of identifier attribute.

Parameters:
outcomeValue - new value of identifier attribute
See Also:
getOutcomeValue()

validateAttributes

public ValidationResult validateAttributes()
Description copied from class: AbstractNode
Validates attributes of this node.

Overrides:
validateAttributes in class AbstractNode
Returns:
result of validation

validateChildren

protected ValidationResult validateChildren()
Description copied from class: AbstractNode
Validates children (body) of this node.

Overrides:
validateChildren in class AbstractNode
Returns:
result of validation

isVisible

public boolean isVisible()
Returns true if this feedback can be displayed.

Returns:
true if this feedback can be displayed; false otherwise


Copyright © 2009. All Rights Reserved.