Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /**
- * Remove all child nodes found at the given query.
- *
- * @return the {@link List} of removed children.
- */
- public List<Node> remove(String name)
- {
- List<Node> found = get(name);
- for (Node child : found)
- {
- children.remove(child);
- }
- return found;
- }
- /**
- * Remove all child nodes found at the given {@link Query}.
- *
- * @return the {@link List} of removed children.
- */
- public List<Node> remove(Query query)
- {
- List<Node> found = get(query);
- for (Node child : found)
- {
- children.remove(child);
- }
- return found;
- }
- /**
- * Remove the given child from this {@link Node}
- *
- * @return true if this node contained the given child
- */
- public boolean remove(Node child)
- {
- return children.remove(child);
- }
Advertisement
Add Comment
Please, Sign In to add comment