|
||||||||||
| 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.mathml.Math
public class Math
Implements a QTI MathML block. Only supports children in the form of UnsupportedBlock, so validation of the content is left to the user. (Obviously xml schema validation could help!)
| Field Summary | |
|---|---|
static java.lang.String |
ATTR_DEFAULT_NAME_SPACE_NAME
Name of xmlns attribute in xml schema. |
static java.lang.String |
ATTR_DEFAULT_NAME_SPACE_VALUE
Value of xmlns attribute. |
static java.lang.String |
CLASS_TAG
Name of this class 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.content.basic.BlockStatic |
|---|
DISPLAY_NAME |
| Fields inherited from interface org.qtitools.qti.node.content.basic.FlowStatic |
|---|
DISPLAY_NAME |
| Fields inherited from interface org.qtitools.qti.node.content.basic.InlineStatic |
|---|
DISPLAY_NAME |
| Constructor Summary | |
|---|---|
Math(XmlObject parent)
Constructs object. |
|
| Method Summary | |
|---|---|
protected java.lang.String |
bodyToXmlString(int depth,
boolean printDefaultAttributes)
Prints body (children and/or text content) of this node into xml string. |
java.util.List<? extends XmlNode> |
getChildren()
Get A list of the content child nodes of this element |
java.lang.String |
getClassTag()
Gets QTI class name of this node. |
void |
load(org.w3c.dom.Node sourceNode)
Loads this node from given source node (DOM). |
protected void |
readChild(org.w3c.dom.Node node)
Reads one child from given xml source. |
protected void |
readChildren(org.w3c.dom.Node node)
Reads all children nodes and/or content from given xml source. |
protected ValidationResult |
validateAttributes()
Validates attributes of this node. |
| Methods inherited from class org.qtitools.qti.node.content.BodyElement |
|---|
appendChild, evaluate, 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, getAttributes, getFullName, getIndent, getNode, getNode, getNode, getNodeGroups, getParentRoot, getSimpleName, getSourceFile, getSourceNode, getSourceString, getSourceUrl, hasChildNodes, load, load, load, loadAttributes, 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 |
| Field Detail |
|---|
public static java.lang.String CLASS_TAG
public static final java.lang.String ATTR_DEFAULT_NAME_SPACE_NAME
public static final java.lang.String ATTR_DEFAULT_NAME_SPACE_VALUE
| Constructor Detail |
|---|
public Math(XmlObject parent)
parent - parent of constructed 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<? extends XmlNode> getChildren()
BodyElement
getChildren in class BodyElementprotected void readChildren(org.w3c.dom.Node node)
AbstractNode
readChildren in class AbstractNodenode - xml sourceprotected void readChild(org.w3c.dom.Node node)
AbstractNode
readChild in class AbstractNodenode - xml source
protected java.lang.String bodyToXmlString(int depth,
boolean printDefaultAttributes)
AbstractNode
bodyToXmlString in class AbstractNodedepth - depth in xml tree (root = 0)printDefaultAttributes - whether print attributes with default values
public void load(org.w3c.dom.Node sourceNode)
XmlNode
load in interface XmlNodeload in class AbstractNodesourceNode - source node (DOM) for this nodeprotected ValidationResult validateAttributes()
AbstractNode
validateAttributes in class AbstractNode
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||