Package | Description |
---|---|
org.opendaylight.yangtools.yang.model.parser.api | |
org.opendaylight.yangtools.yang.model.repo.api | |
org.opendaylight.yangtools.yang.parser.impl |
This package holds the 'parser implementation', which really is just glue code holding together the statement
reactor, base RFC6020/RFC7950 support bundles and supported semantic extensions.
|
org.opendaylight.yangtools.yang.parser.repo | |
org.opendaylight.yangtools.yang.parser.stmt.reactor |
Contains the implementation of the parser reactor
CrossSourceStatementReactor . |
org.opendaylight.yangtools.yang.test.util |
Modifier and Type | Method and Description |
---|---|
Collection<StatementParserMode> |
YangParserFactory.supportedParserModes()
Return enumeration of
StatementParserMode s supported by this factory. |
Modifier and Type | Method and Description |
---|---|
YangParser |
YangParserFactory.createParser(StatementParserMode parserMode)
Create a
YangParser instance operating in specified import resolution mode. |
Modifier and Type | Method and Description |
---|---|
@NonNull StatementParserMode |
SchemaContextFactoryConfiguration.getStatementParserMode() |
static StatementParserMode |
StatementParserMode.valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static StatementParserMode[] |
StatementParserMode.values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
Modifier and Type | Method and Description |
---|---|
@NonNull SchemaContextFactoryConfiguration.Builder |
SchemaContextFactoryConfiguration.Builder.setStatementParserMode(@NonNull StatementParserMode statementParserMode)
Set YANG statement parser mode.
|
Modifier and Type | Method and Description |
---|---|
Collection<StatementParserMode> |
YangParserFactoryImpl.supportedParserModes() |
Modifier and Type | Method and Description |
---|---|
YangParser |
YangParserFactoryImpl.createParser(StatementParserMode parserMode) |
Modifier and Type | Method and Description |
---|---|
Optional<SchemaContext> |
YangTextSchemaContextResolver.getSchemaContext(StatementParserMode statementParserMode)
Try to parse all currently available yang files and build new schema context depending on specified parsing mode.
|
SchemaContext |
YangTextSchemaContextResolver.trySchemaContext(StatementParserMode statementParserMode) |
Modifier and Type | Method and Description |
---|---|
@NonNull CrossSourceStatementReactor.BuildAction |
CrossSourceStatementReactor.newBuild(StatementParserMode statementParserMode)
Start a new reactor build using the specified statement parser mode and enabling all features and deviations.
|
Modifier and Type | Method and Description |
---|---|
static SchemaContext |
YangParserTestUtils.parseSources(StatementParserMode parserMode,
Set<QName> supportedFeatures,
Collection<? extends SchemaSourceRepresentation> sources) |
static SchemaContext |
YangParserTestUtils.parseYangFiles(Set<QName> supportedFeatures,
StatementParserMode parserMode,
Collection<File> files)
Creates a new effective schema context containing the specified YANG sources.
|
static SchemaContext |
YangParserTestUtils.parseYangFiles(Set<QName> supportedFeatures,
StatementParserMode parserMode,
File... files)
Creates a new effective schema context containing the specified YANG sources.
|
static SchemaContext |
YangParserTestUtils.parseYangFiles(StatementParserMode parserMode,
Collection<File> files)
Creates a new effective schema context containing the specified YANG sources.
|
static SchemaContext |
YangParserTestUtils.parseYangFiles(StatementParserMode parserMode,
File... files)
Creates a new effective schema context containing the specified YANG sources.
|
static SchemaContext |
YangParserTestUtils.parseYangResource(String resource,
StatementParserMode parserMode)
Creates a new effective schema context containing the specified YANG source.
|
static SchemaContext |
YangParserTestUtils.parseYangResource(String resource,
StatementParserMode parserMode,
Set<QName> supportedFeatures)
Creates a new effective schema context containing the specified YANG source.
|
static SchemaContext |
YangParserTestUtils.parseYangResourceDirectory(String resourcePath,
Set<QName> supportedFeatures,
StatementParserMode parserMode)
Creates a new effective schema context containing the specified YANG sources.
|
static SchemaContext |
YangParserTestUtils.parseYangResourceDirectory(String resourcePath,
StatementParserMode parserMode)
Creates a new effective schema context containing the specified YANG sources.
|
static SchemaContext |
YangParserTestUtils.parseYangResources(List<String> yangResourceDirs,
List<String> yangResources,
Set<QName> supportedFeatures,
StatementParserMode statementParserMode)
Creates a new effective schema context containing the specified YANG sources.
|
static SchemaContext |
YangParserTestUtils.parseYangResources(List<String> yangResourceDirs,
List<String> yangResources,
StatementParserMode statementParserMode)
Creates a new effective schema context containing the specified YANG sources.
|
static SchemaContext |
YangParserTestUtils.parseYangSources(StatementParserMode parserMode,
Set<QName> supportedFeatures,
YangTextSchemaSource... sources) |
Copyright © 2019 OpenDaylight. All rights reserved.