Interface DataTree
-
- All Superinterfaces:
DataTreeTip
,ReadOnlyDataTree
- All Known Implementing Classes:
InMemoryDataTree
public interface DataTree extends DataTreeTip, ReadOnlyDataTree
Interface representing a data tree which can be modified in an MVCC fashion.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description void
commit(DataTreeCandidate candidate)
Commit a data tree candidate.void
setEffectiveModelContext(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, validate
-
Methods inherited from interface org.opendaylight.yangtools.yang.data.tree.api.ReadOnlyDataTree
getRootPath, takeSnapshot
-
-
-
-
Method Detail
-
setEffectiveModelContext
void setEffectiveModelContext(EffectiveModelContext newModelContext)
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
void commit(DataTreeCandidate candidate)
Commit a data tree candidate.- Parameters:
candidate
- data tree candidate
-
-