Package | Description |
---|---|
org.opendaylight.yangtools.yang.data.api.schema.xpath | |
org.opendaylight.yangtools.yang.data.impl.leafref | |
org.opendaylight.yangtools.yang.data.util | |
org.opendaylight.yangtools.yang.model.api |
Definition of structures and DOM like API of effected YANG schema
|
org.opendaylight.yangtools.yang.model.export | |
org.opendaylight.yangtools.yang.model.immutable |
Generated immutable implementations for org.opendaylight.yangtools.yang.model.api interfaces.
|
org.opendaylight.yangtools.yang.model.util |
Utility classes and implementations for concepts defined in yang-model-api.
|
org.opendaylight.yangtools.yang.parser.rfc7950.stmt |
Statement library for YANG version 1 and 1.1, as defined in RFC6020 and RFC7950.
|
org.opendaylight.yangtools.yang2sources.spi |
Modifier and Type | Method and Description |
---|---|
static com.google.common.base.Converter<String,QNameModule> |
PrefixConverters.create(SchemaContext ctx,
Module module)
Create a prefix
Converter for XPathExpressionException defined in a particular YANG
Module .Instantiation requires establishing how a module's imports are mapped to actual modules
and their namespaces. |
Modifier and Type | Method and Description |
---|---|
Module |
LeafRefContext.getLeafRefContextModule() |
Modifier and Type | Method and Description |
---|---|
static LeafRefPath |
LeafRefUtils.createAbsoluteLeafRefPath(LeafRefPath leafRefPath,
SchemaPath contextNodeSchemaPath,
Module module)
Create an absolute leafref path.
|
static LeafRefPath |
LeafRefUtils.schemaPathToLeafRefPath(SchemaPath nodePath,
Module module) |
Modifier and Type | Method and Description |
---|---|
protected abstract @Nullable Module |
AbstractModuleStringIdentityrefCodec.moduleForPrefix(@NonNull String prefix)
Resolve a string prefix into the corresponding module.
|
protected abstract @Nullable Module |
AbstractModuleStringInstanceIdentifierCodec.moduleForPrefix(@NonNull String prefix)
Resolve a string prefix into the corresponding module.
|
Modifier and Type | Method and Description |
---|---|
Optional<Module> |
SchemaContext.findModule(@NonNull QNameModule qnameModule)
Returns the module matching specified
QNameModule , if present. |
default Optional<Module> |
SchemaContext.findModule(String name)
Returns module instance (from the context) with specified name and no revision.
|
default Optional<Module> |
SchemaContext.findModule(String name,
Optional<Revision> revision)
Returns module instance (from the context) with specified name and an optional revision.
|
default Optional<Module> |
SchemaContext.findModule(String name,
@Nullable Revision revision)
Returns module instance (from the context) with specified name and revision.
|
default Optional<Module> |
SchemaContext.findModule(@NonNull URI namespace)
Returns module instance (from the context) with specified namespace and no revision.
|
default Optional<Module> |
SchemaContext.findModule(@NonNull URI namespace,
@NonNull Optional<Revision> revision)
Returns module instance (from the context) with specified namespace and revision.
|
default Optional<Module> |
SchemaContext.findModule(@NonNull URI namespace,
@Nullable Revision revision)
Returns module instance (from the context) with specified namespace and revision.
|
default Set<Module> |
SchemaContext.findModules(String name)
Returns module instances (from the context) with a concrete name.
|
default Set<Module> |
SchemaContext.findModules(URI namespace)
Returns module instance (from the context) with concrete namespace.
|
Set<Module> |
SchemaContext.getModules()
Returns modules which are part of the schema context.
|
Set<Module> |
Module.getSubmodules() |
Modifier and Type | Method and Description |
---|---|
static void |
YinExportUtils.writeModuleAsYinText(Module module,
OutputStream output)
Write a module as a YIN text into specified
OutputStream . |
static void |
YinExportUtils.writeSubmoduleAsYinText(Module parentModule,
Module submodule,
OutputStream output)
Write a submodule as a YIN text into specified
OutputStream . |
Modifier and Type | Method and Description |
---|---|
SchemaContextBuilder |
SchemaContextBuilder.addModules(Module... elements)
Adds elements to
modules set. |
SchemaContextBuilder |
SchemaContextBuilder.addModules(Module element)
Adds one element to
modules set. |
ModuleBuilder |
ModuleBuilder.addSubmodules(Module... elements)
Adds elements to
submodules set. |
ModuleBuilder |
ModuleBuilder.addSubmodules(Module element)
Adds one element to
submodules set. |
Modifier and Type | Method and Description |
---|---|
SchemaContextBuilder |
SchemaContextBuilder.addAllModules(Iterable<? extends Module> elements)
Adds elements to
modules set. |
ModuleBuilder |
ModuleBuilder.addAllSubmodules(Iterable<? extends Module> elements)
Adds elements to
submodules set. |
Modifier and Type | Field and Description |
---|---|
static Function<Module,FilteringSchemaContextProxy.ModuleId> |
FilteringSchemaContextProxy.ModuleId.MODULE_TO_MODULE_ID |
protected static Comparator<Module> |
AbstractSchemaContext.NAME_REVISION_COMPARATOR
A
Module comparator based on getName() and getRevision() , ordering modules
lexicographically by their name and then in order of descending revision. |
protected static Comparator<Module> |
AbstractSchemaContext.REVISION_COMPARATOR
A
Module comparator based on getRevision() , placing latest revision first. |
Modifier and Type | Method and Description |
---|---|
static Module |
SchemaContextUtil.findParentModule(SchemaContext context,
SchemaNode schemaNode)
Returns parent Yang Module for specified Schema Context in which Schema
Node is declared.
|
Modifier and Type | Method and Description |
---|---|
protected static TreeSet<Module> |
AbstractSchemaContext.createModuleSet()
Create a TreeSet for containing Modules with the same name, such that the set is ordered
by
AbstractSchemaContext.REVISION_COMPARATOR . |
Optional<Module> |
AbstractSchemaContext.findModule(QNameModule qnameModule) |
Optional<Module> |
AbstractSchemaContext.findModule(String name,
Optional<Revision> revision) |
Set<Module> |
AbstractSchemaContext.findModules(String name) |
Set<Module> |
AbstractSchemaContext.findModules(URI namespace) |
protected Map<QNameModule,Module> |
FilteringSchemaContextProxy.getModuleMap() |
protected abstract Map<QNameModule,Module> |
AbstractSchemaContext.getModuleMap()
Returns the namespace+revision-to-module mapping.
|
protected Map<QNameModule,Module> |
SimpleSchemaContext.getModuleMap() |
Set<Module> |
FilteringSchemaContextProxy.getModules() |
Set<Module> |
SimpleSchemaContext.getModules() |
protected com.google.common.collect.SetMultimap<URI,Module> |
FilteringSchemaContextProxy.getNamespaceToModules() |
protected abstract com.google.common.collect.SetMultimap<URI,Module> |
AbstractSchemaContext.getNamespaceToModules()
Returns the namespace-to-module mapping.
|
protected com.google.common.collect.SetMultimap<URI,Module> |
SimpleSchemaContext.getNamespaceToModules() |
protected com.google.common.collect.SetMultimap<String,Module> |
FilteringSchemaContextProxy.getNameToModules() |
protected abstract com.google.common.collect.SetMultimap<String,Module> |
AbstractSchemaContext.getNameToModules()
Returns the module name-to-module mapping.
|
protected com.google.common.collect.SetMultimap<String,Module> |
SimpleSchemaContext.getNameToModules() |
static List<Module> |
ModuleDependencySort.sort(Collection<Module> modules)
Topological sort of module dependency graph.
|
static List<Module> |
ModuleDependencySort.sort(Module... modules)
Topological sort of module dependency graph.
|
Modifier and Type | Method and Description |
---|---|
static SchemaNode |
SchemaContextUtil.findDataSchemaNode(SchemaContext context,
Module module,
RevisionAwareXPath nonCondXPath)
Method attempts to find DataSchemaNode inside of provided Schema Context
and Yang Module accordingly to Non-conditional Revision Aware XPath.
|
static SchemaNode |
SchemaContextUtil.findDataSchemaNodeForRelativeXPath(SchemaContext context,
Module module,
SchemaNode actualSchemaNode,
RevisionAwareXPath relativeXPath)
Method attempts to find DataSchemaNode inside of provided Schema Context
and Yang Module accordingly to Non-conditional relative Revision Aware
XPath.
|
static List<Module> |
ModuleDependencySort.sort(Module... modules)
Topological sort of module dependency graph.
|
Modifier and Type | Method and Description |
---|---|
static SimpleSchemaContext |
SimpleSchemaContext.forModules(Set<Module> modules)
Create a new instance from specified modules.
|
static List<Module> |
ModuleDependencySort.sort(Collection<Module> modules)
Topological sort of module dependency graph.
|
Constructor and Description |
---|
SimpleSchemaContext(Set<Module> modules) |
Modifier and Type | Class and Description |
---|---|
class |
AbstractEffectiveModule<D extends DeclaredStatement<String>> |
Modifier and Type | Method and Description |
---|---|
Set<Module> |
AbstractEffectiveModule.getSubmodules() |
Modifier and Type | Method and Description |
---|---|
Collection<File> |
BasicCodeGenerator.generateSources(SchemaContext context,
File outputBaseDir,
Set<Module> currentModules,
Function<Module,Optional<String>> moduleResourcePathResolver)
Generate sources from provided
SchemaContext . |
Collection<File> |
BasicCodeGenerator.generateSources(SchemaContext context,
File outputBaseDir,
Set<Module> currentModules,
Function<Module,Optional<String>> moduleResourcePathResolver)
Generate sources from provided
SchemaContext . |
Copyright © 2019 OpenDaylight. All rights reserved.