Interface DataTreeSnapshot

All Superinterfaces:
EffectiveModelContextProvider
All Known Subinterfaces:
CursorAwareDataTreeModification, CursorAwareDataTreeSnapshot, DataTreeModification

public interface DataTreeSnapshot extends EffectiveModelContextProvider
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 Details

    • 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