
Untitled
By:
lincolnthree 
on
Mar 16th, 2011 | syntax:
None | size: 0.88 KB | views:
83 | expires: Never
/**
* 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);
}