com.polarion.alm.tracker.model.IModule.IStructureNode


FIELDS
Modifiers and TypeNameDescription
String STRUCTURE_ID
String KEY_WORKITEM
String KEY_CHILDREN
String KEY_OUTLINENUMBER
String KEY_EXTERNAL
METHODS
Modifiers and TypeNameDescription
IWorkItem getWorkItem()
IStructureNode getParent()
List getChildren() Unmodifiable list of child nodes. For modifications of the tree use the addChild methods which remove the child from children of previous parent. There is no "removeChild" because it is not possible to remove work item from the module this way. To remove work item use the removeWorkItem method of the module.
void addChild(IStructureNode) Each node can be child only of one parent, so adding it as a child of new parent removes it from children of previous parent.

When adding child to Live Document the child might be added to different parent (but in the same subtree). This is because the document flow is retained and it is not possible for a heading to have plain child Work Items in the list of children after other headings (headings are always last).

void addChild(IStructureNode,int) Each node can be child only of one parent, so adding it as a child of new parent removes it from children of previous parent.

When adding child to Live Document the child might be added to different parent (but in the same subtree). This is because the document flow is retained and it is not possible for a heading to have plain child Work Items in the list of children after other headings (headings are always last).

void accept(IVisitor) Accepts the visitor on this node and if the accept method of the visitor returns true, than calls accept method on all children.
IStructureNode select(ISelector) Return node for which the select method of the selector returns true.
String getOutlineNumber() Returns outline number of this node. If the number is not defined, either empty string or null could be returned.
boolean isExternal()
int getLayout()
IModule getModule()
void moveNodeAfter(IStructureNode)
void moveNodeBefore(IStructureNode)
void moveNodeAsFirstChild(IStructureNode)
void moveNodeAsLastChild(IStructureNode)
void updateWorkItemLayout(int)
int changeNodeTypeToWorkItem() Changes the representation of the structure node on the Home Page content of the Module from HEADING type to the WORK ITEM type (e.g., Requirement).
void updateWorkItemLevel(int) Updates the level of Work Item.
void removeWorkItemLevel() Removes the level attribute from the corresponding node.
void decreaseWorkItemLevel() Decrease Level of Work Item by 1.
void changeNodeTypeToHeading() Changes the representation of the structure node on the Home Page content of the Module from WORK ITEM type (e.g., Requirement) to the HEADING type.

Back to Index