@MetaInfServices public final class InMemoryDataTreeFactory extends Object implements DataTreeFactory
| Constructor and Description |
|---|
InMemoryDataTreeFactory() |
| Modifier and Type | Method and Description |
|---|---|
DataTree |
create(DataTreeConfiguration treeConfig)
Create a new data tree based on specified configuration, with a best-guess root.
|
DataTree |
create(DataTreeConfiguration treeConfig,
SchemaContext initialSchemaContext)
Create a new data tree based on specified configuration, with a root node derived from the schema context lookup
of the configuration.
|
DataTree |
create(DataTreeConfiguration treeConfig,
SchemaContext initialSchemaContext,
NormalizedNodeContainer<?,?,?> initialRoot)
Create a new data tree based on specified configuration, with the specified node.
|
public DataTree create(DataTreeConfiguration treeConfig)
DataTreeFactory
Correctness note: this method may not accurately initialize the root node in certain non-root scenarios due to
the impossibility to accurately derive root type from plain YangInstanceIdentifier. Using
DataTreeFactory.create(DataTreeConfiguration, SchemaContext) is recommended, as it does not suffer from this
shortcoming.
create in interface DataTreeFactorytreeConfig - Tree configuration.public DataTree create(DataTreeConfiguration treeConfig, SchemaContext initialSchemaContext)
DataTreeFactorycreate in interface DataTreeFactorytreeConfig - Tree configuration.public DataTree create(DataTreeConfiguration treeConfig, SchemaContext initialSchemaContext, NormalizedNodeContainer<?,?,?> initialRoot) throws DataValidationFailedException
DataTreeFactorycreate in interface DataTreeFactorytreeConfig - Tree configuration.DataValidationFailedException - if initial root is not valid according to the schema contextCopyright © 2019 OpenDaylight. All rights reserved.