@Immutable public interface SchemaContext extends ContainerSchemaNode
DocumentedNode.WithStatus| 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.
|
default Set<Module> |
findModuleByNamespace(URI namespace)
Returns module instance (from the context) with concrete namespace.
|
default 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<RpcDefinition> |
getOperations()
Returns rpc definition instances which are defined as the direct
subelements in all YANG modules in the context.
|
isPresenceContainergetChildNodes, getDataChildByName, getGroupings, getTypeDefinitions, getUsesgetAvailableAugmentationsgetConstraints, isAddedByUses, isAugmenting, isConfigurationgetPath, getQNamegetStatusgetDescription, getReference, getUnknownSchemaNodesgetNotificationsgetActionsstatic final QName NAME
Set<DataSchemaNode> getDataDefinitions()
DataSchemaNode instances which represents
YANG data nodes at the module top levelSet<Module> getModules()
Set<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.default Set<Module> findModuleByNamespace(URI namespace)
namespace - URI instance with specified namespacenamespace or null in other casesdefault Module 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 © 2018 OpenDaylight. All rights reserved.