@Beta public class SimpleSchemaContext extends AbstractSchemaContext implements AnnotationSchemaNodeAwareSchemaContext
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 MoreObjects.ToStringHelper |
addToStringAttributes(MoreObjects.ToStringHelper toStringHelper) |
Optional<AnnotationSchemaNode> |
findAnnotation(QName qname)
Find an annotation based on its QName.
|
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 SetMultimap<URI,Module> |
getNamespaceToModules()
Returns the namespace-to-module mapping.
|
protected 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, findModule, findModule, findModules, findModules, getActions, getDataDefinitions, getDescription, getExtensions, getMustConstraints, getOperations, getReference, getWhenCondition
isPresenceContainer
findDataChildByName, findDataTreeChild, findDataTreeChild, getChildNodes, getDataChildByName, getGroupings, getTypeDefinitions, getUses
getAvailableAugmentations
isConfiguration
getPath, getQName
getStatus
getUnknownSchemaNodes
isAugmenting
isAddedByUses
getNotifications
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.getModules
in interface SchemaContext
public final Optional<AnnotationSchemaNode> findAnnotation(QName qname)
AnnotationSchemaNodeAware
findAnnotation
in interface AnnotationSchemaNodeAware
qname
- Annotation nameprotected Map<QNameModule,Module> getModuleMap()
AbstractSchemaContext
getModuleMap
in class AbstractSchemaContext
protected final SetMultimap<URI,Module> getNamespaceToModules()
AbstractSchemaContext
getNamespaceToModules
in class AbstractSchemaContext
protected final SetMultimap<String,Module> getNameToModules()
AbstractSchemaContext
getNameToModules
in class AbstractSchemaContext
protected MoreObjects.ToStringHelper addToStringAttributes(MoreObjects.ToStringHelper toStringHelper)
Copyright © 2019 OpenDaylight. All rights reserved.