Interface DataTree
- All Superinterfaces:
DataTreeTip,ReadOnlyDataTree
- All Known Implementing Classes:
InMemoryDataTree
Interface representing a data tree which can be modified in an MVCC fashion.
-
Method Summary
Modifier and TypeMethodDescriptiondefault voidcommit(@NonNull DataTreeCandidate candidate) Commit a data tree candidate.voidcommit(@NonNull DataTreeCandidate candidate, @Nullable VersionInfo info) Commit a data tree candidate, attaching an optionalVersionInfoto the resulting modification.voidsetEffectiveModelContext(@NonNull EffectiveModelContext newModelContext) Make the data tree use a new schema context.Methods inherited from interface org.opendaylight.yangtools.yang.data.tree.api.DataTreeTip
equals, hashCode, prepare, validateMethods inherited from interface org.opendaylight.yangtools.yang.data.tree.api.ReadOnlyDataTree
getRootPath, takeSnapshot
-
Method Details
-
setEffectiveModelContext
Make the data tree use a new schema context. The context will be used only by subsequent operations.- Parameters:
newModelContext- new EffectiveModelContext- Throws:
IllegalArgumentException- if the new context is incompatibleNullPointerException- if newModelContext is null
-
commit
Commit a data tree candidate.- Parameters:
candidate- data tree candidate
-
commit
Commit a data tree candidate, attaching an optionalVersionInfoto the resulting modification.- Parameters:
candidate- data tree candidateinfo- version info.
-