This adds convenience methods to instantiate Builder, potentially
initialized from a base configuration.
Change-Id: I1cb5db4a0d097856dec5ebcdf9490d89fa349893
Signed-off-by: Robert Varga <robert.varga@pantheon.tech>
}
}
+ public static Builder builder(final TreeType treeType) {
+ return new Builder(treeType);
+ }
+
+ public Builder copyBuilder() {
+ return new Builder(treeType)
+ .setMandatoryNodesValidation(isMandatoryNodesValidationEnabled())
+ .setUniqueIndexes(isUniqueIndexEnabled())
+ .setRootPath(getRootPath());
+ }
+
public static class Builder implements org.opendaylight.yangtools.concepts.Builder<DataTreeConfiguration> {
private final TreeType treeType;
private YangInstanceIdentifier rootPath;