@Immutable public interface SchemaContext extends ContainerSchemaNode
Modifier and Type | Field and Description |
---|---|
static QName |
NAME
QName of NETCONF top-level data node.
|
Modifier and Type | Method and Description |
---|---|
Module |
findModuleByName(String name,
Date revision)
Returns module instance (from the context) with concrete name and
revision date.
|
Set<Module> |
findModuleByNamespace(URI namespace)
Returns module instance (from the context) with concrete namespace.
|
Module |
findModuleByNamespaceAndRevision(URI namespace,
Date revision)
Returns module instance based on given namespace and revision.
|
Set<ModuleIdentifier> |
getAllModuleIdentifiers()
Get all module and submodule identifiers.
|
Set<DataSchemaNode> |
getDataDefinitions()
Returns data schema node instances which represents direct subnodes (like
leaf, leaf-list, list, container) in all YANG modules in the context.
|
Set<ExtensionDefinition> |
getExtensions()
Returns extencion definition instances which are defined as the direct
subelements in all YANG modules in the context
|
Set<Module> |
getModules()
Returns modules which are part of the schema context.
|
com.google.common.base.Optional<String> |
getModuleSource(ModuleIdentifier moduleIdentifier)
Get yang source code represented as string for matching
ModuleIdentifier . |
Set<NotificationDefinition> |
getNotifications()
Returns notification definition instances which are defined as the direct
subelements in all YANG modules in the context.
|
Set<RpcDefinition> |
getOperations()
Returns rpc definition instances which are defined as the direct
subelements in all YANG modules in the context.
|
isPresenceContainer
getChildNodes, getDataChildByName, getDataChildByName, getGroupings, getTypeDefinitions, getUses
getAvailableAugmentations
getConstraints, isAddedByUses, isAugmenting, isConfiguration
getPath, getQName, getUnknownSchemaNodes
getDescription, getReference, getStatus
static final QName NAME
Set<DataSchemaNode> getDataDefinitions()
DataSchemaNode
instances which represents
YANG data nodes at the module top levelSet<Module> getModules()
Set<NotificationDefinition> getNotifications()
NotificationDefinition
instances which
represents nodes defined via notification
YANG
keywordSet<RpcDefinition> getOperations()
RpcDefinition
instances which represents
nodes defined via rpc
YANG keywordSet<ExtensionDefinition> getExtensions()
ExtensionDefinition
instances which
represents nodes defined via extension
YANG keywordModule findModuleByName(String name, Date revision)
name
- string with the module namerevision
- date of the module revisionname
and revision
. In other cases the null
value is returned.Set<Module> findModuleByNamespace(URI namespace)
namespace
- URI instance with specified namespacenamespace
or null
in other casesModule findModuleByNamespaceAndRevision(URI namespace, Date revision)
namespace
- revision
- com.google.common.base.Optional<String> getModuleSource(ModuleIdentifier moduleIdentifier)
ModuleIdentifier
.moduleIdentifier
- must provide a non-null
ModuleIdentifier.getName()
,
other methods might return null.Set<ModuleIdentifier> getAllModuleIdentifiers()
Copyright © 2017 OpenDaylight. All rights reserved.