public final class InMemoryDataTreeFactory extends Object implements DataTreeFactory
Modifier and Type | Method and Description |
---|---|
TipProducingDataTree |
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.
|
TipProducingDataTree |
create(TreeType treeType)
Deprecated.
|
TipProducingDataTree |
create(TreeType treeType,
YangInstanceIdentifier rootPath)
Deprecated.
|
static InMemoryDataTreeFactory |
getInstance()
Get an instance of this factory.
|
@Deprecated public TipProducingDataTree create(TreeType treeType)
DataTreeFactory
create
in interface DataTreeFactory
treeType
- Tree type.@Deprecated public TipProducingDataTree create(TreeType treeType, YangInstanceIdentifier rootPath)
DataTreeFactory
create
in interface DataTreeFactory
treeType
- Tree type.rootPath
- Root.public TipProducingDataTree create(DataTreeConfiguration treeConfig)
DataTreeFactory
create
in interface DataTreeFactory
treeConfig
- Tree configuration.public DataTree create(DataTreeConfiguration treeConfig, SchemaContext initialSchemaContext)
DataTreeFactory
create
in interface DataTreeFactory
treeConfig
- Tree configuration.public DataTree create(DataTreeConfiguration treeConfig, SchemaContext initialSchemaContext, NormalizedNodeContainer<?,?,?> initialRoot) throws DataValidationFailedException
DataTreeFactory
create
in interface DataTreeFactory
treeConfig
- Tree configuration.DataValidationFailedException
- if initial root is not valid according to the schema contextpublic static InMemoryDataTreeFactory getInstance()
Copyright © 2017 OpenDaylight. All rights reserved.