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 Details

    • setEffectiveModelContext

      void setEffectiveModelContext(@NonNull 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 incompatible
      NullPointerException - if newModelContext is null
    • commit

      default void commit(@NonNull DataTreeCandidate candidate)
      Commit a data tree candidate.
      Parameters:
      candidate - data tree candidate
    • commit

      void commit(@NonNull DataTreeCandidate candidate, @Nullable VersionInfo info)
      Commit a data tree candidate, attaching an optional VersionInfo to the resulting modification.
      Parameters:
      candidate - data tree candidate
      info - version info.