java.lang.Object
org.opendaylight.yangtools.yang.data.tree.api.DataTreeConfiguration
All Implemented Interfaces:
Immutable

@Beta public class DataTreeConfiguration extends Object implements Immutable
DataTree configuration class.

TreeConfig supports currently the following options:

  • treeType
  • enable/disable unique indexes and unique constraint validation
  • enable/disable mandatory nodes validation

TreeConfig can be easily extended in order to support further data tree configuration options, like following:

  • enable/disable case exclusion validation
  • enable/disable other indexes
  • other schema aware validation options

This can be useful when strict validation is not required or useful for some reasons.

  • Field Details

  • Method Details

    • getRootPath

      public @NonNull org.opendaylight.yangtools.yang.data.api.YangInstanceIdentifier getRootPath()
    • getTreeType

      public @NonNull TreeType getTreeType()
    • isUniqueIndexEnabled

      public boolean isUniqueIndexEnabled()
    • isMandatoryNodesValidationEnabled

      public boolean isMandatoryNodesValidationEnabled()
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • getDefault

      public static DataTreeConfiguration getDefault(TreeType treeType)
    • builder

      public static @NonNull DataTreeConfiguration.Builder builder(TreeType treeType)
    • copyBuilder

      public @NonNull DataTreeConfiguration.Builder copyBuilder()