org.olat.core.util.nodes
Interface INode
- All Known Subinterfaces:
- AssessableCourseNode, CourseNode, IQtiNode, SelfAssessableCourseNode, TreeNode
- All Known Implementing Classes:
- AbstractAccessableCourseNode, AbstractFeedCourseNode, AssessFeedback, Assessment, AssessmentNode, BCCourseNode, BlogCourseNode, CalCourseNode, ChecklistCourseNode, COCourseNode, CourseEditorTreeNode, CPCourseNode, DENCourseNode, DialogCourseNode, Duration, ENCourseNode, Flow, Flow_label, Flow_mat, FOCourseNode, GenericCourseNode, GenericMementoTreeNode, GenericNode, GenericQTIElement, GenericQtiNode, GenericTreeNode, Hint, HintMaterial, IQSELFCourseNode, IQSURVCourseNode, IQTESTCourseNode, Item, ItemFeedback, ItemNode, LLCourseNode, Matapplet, Matbreak, Matemtext, Material, Matimage, Mattext, Matvideo, MessageNode, MSCourseNode, NodeEvaluation, Objectives, PodcastCourseNode, Presentation, ProjectBrokerCourseNode, Raw, Render_choice, Render_fib, Response_label, Response_lid, Response_num, Response_str, ScormCourseNode, Section, SectionFeedback, SectionNode, Solution, SolutionMaterial, SPCourseNode, STCourseNode, TACourseNode, TUCourseNode, WikiCourseNode
public interface INode
Description:
- Author:
- Felix Jost
getIdent
java.lang.String getIdent()
- Returns:
- node identifier
getParent
INode getParent()
- Returns:
- parent of this node
setParent
void setParent(INode newParent)
- Parameters:
newParent -
removeFromParent
void removeFromParent()
removeAllChildren
void removeAllChildren()
getChildCount
int getChildCount()
- Returns:
- number of children attached to this node
getChildAt
INode getChildAt(int childIndex)
- Parameters:
childIndex -
- Returns:
- node at index childIndex
getPosition
int getPosition()
- Returns:
- position of this node
addChild
void addChild(INode newChild)
- Adds a child to the current node. IMPORTANT: Sets the parent of the child
to this node. I.e. detach from old parent.
- Parameters:
newChild -
insert
void insert(INode newChild,
int index)
- Parameters:
newChild - index -
remove
void remove(INode node)
- Parameters:
node -