add Element.removeChild

This commit is contained in:
Grahame Grieve 2021-09-17 08:59:32 +10:00
parent d0917c78df
commit 23a5f47978
1 changed files with 4 additions and 0 deletions

View File

@ -975,4 +975,8 @@ public class Element extends Base {
public List<ValidationMessage> getMessages() { public List<ValidationMessage> getMessages() {
return messages; return messages;
} }
public void removeChild(String name) {
children.removeIf(n -> name.equals(n.getName()));
}
} }