@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.WithStatusNAME_REVISION_COMPARATOR, REVISION_COMPARATORNAME| 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, isPresenceContainerclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitfindDataTreeChild, findModule, findModule, findModule, findModule, findModule, getActions, getDescription, getMustConstraints, getReference, getWhenConditionfindDataTreeChild, findDataTreeChild, getDataChildByNamepublic static SimpleSchemaContext forModules(Set<Module> modules)
public final Set<Module> getModules()
SchemaContextModule.getName() or Module.getNamespace(),
modules having the same attribute are encountered newest revision first.protected Map<QNameModule,Module> getModuleMap()
AbstractSchemaContextgetModuleMap in class AbstractSchemaContextprotected final com.google.common.collect.SetMultimap<URI,Module> getNamespaceToModules()
AbstractSchemaContextgetNamespaceToModules in class AbstractSchemaContextprotected final com.google.common.collect.SetMultimap<String,Module> getNameToModules()
AbstractSchemaContextgetNameToModules in class AbstractSchemaContextprotected com.google.common.base.MoreObjects.ToStringHelper addToStringAttributes(com.google.common.base.MoreObjects.ToStringHelper toStringHelper)
Copyright © 2019 OpenDaylight. All rights reserved.