|
||||||||||
| 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.UniqueObject
org.qtitools.qti.node.shared.VariableDeclaration
org.qtitools.qti.node.outcome.declaration.OutcomeDeclaration
public class OutcomeDeclaration
Outcome variables are declared by outcome declarations.
| Field Summary | |
|---|---|
static java.lang.String |
ATTR_INTERPRETATION_DEFAULT_VALUE
Default value of interpretation attribute. |
static java.lang.String |
ATTR_INTERPRETATION_NAME
Name of interpretation attribute in xml schema. |
static java.lang.String |
ATTR_LONG_INTERPRETATION
Name of longInterpretation attribute in xml schema. |
static java.net.URI |
ATTR_LONG_INTERPRETATION_DEFAULT_VALUE
Default value of longInterpretation attribute. |
static java.lang.Double |
ATTR_MASTERY_VALUE_DEFAULT_VALUE
Default value of masteryValue attribute. |
static java.lang.String |
ATTR_MASTERY_VALUE_NAME
Name of masteryValue attribute in xml schema. |
static java.lang.Double |
ATTR_NORMAL_MAXIMUM_DEFAULT_VALUE
Default value of normalMaximum attribute. |
static java.lang.String |
ATTR_NORMAL_MAXIMUM_NAME
Name of normalMaximum attribute in xml schema. |
static java.lang.Double |
ATTR_NORMAL_MINIMUM_DEFAULT_VALUE
Default value of normalMinimum attribute. |
static java.lang.String |
ATTR_NORMAL_MINIMUM_NAME
Name of normalMinimum attribute in xml schema. |
static java.util.List<View> |
ATTR_VIEWS_DEFAULT_VALUE
Default value of view attribute. |
static java.lang.String |
ATTR_VIEWS_NAME
Name of view attribute in xml schema. |
static java.lang.String |
CLASS_TAG
Name of this class in xml schema. |
| Fields inherited from class org.qtitools.qti.node.shared.VariableDeclaration |
|---|
ATTR_BASE_TYPE_DEFAULT_VALUE, ATTR_BASE_TYPE_NAME, ATTR_CARDINALITY_NAME |
| Fields inherited from class org.qtitools.qti.node.UniqueObject |
|---|
ATTR_IDENTIFIER_NAME |
| Fields inherited from interface org.qtitools.qti.node.XmlNode |
|---|
INDENT, NEW_LINE, SIMPLE_NAME_INNER_SEPARATOR, SIMPLE_NAMES_SEPARATOR |
| Constructor Summary | |
|---|---|
OutcomeDeclaration(UniqueObject parent)
Creates object. |
|
| Method Summary | |
|---|---|
java.lang.String |
getClassTag()
Gets QTI class name of this node. |
java.lang.String |
getInterpretation()
Gets value of interpretation attribute. |
java.net.URI |
getLongInterpretation()
Gets value of longInterpretation attribute. |
LookupTable |
getLookupTable()
Gets lookupTable child. |
java.lang.Double |
getMasteryValue()
Gets value of masteryValue attribute. |
java.lang.Double |
getNormalMaximum()
Gets value of normalMaximum attribute. |
java.lang.Double |
getNormalMinimum()
Gets value of normalMinimum attribute. |
java.util.List<View> |
getViews()
Gets value of view attribute. |
void |
setInterpretation(java.lang.String interpretation)
Sets new value of interpretation attribute. |
void |
setLongInterpretation(java.net.URI longInterpretation)
Sets new value of longInterpretation attribute. |
void |
setLookupTable(LookupTable lookupTable)
Sets new lookupTable child. |
void |
setMasteryValue(java.lang.Double masteryValue)
Sets new value of masteryValue attribute. |
void |
setNormalMaximum(java.lang.Double normalMaximum)
Sets new value of normalMaximum attribute. |
void |
setNormalMinimum(java.lang.Double normalMinimum)
Sets new value of normalMinimum attribute. |
void |
setValueFromLookupTable(NumberValue value)
Sets value of this outcomeDeclaration from its lookupTable. |
ValidationResult |
validate()
Validates this object. |
protected ValidationResult |
validateAttributes()
Validates attributes of this node. |
| Methods inherited from class org.qtitools.qti.node.shared.VariableDeclaration |
|---|
getBaseType, getCardinality, getDefaultValue, getValue, resetValue, setBaseType, setCardinality, setDefaultValue, setValue |
| Methods inherited from class org.qtitools.qti.node.UniqueObject |
|---|
getIdentifier, getSimpleName, setIdentifier |
| 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, 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, 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.XmlNode |
|---|
getAttributes, getFullName, getNodeGroups, getParentRoot, getSourceFile, getSourceNode, getSourceString, getSourceUrl, hasChildNodes, load, load, load, load, setSourceFile, setSourceNode, setSourceString, setSourceUrl, toXmlString, toXmlString |
| Field Detail |
|---|
public static final java.lang.String CLASS_TAG
public static final java.lang.String ATTR_VIEWS_NAME
public static final java.util.List<View> ATTR_VIEWS_DEFAULT_VALUE
public static final java.lang.String ATTR_INTERPRETATION_NAME
public static final java.lang.String ATTR_INTERPRETATION_DEFAULT_VALUE
public static final java.lang.String ATTR_LONG_INTERPRETATION
public static final java.net.URI ATTR_LONG_INTERPRETATION_DEFAULT_VALUE
public static final java.lang.String ATTR_NORMAL_MAXIMUM_NAME
public static final java.lang.Double ATTR_NORMAL_MAXIMUM_DEFAULT_VALUE
public static final java.lang.String ATTR_NORMAL_MINIMUM_NAME
public static final java.lang.Double ATTR_NORMAL_MINIMUM_DEFAULT_VALUE
public static final java.lang.String ATTR_MASTERY_VALUE_NAME
public static final java.lang.Double ATTR_MASTERY_VALUE_DEFAULT_VALUE
| Constructor Detail |
|---|
public OutcomeDeclaration(UniqueObject parent)
parent - parent of this object| Method Detail |
|---|
public java.lang.String getClassTag()
XmlNodeQTI class name has very important role during loading/saving nodes.
For example: Java class name is AssessmentTest; QTI class name is assessmentTest.
getClassTag in interface XmlNodegetClassTag in class AbstractNodepublic java.util.List<View> getViews()
public java.lang.String getInterpretation()
setInterpretation(java.lang.String)public void setInterpretation(java.lang.String interpretation)
interpretation - new value of interpretation attributegetInterpretation()public java.net.URI getLongInterpretation()
setLongInterpretation(java.net.URI)public void setLongInterpretation(java.net.URI longInterpretation)
longInterpretation - new value of longInterpretation attributegetLongInterpretation()public java.lang.Double getNormalMaximum()
setNormalMaximum(java.lang.Double)public void setNormalMaximum(java.lang.Double normalMaximum)
normalMaximum - new value of normalMaximum attributegetNormalMaximum()public java.lang.Double getNormalMinimum()
setNormalMinimum(java.lang.Double)public void setNormalMinimum(java.lang.Double normalMinimum)
normalMinimum - new value of normalMinimum attributegetNormalMinimum()public java.lang.Double getMasteryValue()
setMasteryValue(java.lang.Double)public void setMasteryValue(java.lang.Double masteryValue)
masteryValue - new value of masteryValue attributegetMasteryValue()public LookupTable getLookupTable()
setLookupTable(org.qtitools.qti.node.outcome.declaration.LookupTable)public void setLookupTable(LookupTable lookupTable)
lookupTable - new lookupTable childgetLookupTable()public void setValueFromLookupTable(NumberValue value)
value - source value in lookupTableprotected ValidationResult validateAttributes()
AbstractNode
validateAttributes in class VariableDeclarationpublic ValidationResult validate()
Validatable
validate in interface Validatablevalidate in class AbstractNode
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||