Class DataTreeConfiguration
- java.lang.Object
-
- org.opendaylight.yangtools.yang.data.tree.api.DataTreeConfiguration
-
- All Implemented Interfaces:
Immutable
,MutationBehaviour<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.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
DataTreeConfiguration.Builder
-
Field Summary
Fields Modifier and Type Field Description static DataTreeConfiguration
DEFAULT_CONFIGURATION
static DataTreeConfiguration
DEFAULT_OPERATIONAL
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static @NonNull DataTreeConfiguration.Builder
builder(TreeType treeType)
@NonNull DataTreeConfiguration.Builder
copyBuilder()
static DataTreeConfiguration
getDefault(TreeType treeType)
@NonNull YangInstanceIdentifier
getRootPath()
@NonNull TreeType
getTreeType()
boolean
isMandatoryNodesValidationEnabled()
boolean
isUniqueIndexEnabled()
String
toString()
-
-
-
Field Detail
-
DEFAULT_CONFIGURATION
public static final DataTreeConfiguration DEFAULT_CONFIGURATION
-
DEFAULT_OPERATIONAL
public static final DataTreeConfiguration DEFAULT_OPERATIONAL
-
-
Method Detail
-
getRootPath
public @NonNull YangInstanceIdentifier getRootPath()
-
getTreeType
public @NonNull TreeType getTreeType()
-
isUniqueIndexEnabled
public boolean isUniqueIndexEnabled()
-
isMandatoryNodesValidationEnabled
public boolean isMandatoryNodesValidationEnabled()
-
getDefault
public static DataTreeConfiguration getDefault(TreeType treeType)
-
builder
public static @NonNull DataTreeConfiguration.Builder builder(TreeType treeType)
-
copyBuilder
public @NonNull DataTreeConfiguration.Builder copyBuilder()
-
-