@Beta public final class LazyDataTreeModification<T extends TreeNode> extends Object implements DataTreeModification<T>
DataTreeModification
based on DataTreeCandidate
.
DataTreeModification
represents Data tree change event, but whole tree is not translated or
resolved eagerly, but only child nodes which are directly accessed by user of tree node modification.
Modifier and Type | Method and Description |
---|---|
static <T extends TreeNode> |
create(BindingToNormalizedNodeCodec codec,
DOMDataTreeCandidate candidate)
Create instance of Binding date tree modification according to DOM candidate of changes.
|
static <T extends TreeNode> |
from(BindingToNormalizedNodeCodec codec,
Collection<org.opendaylight.yangtools.yang.data.api.schema.tree.DataTreeCandidate> domChanges,
LogicalDatastoreType datastoreType)
DOM data changes to new Binding data.
|
TreeNodeModification<T> |
getRootNode()
Get the modification root node.
|
DataTreeIdentifier<T> |
getRootPath()
Get the modification root path.
|
@Nonnull public TreeNodeModification<T> getRootNode()
DataTreeModification
getRootNode
in interface DataTreeModification<T extends TreeNode>
@Nonnull public DataTreeIdentifier<T> getRootPath()
DataTreeModification
getRootPath
in interface DataTreeModification<T extends TreeNode>
public static <T extends TreeNode> DataTreeModification<T> create(BindingToNormalizedNodeCodec codec, DOMDataTreeCandidate candidate)
codec
- - codec for modificated datacandidate
- - changted DOM datapublic static <T extends TreeNode> Collection<DataTreeModification<T>> from(BindingToNormalizedNodeCodec codec, Collection<org.opendaylight.yangtools.yang.data.api.schema.tree.DataTreeCandidate> domChanges, LogicalDatastoreType datastoreType)
codec
- - Binding to DOM codecdomChanges
- - DOM data changesdatastoreType
- - datastore typeCopyright © 2019 OpenDaylight. All rights reserved.