@Beta public class SimpleSchemaContext extends AbstractSchemaContext
AbstractSchemaContext
which performs some amount of indexing to speed up common
SchemaContext operations. This implementation assumes input modules are consistent and does not perform
any extensive analysis to ensure the resulting object complies to SchemaContext interface.DocumentedNode.WithStatus
NAME_REVISION_COMPARATOR, REVISION_COMPARATOR
NAME
Modifier | Constructor and Description |
---|---|
protected |
SimpleSchemaContext(Set<Module> modules) |
Modifier and Type | Method and Description |
---|---|
protected com.google.common.base.MoreObjects.ToStringHelper |
addToStringAttributes(com.google.common.base.MoreObjects.ToStringHelper toStringHelper) |
static SimpleSchemaContext |
forModules(Set<Module> modules)
Create a new instance from specified modules.
|
protected Map<QNameModule,Module> |
getModuleMap()
Returns the namespace+revision-to-module mapping.
|
Set<Module> |
getModules()
Returns modules which are part of the schema context.
|
protected com.google.common.collect.SetMultimap<URI,Module> |
getNamespaceToModules()
Returns the namespace-to-module mapping.
|
protected com.google.common.collect.SetMultimap<String,Module> |
getNameToModules()
Returns the module name-to-module mapping.
|
String |
toString() |
createModuleSet, findDataChildByName, findModule, findModule, findModules, findModules, getAvailableAugmentations, getChildNodes, getDataDefinitions, getExtensions, getGroupings, getNotifications, getOperations, getPath, getQName, getStatus, getTypeDefinitions, getUnknownSchemaNodes, getUses, isAddedByUses, isAugmenting, isConfiguration, isPresenceContainer
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
findDataTreeChild, findModule, findModule, findModule, findModule, findModule, getActions, getDescription, getMustConstraints, getReference, getWhenCondition
findDataTreeChild, findDataTreeChild, getDataChildByName
public static SimpleSchemaContext forModules(Set<Module> modules)
public final Set<Module> getModules()
SchemaContext
Module.getName()
or Module.getNamespace()
,
modules having the same attribute are encountered newest revision first.protected Map<QNameModule,Module> getModuleMap()
AbstractSchemaContext
getModuleMap
in class AbstractSchemaContext
protected final com.google.common.collect.SetMultimap<URI,Module> getNamespaceToModules()
AbstractSchemaContext
getNamespaceToModules
in class AbstractSchemaContext
protected final com.google.common.collect.SetMultimap<String,Module> getNameToModules()
AbstractSchemaContext
getNameToModules
in class AbstractSchemaContext
protected com.google.common.base.MoreObjects.ToStringHelper addToStringAttributes(com.google.common.base.MoreObjects.ToStringHelper toStringHelper)
Copyright © 2019 OpenDaylight. All rights reserved.