@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
MODULE_SET_SUPPLIER, 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.
|
Set<ModuleIdentifier> |
getAllModuleIdentifiers()
Get all module and submodule identifiers.
|
protected Map<ModuleIdentifier,String> |
getIdentifiersToSources()
Returns the ModuleIdentifier-to-YANG source 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() |
findModuleByName, findModuleByNamespace, getAvailableAugmentations, getChildNodes, getConstraints, getDataChildByName, getDataDefinitions, getDescription, getExtensions, getGroupings, getModuleSource, getNotifications, getOperations, getPath, getQName, getReference, getStatus, getTypeDefinitions, getUnknownSchemaNodes, getUses, isAddedByUses, isAugmenting, isConfiguration, isPresenceContainer
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
findModuleByNamespaceAndRevision
getActions
public static SimpleSchemaContext forModules(Set<Module> modules)
public final Set<Module> getModules()
SchemaContext
public final Set<ModuleIdentifier> getAllModuleIdentifiers()
SchemaContext
getAllModuleIdentifiers
in interface SchemaContext
getAllModuleIdentifiers
in class AbstractSchemaContext
protected com.google.common.base.MoreObjects.ToStringHelper addToStringAttributes(com.google.common.base.MoreObjects.ToStringHelper toStringHelper)
protected final Map<ModuleIdentifier,String> getIdentifiersToSources()
AbstractSchemaContext
getIdentifiersToSources
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
Copyright © 2018 OpenDaylight. All rights reserved.