@FunctionalInterface public interface ChildElementConsumer extends Consumer<Element>, Serializable
Element
instance.Node.attachExistingElement(String, Element, ChildElementConsumer)
Modifier and Type | Method and Description |
---|---|
void |
accept(Element child)
This callback method is called when the request initiated by the
Node.appendChild(Element...) method is successfully executed. |
default void |
onError(Node<?> parent,
String tag,
Element previousSibling)
This callback method is called when the requested client element cannot
be found in the provided
parent by the tag name after the
previousSibling . |
void accept(Element child)
Node.appendChild(Element...)
method is successfully executed.
The parameter value is the element created by the request.
default void onError(Node<?> parent, String tag, Element previousSibling)
parent
by the tag
name after the
previousSibling
.parent
- the server side parent node, not null
tag
- the tag name of the requested element, not null
previousSibling
- the previous sibling element for the requested element, may be
null
Copyright © 2021. All rights reserved.