|
||||||||||
| 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.result.ItemVariable
public abstract class ItemVariable
Variable is value (of any cardinality and/or baseType) with identifier.
| Field Summary | |
|---|---|
static BaseType |
ATTR_BASE_TYPE_DEFAULT_VALUE
Default value of baseType attribute. |
static java.lang.String |
ATTR_BASE_TYPE_NAME
Name of baseType attribute in xml schema. |
static java.lang.String |
ATTR_CARDINALITY_NAME
Name of cardinality attribute in xml schema. |
static java.lang.String |
ATTR_IDENTIFIER_NAME
Name of identifier attribute in xml schema. |
static java.lang.String |
DISPLAY_NAME
Display name of this class. |
| Fields inherited from interface org.qtitools.qti.node.XmlNode |
|---|
INDENT, NEW_LINE, SIMPLE_NAME_INNER_SEPARATOR, SIMPLE_NAMES_SEPARATOR |
| Constructor Summary | |
|---|---|
ItemVariable(AbstractResult parent)
Creates object. |
|
| Method Summary | |
|---|---|
BaseType |
getBaseType()
Gets value of baseType attribute. |
Cardinality |
getCardinality()
Gets value of cardinality attribute. |
java.lang.String |
getIdentifier()
Gets value of identifier attribute. |
java.lang.String |
getSimpleName()
Gets simple name of this node. |
void |
setBaseType(BaseType baseType)
Sets new value of baseType attribute. |
void |
setCardinality(Cardinality cardinality)
Sets new value of cardinality attribute. |
void |
setIdentifier(java.lang.String identifier)
Sets new value of identifier attribute. |
| 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, validateAttributes, 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, 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 |
|---|
public static final java.lang.String DISPLAY_NAME
public static final java.lang.String ATTR_IDENTIFIER_NAME
public static final java.lang.String ATTR_CARDINALITY_NAME
public static final java.lang.String ATTR_BASE_TYPE_NAME
public static final BaseType ATTR_BASE_TYPE_DEFAULT_VALUE
| Constructor Detail |
|---|
public ItemVariable(AbstractResult parent)
parent - parent of this object| Method Detail |
|---|
public java.lang.String getSimpleName()
XmlNodeSimple 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)).
getSimpleName in interface XmlNodegetSimpleName in class AbstractNodeXmlNode.getFullName()public java.lang.String getIdentifier()
setIdentifier(java.lang.String)public void setIdentifier(java.lang.String identifier)
identifier - new value of identifier attributegetIdentifier()public Cardinality getCardinality()
setCardinality(org.qtitools.qti.value.Cardinality)public void setCardinality(Cardinality cardinality)
cardinality - new value of cardinality attributegetCardinality()public BaseType getBaseType()
setBaseType(org.qtitools.qti.value.BaseType)public void setBaseType(BaseType baseType)
baseType - new value of baseType attributegetBaseType()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||