|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.qtitools.qti.node.test.flow.Node
public abstract class Node
Basic abstract node of linked list.
Contains index (position in linked list; first position = 0), references to previous and next node in linked list and assessment object (test, test part, section, item reference, precondition or branch rule).
| Field Summary | |
|---|---|
protected static org.slf4j.Logger |
logger
Logger. |
| Constructor Summary | |
|---|---|
protected |
Node(Node prev,
XmlObject object)
Constructs node. |
| Method Summary | |
|---|---|
int |
getIndex()
Gets index (position in linked list) of this node. |
Node |
getNext()
Gets next node in linked list (can be null). |
XmlObject |
getObject()
Gets assessment object (test, test part, section, item reference, precondition or branch rule) of this node. |
Node |
getPrev()
Gets previous node in linked list (can be null). |
boolean |
isBorder()
Returns true if this node is border node; false otherwise. |
boolean |
isBranchRule()
Returns true if this node is branch rule node; false otherwise. |
boolean |
isEnd()
Returns true if this node is end node; false otherwise. |
boolean |
isItemRef()
Returns true if this node is item reference node; false otherwise. |
boolean |
isJump()
Returns true if this node is jump node; false otherwise. |
boolean |
isMiddle()
Returns true if this node is middle node; false otherwise. |
boolean |
isPreCondition()
Returns true if this node is precondition node; false otherwise. |
boolean |
isStart()
Returns true if this node is start node; false otherwise. |
java.lang.String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
protected static org.slf4j.Logger logger
| Constructor Detail |
|---|
protected Node(Node prev,
XmlObject object)
prev - previous node in linked listobject - assessment object (test, test part, section, item reference, precondition or branch rule)| Method Detail |
|---|
public boolean isBorder()
Border node is node on border. It is either start or end node, and it is not middle node.
public boolean isStart()
Start node is node on beginning of test, test part, section or item reference.
public boolean isEnd()
End node is node on end of test, test part, section or item reference.
public boolean isMiddle()
Middle node is node which is between start and end node. There can be more middle nodes between one start and end node.
public boolean isItemRef()
Item reference node is middle node with item reference object.
public boolean isJump()
Jump node is middle node with precondition or branch rule object.
public boolean isPreCondition()
Precondition node is jump node with precondition object.
public boolean isBranchRule()
Branch rule node is jump node with branch rule object.
public int getIndex()
Index of first node in linked list is 0.
public Node getPrev()
public Node getNext()
public XmlObject getObject()
public java.lang.String toString()
toString in class java.lang.Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||