public interface XmlRootCopy<T>
XmlRootHandle
. This tree can
be traversed and modified without those
modifications being reflected in the parent.
When the merge()
method is called
the parent tree will get all the changes
made to this tree in one commit. The XmlRootCopy
allows for multiple changes to be made to the
root and its children in one atomic unit (either
all changes are made to the parent or none of them)
If the parent was changed after this copy
was created then the merge will fail. The
method isMergeable()
can be used
to determine if this copy can still be merged
back into the parent
Modifier and Type | Method and Description |
---|---|
T |
getChildRoot()
Gets the root of the JavaBean tree
|
XmlRootHandle<T> |
getParent()
Gets the XmlRootHandle from which this copy was created
|
boolean |
isMergeable()
Returns true if this child copy can still
have merge called on it succesfully
|
void |
merge()
Merges the changes made to this tree into
the parent tree
|
XmlRootHandle<T> getParent()
T getChildRoot()
boolean isMergeable()
void merge()
Copyright © 2009–2023 Oracle Corporation. All rights reserved.