|
||||||||||
| 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
public abstract class AbstractObject
Parent of all xml objects.
| Field Summary |
|---|
| Fields inherited from interface org.qtitools.qti.node.XmlNode |
|---|
INDENT, NEW_LINE, SIMPLE_NAME_INNER_SEPARATOR, SIMPLE_NAMES_SEPARATOR |
| Constructor Summary | |
|---|---|
AbstractObject(XmlObject parent)
Constructs object. |
|
| Method Summary | |
|---|---|
XmlObject |
getParent()
Gets parent of this node or null (if node is root; for example AssessmentTest). |
AssessmentItem |
getParentItem()
Gets root assessmentItem or null (if root is different type). |
AssessmentResult |
getParentResult()
Gets root assessmentResult or null (if root is different type). |
AssessmentTest |
getParentTest()
Gets root assessmentTest or null (if root is different type). |
void |
setParent(XmlObject parent)
Sets the parent of this object. |
| 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, 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, 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 |
| Constructor Detail |
|---|
public AbstractObject(XmlObject parent)
parent - parent of constructed object (can be null for root objects)| Method Detail |
|---|
public XmlObject getParent()
XmlNodeWhile testing some nodes (for example expressions) don't have properly set parent, but it is usable only for testing. (Some nodes cannot exists without parent even for testing).
getParent in interface XmlNodegetParent in interface XmlObjectgetParent in class AbstractNodepublic void setParent(XmlObject parent)
XmlObject
setParent in interface XmlObjectparent - Parent object to setpublic AssessmentTest getParentTest()
XmlObject
getParentTest in interface XmlObjectpublic AssessmentItem getParentItem()
XmlObject
getParentItem in interface XmlObjectpublic AssessmentResult getParentResult()
XmlObject
getParentResult in interface XmlObject
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||