@Beta public final class DataTreeCandidateNodes extends Object
Modifier and Type | Method and Description |
---|---|
static void |
applyRootedNodeToCursor(DataTreeModificationCursor cursor,
YangInstanceIdentifier rootPath,
DataTreeCandidateNode node)
Applies the
node that is rooted(doesn't have an identifier) in tree A to tree B's cursor
at location specified by rootPath . |
static void |
applyRootToCursor(DataTreeModificationCursor cursor,
DataTreeCandidateNode node) |
static void |
applyToCursor(DataTreeModificationCursor cursor,
DataTreeCandidateNode node)
Applies the
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. |
static DataTreeCandidateNode |
empty(YangInstanceIdentifier.PathArgument identifier)
Return an empty
DataTreeCandidateNode identified by specified YangInstanceIdentifier.PathArgument . |
static DataTreeCandidateNode |
fromNormalizedNode(NormalizedNode<?,?> node) |
public static DataTreeCandidateNode empty(YangInstanceIdentifier.PathArgument identifier)
DataTreeCandidateNode
identified by specified YangInstanceIdentifier.PathArgument
.identifier
- Node identifierpublic static DataTreeCandidateNode fromNormalizedNode(NormalizedNode<?,?> node)
public 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 © 2018 OpenDaylight. All rights reserved.