org.qtitools.qti.node
Interface XmlObject

All Superinterfaces:
java.io.Serializable, Validatable, XmlNode
All Known Subinterfaces:
Expression, ExpressionParent, FieldValueParent
All Known Implementing Classes:
A, Abbr, AbstractAtomicBlock, AbstractExpression, AbstractJump, AbstractObject, AbstractPart, AbstractResult, AbstractSimpleBlock, AbstractSimpleInline, Acronym, Address, And, AnyN, AreaMapEntry, AreaMapping, AssessmentItem, AssessmentItemRef, AssessmentResult, AssessmentSection, AssessmentTest, AssociableChoice, AssociableHotspot, AssociateInteraction, B, BaseValue, Big, BlockInteraction, Blockquote, BodyElement, Br, BranchRule, CandidateComment, CandidateResponse, Caption, Choice, ChoiceInteraction, Cite, Code, Col, Colgroup, ContainerBlock, ContainerSize, Contains, Context, ControlObject, Correct, CorrectResponse, CustomInteraction, CustomOperator, Dd, Default, DefaultValue, Delete, Dfn, Div, Divide, Dl, DlElement, DrawingInteraction, Dt, DurationGte, DurationLt, Em, EndAttemptInteraction, Equal, EqualRounded, ExitResponse, ExitTemplate, ExitTest, ExtendedTextInteraction, FeedbackBlock, FeedbackElement, FeedbackInline, FieldValue, FieldValue, Gap, GapChoice, GapImg, GapMatchInteraction, GapText, GraphicAssociateInteraction, GraphicGapMatchInteraction, GraphicInteraction, GraphicOrderInteraction, Gt, Gte, H1, H2, H3, H4, H5, H6, HotspotChoice, HotspotInteraction, Hottext, HottextInteraction, Hr, I, Identification, Img, Index, InlineChoice, InlineChoiceInteraction, InlineInteraction, Inside, IntegerDivide, IntegerModulus, IntegerToFloat, Interaction, InterpolationTable, InterpolationTableEntry, IsNull, ItemBody, ItemResult, ItemSessionControl, ItemSubset, ItemVariable, Kbd, Li, LookupExpression, LookupOutcomeValue, LookupOutcomeValue, LookupTable, LookupTableEntry, Lt, Lte, MapEntry, Mapping, MapResponse, MapResponsePoint, Match, MatchInteraction, MatchTable, MatchTableEntry, Math, MediaInteraction, Member, ModalFeedback, Multiple, Not, Null, NumberCorrect, NumberIncorrect, NumberPresented, NumberResponded, NumberSelected, Object, Ol, Or, Ordered, Ordering, OrderInteraction, OutcomeCondition, OutcomeConditionChild, OutcomeConditionExpressionChild, OutcomeDeclaration, OutcomeElse, OutcomeElseIf, OutcomeIf, OutcomeMaximum, OutcomeMinimum, OutcomeMinMax, OutcomeProcessing, OutcomeProcessingFragment, OutcomeRule, OutcomeVariable, P, Param, PatternMatch, PositionObjectInteraction, PositionObjectStage, Power, Pre, PreCondition, PrintedVariable, ProcessOutcomeValue, ProcessResponseValue, ProcessTemplateValue, Product, Prompt, Q, Random, RandomEx, RandomExpression, RandomFloat, RandomFloatEx, RandomInteger, RandomIntegerEx, RecordEx, ResponseCondition, ResponseConditionChild, ResponseConditionExpressionChild, ResponseDeclaration, ResponseElse, ResponseElseIf, ResponseIf, ResponseProcessing, ResponseProcessingFragment, ResponseRule, ResponseVariable, Round, RubricBlock, Samp, SectionPart, Selection, SelectPointInteraction, SessionIdentifier, SetCorrectResponse, SetDefaultValue, SetOutcomeValue, SetOutcomeValue, SetTemplateValue, SimpleAssociableChoice, SimpleChoice, SimpleMatchSet, SliderInteraction, Small, Span, StringMatch, Strong, Stylesheet, Sub, Substring, Subtract, Sum, Sup, Table, TableCell, Tbody, Td, TemplateBlock, TemplateCondition, TemplateConditionChild, TemplateConditionExpressionChild, TemplateDeclaration, TemplateDefault, TemplateElement, TemplateElse, TemplateElseIf, TemplateIf, TemplateInline, TemplateProcessing, TemplateRule, TemplateVariable, TestFeedback, TestPart, TestResult, TestVariables, TextEntryInteraction, TextRun, Tfoot, Th, Thead, TimeLimit, Tr, Truncate, Tt, Ul, UniqueObject, UnsupportedBlock, UploadInteraction, Var, Variable, VariableDeclaration, VariableMapping, Weight

public interface XmlObject
extends XmlNode

Parent of all xml objects.

Author:
Jiri Kajaba

Field Summary
 
Fields inherited from interface org.qtitools.qti.node.XmlNode
INDENT, NEW_LINE, SIMPLE_NAME_INNER_SEPARATOR, SIMPLE_NAMES_SEPARATOR
 
Method Summary
 XmlObject getParent()
          Gets parent of this object or null (if object 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 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
 

Method Detail

getParent

XmlObject getParent()
Gets parent of this object or null (if object is root; for example AssessmentTest).

While testing some objects (for example expressions) don't have properly set parent, but it is usable only for testing. (Some objects cannot exists without parent even for testing).

Specified by:
getParent in interface XmlNode
Returns:
parent of this object or null (if object is root; for example AssessmentTest)

setParent

void setParent(XmlObject parent)
Sets the parent of this object.

Parameters:
parent - Parent object to set

getParentTest

AssessmentTest getParentTest()
Gets root assessmentTest or null (if root is different type).

Returns:
root assessmentTest or null (if root is different type)

getParentItem

AssessmentItem getParentItem()
Gets root assessmentItem or null (if root is different type).

Returns:
root assessmentItem or null (if root is different type)

getParentResult

AssessmentResult getParentResult()
Gets root assessmentResult or null (if root is different type).

Returns:
root assessmentResult or null (if root is different type)


Copyright © 2009. All Rights Reserved.