Interface DataTreeSnapshot
- All Known Subinterfaces:
CursorAwareDataTreeModification,CursorAwareDataTreeSnapshot,DataTreeModification
public interface DataTreeSnapshot
Read-only snapshot of a
DataTree. The snapshot is stable and isolated, e.g. data tree changes occurring after
the snapshot has been taken are not visible through the snapshot.-
Method Summary
Modifier and TypeMethodDescription@NonNull EffectiveModelContextReturn theEffectiveModelContexteffective at the time this snapshot was taken.@NonNull DataTreeModificationCreate a new data tree modification based on this snapshot, using the specified data application strategy.Read a particular node from the snapshot.
-
Method Details
-
modelContext
@NonNull EffectiveModelContext modelContext()Return theEffectiveModelContexteffective at the time this snapshot was taken.- Returns:
- the
EffectiveModelContexteffective at the time this snapshot was taken
-
readNode
Read a particular node from the snapshot.- Parameters:
path- Path of the node- Returns:
- Optional result encapsulating the presence and value of the node
-
newModification
@NonNull DataTreeModification newModification()Create a new data tree modification based on this snapshot, using the specified data application strategy.- Returns:
- A new data tree modification
-