org.qtitools.qti.node.item.response.processing
Class ProcessResponseValue

java.lang.Object
  extended by org.qtitools.qti.node.AbstractNode
      extended by org.qtitools.qti.node.AbstractObject
          extended by org.qtitools.qti.node.item.response.processing.ResponseRule
              extended by org.qtitools.qti.node.item.response.processing.ProcessResponseValue
All Implemented Interfaces:
java.io.Serializable, ExpressionParent, XmlNode, XmlObject, Validatable
Direct Known Subclasses:
LookupOutcomeValue, SetOutcomeValue

public abstract class ProcessResponseValue
extends ResponseRule
implements ExpressionParent

Abstract parent for setResponseValue and lookupResponseValue classes.

Author:
Jonathon Hare
See Also:
Serialized Form

Field Summary
static java.lang.String ATTR_IDENTIFIER_NAME
          Name of identifier attribute in xml schema.
 
Fields inherited from class org.qtitools.qti.node.item.response.processing.ResponseRule
DISPLAY_NAME
 
Fields inherited from interface org.qtitools.qti.node.XmlNode
INDENT, NEW_LINE, SIMPLE_NAME_INNER_SEPARATOR, SIMPLE_NAMES_SEPARATOR
 
Constructor Summary
ProcessResponseValue(XmlObject parent)
          Creates rule.
 
Method Summary
 Expression getExpression()
          Gets expression child.
 java.lang.String getIdentifier()
          Gets value of identifier attribute.
 java.lang.String getSimpleName()
          Gets simple name of this node.
 void setExpression(Expression expression)
          Sets new expression child.
 void setIdentifier(java.lang.String identifier)
          Sets new value of identifier attribute.
protected  ValidationResult validateAttributes()
          Validates attributes of this node.
 
Methods inherited from class org.qtitools.qti.node.item.response.processing.ResponseRule
evaluate
 
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, getSourceFile, getSourceNode, getSourceString, getSourceUrl, hasChildNodes, load, load, load, load, loadAttributes, readChild, readChildren, setParent, setSourceFile, setSourceNode, setSourceString, setSourceUrl, toXmlString, toXmlString, validate, validateChildren
 
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.expression.ExpressionParent
getRequiredBaseTypes, getRequiredCardinalities
 
Methods inherited from interface org.qtitools.qti.node.XmlObject
getParent, getParentItem, getParentResult, getParentTest, setParent
 
Methods inherited from interface org.qtitools.qti.node.XmlNode
getAttributes, getClassTag, getFullName, getNodeGroups, getParentRoot, 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_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

ProcessResponseValue

public ProcessResponseValue(XmlObject parent)
Creates rule.

Parameters:
parent - parent of this rule.
Method Detail

getSimpleName

public java.lang.String getSimpleName()
Description copied from interface: XmlNode
Gets simple name of this node. Simple name contains QTI class name and some additional information to help identify node (if these informations are available).

Simple name is not so important like QTI class name. It servers mostly for displaying informations and in messages.

For example: simple name can be assessmentTest:Test (QTI class name (assessmentTest) + identifier (Test)).

Specified by:
getSimpleName in interface XmlNode
Overrides:
getSimpleName in class AbstractNode
Returns:
simple name of this node
See Also:
XmlNode.getFullName()

getIdentifier

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

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

setIdentifier

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

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

getExpression

public Expression getExpression()
Gets expression child.

Returns:
expression child
See Also:
setExpression(org.qtitools.qti.node.expression.Expression)

setExpression

public void setExpression(Expression expression)
Sets new expression child.

Parameters:
expression - new expression child
See Also:
getExpression()

validateAttributes

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

Overrides:
validateAttributes in class AbstractNode
Returns:
result of validation


Copyright © 2009. All Rights Reserved.