@Beta public final class DataTreeCandidateNodes extends Object
public static @NonNull DataTreeCandidateNode empty(YangInstanceIdentifier.PathArgument identifier)
DataTreeCandidateNode
identified by specified YangInstanceIdentifier.PathArgument
.identifier
- Node identifier@Deprecated public static @NonNull DataTreeCandidateNode fromNormalizedNode(NormalizedNode<?,?> node)
public static @NonNull DataTreeCandidateNode unmodified(NormalizedNode<?,?> node)
DataTreeCandidateNode
identified by specified NormalizedNode
.node
- Unchanged normalized nodepublic static @NonNull DataTreeCandidateNode written(NormalizedNode<?,?> node)
DataTreeCandidateNode
pretending specified node was written without the data exsting beforehand.node
- Unchanged normalized nodeNullPointerException
- if node
is nullpublic static @NonNull Collection<DataTreeCandidateNode> containerDelta(@Nullable NormalizedNodeContainer<?,YangInstanceIdentifier.PathArgument,NormalizedNode<?,?>> oldData, @Nullable NormalizedNodeContainer<?,YangInstanceIdentifier.PathArgument,NormalizedNode<?,?>> newData)
DataTreeCandidateNode
s summarizing the changes between the contents of two
NormalizedNodeContainer
s.oldData
- Old data container, may be nullnewData
- New data container, may be nullpublic static @Nullable DataTreeCandidateNode containerDelta(@Nullable NormalizedNodeContainer<?,YangInstanceIdentifier.PathArgument,NormalizedNode<?,?>> oldData, @Nullable NormalizedNodeContainer<?,YangInstanceIdentifier.PathArgument,NormalizedNode<?,?>> newData, @NonNull YangInstanceIdentifier.PathArgument child)
DataTreeCandidateNode
s summarizing the change in a child, identified by a
YangInstanceIdentifier.PathArgument
, between two NormalizedNodeContainer
s.oldData
- Old data container, may be nullnewData
- New data container, may be nullDataTreeCandidateNode
describing the change, or null if the node is not presentpublic static void applyToCursor(DataTreeModificationCursor cursor, DataTreeCandidateNode node)
node
to the cursor
, note that if the top node of (@code node} is RootNode
you need to use applyRootedNodeToCursor
method that works with rooted node candidates.cursor
- cursor from the modification we want to apply the node
tonode
- candidate tree to applypublic static void applyRootedNodeToCursor(DataTreeModificationCursor cursor, YangInstanceIdentifier rootPath, DataTreeCandidateNode node)
node
that is rooted(doesn't have an identifier) in tree A to tree B's cursor
at location specified by rootPath
.cursor
- cursor from the modification we want to apply the node
torootPath
- path in the cursor
's tree we want to apply to candidate tonode
- candidate tree to applypublic static void applyRootToCursor(DataTreeModificationCursor cursor, DataTreeCandidateNode node)
Copyright © 2019 OpenDaylight. All rights reserved.