Uses of Interface
com.madzera.happytree.Element
Packages that use Element
-
Uses of Element in com.madzera.happytree
Methods in com.madzera.happytree that return ElementModifier and TypeMethodDescription<T> Element<T> Copies the respectivefromelement into thetoelement in another tree session.<T> Element<T> TreeManager.createElement(Object id, Object parent, T wrappedNode) Creates an element with theid,parentand the wrapped object node.<T> Element<T> Cuts thefromelement into thetoelement, whether for the same session or not.<T> Element<T> Cuts thefromelement into thetoelement, inside of the same session.Element.getElementById(Object id) Searches within the current element for an element according to theidparameter.<T> Element<T> TreeManager.getElementById(Object id) Obtains an element by@Idin the current tree session.<T> Element<T> TreeManager.persistElement(Element<T> newElement) Persists a new element into the current tree session.<T> Element<T> TreeManager.removeElement(Element<T> element) Removes the corresponding element from the tree session and returns the removed element itself.<T> Element<T> TreeManager.removeElement(Object id) Removes the element by its@Id.<T> Element<T> TreeManager.root()Returns the root of the tree in this current session.<T> Element<T> TreeSession.tree()Returns the entire tree session structure, represented by the root element.<T> Element<T> TreeManager.updateElement(Element<T> element) Updates the state of the element to the tree.Methods in com.madzera.happytree that return types with arguments of type ElementModifier and TypeMethodDescriptionElement.getChildren()Obtains all child elements of the current element.Searches for elements that satisfy a specific condition within this element and its children recursively.Searches for elements that satisfy a specific condition within the entire tree structure.Methods in com.madzera.happytree with parameters of type ElementModifier and TypeMethodDescriptionvoidAdds a new child element into the current element.booleanTreeManager.containsElement(Element<?> element) Verifies that the current tree session has the specifiedelement.<T> booleanTreeManager.containsElement(Element<T> parent, Element<T> descendant) Verifies whether theparentelement contains inside of it thedescendantelement in this current session.<T> Element<T> Copies the respectivefromelement into thetoelement in another tree session.<T> Element<T> Cuts thefromelement into thetoelement, whether for the same session or not.<T> Element<T> TreeManager.persistElement(Element<T> newElement) Persists a new element into the current tree session.voidElement.removeChild(Element<T> child) Removes the specifiedchildelement from the children list of the current element.<T> Element<T> TreeManager.removeElement(Element<T> element) Removes the corresponding element from the tree session and returns the removed element itself.<T> Element<T> TreeManager.updateElement(Element<T> element) Updates the state of the element to the tree.Method parameters in com.madzera.happytree with type arguments of type ElementModifier and TypeMethodDescriptionvoidElement.addChildren(Collection<Element<T>> children) Adds a list of child elements to be concatenated to the current children list.voidApplies a function to be performed on this element and all its children recursively within the tree structure.voidApplies a function to be performed within this element that satisfies the specified condition.voidApplies a function to be performed within this element that satisfies the specified condition.<T> voidApplies a function to be performed on all elements within the entire tree structure.<T> voidApplies a function to be performed on elements that satisfy a specific condition within the entire tree structure.<T> voidApplies a function to be performed on elements that satisfy a specific condition within the entire tree structure.voidElement.removeChildren(Collection<Element<T>> children) Removes a subset of elements within this one.Searches for elements that satisfy a specific condition within this element and its children recursively.Searches for elements that satisfy a specific condition within the entire tree structure.