@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.WithStatusMODULE_SET_SUPPLIER, 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.
|
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, isPresenceContainerclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitfindModuleByNamespaceAndRevisiongetActionspublic static SimpleSchemaContext forModules(Set<Module> modules)
public final Set<Module> getModules()
SchemaContextpublic final Set<ModuleIdentifier> getAllModuleIdentifiers()
SchemaContextgetAllModuleIdentifiers in interface SchemaContextgetAllModuleIdentifiers in class AbstractSchemaContextprotected com.google.common.base.MoreObjects.ToStringHelper addToStringAttributes(com.google.common.base.MoreObjects.ToStringHelper toStringHelper)
protected final Map<ModuleIdentifier,String> getIdentifiersToSources()
AbstractSchemaContextgetIdentifiersToSources 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 AbstractSchemaContextCopyright © 2018 OpenDaylight. All rights reserved.