@Beta public final class YangParserTestUtils extends Object
| Modifier and Type | Method and Description |
|---|---|
static SchemaContext |
parseYangResources(Class<?> clazz,
String... resources)
Creates a new effective schema context containing the specified YANG sources.
|
static SchemaContext |
parseYangSource(String yangSourcePath)
Creates a new effective schema context containing the specified YANG source.
|
static SchemaContext |
parseYangSource(String yangSourcePath,
Set<QName> supportedFeatures)
Creates a new effective schema context containing the specified YANG source.
|
static SchemaContext |
parseYangSource(String yangSourcePath,
Set<QName> supportedFeatures,
StatementParserMode statementParserMode)
Creates a new effective schema context containing the specified YANG source.
|
static SchemaContext |
parseYangSource(String yangSourcePath,
StatementParserMode statementParserMode)
Creates a new effective schema context containing the specified YANG source.
|
static SchemaContext |
parseYangSources(Collection<File> files)
Creates a new effective schema context containing the specified YANG sources.
|
static SchemaContext |
parseYangSources(Collection<File> files,
Set<QName> supportedFeatures)
Creates a new effective schema context containing the specified YANG sources.
|
static SchemaContext |
parseYangSources(Collection<File> files,
Set<QName> supportedFeatures,
StatementParserMode statementParserMode)
Creates a new effective schema context containing the specified YANG sources.
|
static SchemaContext |
parseYangSources(Collection<File> files,
StatementParserMode statementParserMode)
Creates a new effective schema context containing the specified YANG sources.
|
static SchemaContext |
parseYangSources(File... files)
Creates a new effective schema context containing the specified YANG sources.
|
static SchemaContext |
parseYangSources(List<String> filePaths)
Creates a new effective schema context containing the specified YANG sources.
|
static SchemaContext |
parseYangSources(List<String> yangDirs,
List<String> yangFiles)
Creates a new effective schema context containing the specified YANG sources.
|
static SchemaContext |
parseYangSources(List<String> yangDirs,
List<String> yangFiles,
Set<QName> supportedFeatures)
Creates a new effective schema context containing the specified YANG sources.
|
static SchemaContext |
parseYangSources(List<String> yangDirs,
List<String> yangFiles,
Set<QName> supportedFeatures,
StatementParserMode statementParserMode)
Creates a new effective schema context containing the specified YANG sources.
|
static SchemaContext |
parseYangSources(List<String> yangDirs,
List<String> yangFiles,
StatementParserMode statementParserMode)
Creates a new effective schema context containing the specified YANG sources.
|
static SchemaContext |
parseYangSources(List<String> filePaths,
Set<QName> supportedFeatures)
Creates a new effective schema context containing the specified YANG sources.
|
static SchemaContext |
parseYangSources(List<String> filePaths,
Set<QName> supportedFeatures,
StatementParserMode statementParserMode)
Creates a new effective schema context containing the specified YANG sources.
|
static SchemaContext |
parseYangSources(List<String> filePaths,
StatementParserMode statementParserMode)
Creates a new effective schema context containing the specified YANG sources.
|
static SchemaContext |
parseYangSources(Set<QName> supportedFeatures,
File... files)
Creates a new effective schema context containing the specified YANG sources.
|
static SchemaContext |
parseYangSources(Set<QName> supportedFeatures,
StatementParserMode statementParserMode,
File... files)
Creates a new effective schema context containing the specified YANG sources.
|
static SchemaContext |
parseYangSources(Set<QName> supportedFeatures,
StatementParserMode statementParserMode,
YangStatementSourceImpl... sources)
Creates a new effective schema context containing the specified YANG sources.
|
static SchemaContext |
parseYangSources(Set<QName> supportedFeatures,
YangStatementSourceImpl... sources)
Deprecated.
Migration method only, do not use.
|
static SchemaContext |
parseYangSources(StatementParserMode statementParserMode,
File... files)
Creates a new effective schema context containing the specified YANG sources.
|
static SchemaContext |
parseYangSources(StatementParserMode statementParserMode,
YangStatementSourceImpl... sources)
Deprecated.
Migration method only, do not use.
|
static SchemaContext |
parseYangSources(String yangSourcesDirectoryPath)
Creates a new effective schema context containing the specified YANG sources.
|
static SchemaContext |
parseYangSources(String yangSourcesDirectoryPath,
Set<QName> supportedFeatures)
Creates a new effective schema context containing the specified YANG sources.
|
static SchemaContext |
parseYangSources(String yangSourcesDirectoryPath,
Set<QName> supportedFeatures,
StatementParserMode statementParserMode)
Creates a new effective schema context containing the specified YANG sources.
|
static SchemaContext |
parseYangSources(String yangSourcesDirectoryPath,
StatementParserMode statementParserMode)
Creates a new effective schema context containing the specified YANG sources.
|
static SchemaContext |
parseYangSources(YangStatementSourceImpl... sources)
Deprecated.
Migration method only, do not use.
|
static SchemaContext |
parseYangStreams(InputStream... streams)
Creates a new effective schema context containing the specified YANG sources.
|
static SchemaContext |
parseYangStreams(List<InputStream> streams)
Creates a new effective schema context containing the specified YANG sources.
|
static SchemaContext |
parseYangStreams(List<InputStream> streams,
Set<QName> supportedFeatures)
Creates a new effective schema context containing the specified YANG sources.
|
static SchemaContext |
parseYangStreams(List<InputStream> streams,
Set<QName> supportedFeatures,
StatementParserMode statementParserMode)
Creates a new effective schema context containing the specified YANG sources.
|
static SchemaContext |
parseYangStreams(List<InputStream> streams,
StatementParserMode statementParserMode)
Creates a new effective schema context containing the specified YANG sources.
|
static SchemaContext |
parseYangStreams(Set<QName> supportedFeatures,
InputStream... streams)
Creates a new effective schema context containing the specified YANG sources.
|
static SchemaContext |
parseYangStreams(Set<QName> supportedFeatures,
StatementParserMode statementParserMode,
InputStream... streams)
Creates a new effective schema context containing the specified YANG sources.
|
static SchemaContext |
parseYangStreams(StatementParserMode statementParserMode,
InputStream... streams)
Creates a new effective schema context containing the specified YANG sources.
|
static SchemaContext |
parseYinSources(Set<QName> supportedFeatures,
StatementParserMode statementParserMode,
YinStatementStreamSource... sources)
Creates a new effective schema context containing the specified YIN sources.
|
static SchemaContext |
parseYinSources(Set<QName> supportedFeatures,
YinStatementStreamSource... sources)
Creates a new effective schema context containing the specified YIN sources.
|
static SchemaContext |
parseYinSources(StatementParserMode statementParserMode,
YinStatementStreamSource... sources)
Creates a new effective schema context containing the specified YIN sources.
|
static SchemaContext |
parseYinSources(YinStatementStreamSource... sources)
Creates a new effective schema context containing the specified YIN sources.
|
@Deprecated public static SchemaContext parseYangSources(YangStatementSourceImpl... sources) throws ReactorException
sources - YANG sources to be parsedReactorException - if there is an error in one of the parsed YANG sources@Deprecated public static SchemaContext parseYangSources(Set<QName> supportedFeatures, YangStatementSourceImpl... sources) throws ReactorException
supportedFeatures - set of supported features based on which all if-feature statements in the parsed YANG
models are resolvedsources - YANG sources to be parsedReactorException - if there is an error in one of the parsed YANG sources@Deprecated public static SchemaContext parseYangSources(StatementParserMode statementParserMode, YangStatementSourceImpl... sources) throws ReactorException
statementParserMode - mode of statement parsersources - YANG sources to be parsedReactorException - if there is an error in one of the parsed YANG sourcespublic static SchemaContext parseYangSources(Set<QName> supportedFeatures, StatementParserMode statementParserMode, YangStatementSourceImpl... sources) throws ReactorException
supportedFeatures - set of supported features based on which all if-feature statements in the parsed YANG
models are resolvedstatementParserMode - mode of statement parsersources - YANG sources to be parsedReactorException - if there is an error in one of the parsed YANG sourcespublic static SchemaContext parseYangSources(File... files) throws ReactorException, FileNotFoundException
files - YANG files to be parsedReactorException - if there is an error in one of the parsed YANG sourcesFileNotFoundException - if one of the specified files does not existpublic static SchemaContext parseYangSources(Set<QName> supportedFeatures, File... files) throws ReactorException, FileNotFoundException
supportedFeatures - set of supported features based on which all if-feature statements in the parsed YANG
models are resolvedfiles - YANG files to be parsedReactorException - if there is an error in one of the parsed YANG sourcesFileNotFoundException - if one of the specified files does not existpublic static SchemaContext parseYangSources(StatementParserMode statementParserMode, File... files) throws ReactorException, FileNotFoundException
statementParserMode - mode of statement parserfiles - YANG files to be parsedReactorException - if there is an error in one of the parsed YANG sourcesFileNotFoundException - if one of the specified files does not existpublic static SchemaContext parseYangSources(Set<QName> supportedFeatures, StatementParserMode statementParserMode, File... files) throws ReactorException, FileNotFoundException
supportedFeatures - set of supported features based on which all if-feature statements in the parsed YANG
models are resolvedstatementParserMode - mode of statement parserfiles - YANG files to be parsedReactorException - if there is an error in one of the parsed YANG sourcesFileNotFoundException - if one of the specified files does not existpublic static SchemaContext parseYangSources(Collection<File> files) throws ReactorException, FileNotFoundException
files - collection of YANG files to be parsedReactorException - if there is an error in one of the parsed YANG sourcesFileNotFoundException - if one of the specified files does not existpublic static SchemaContext parseYangSources(Collection<File> files, Set<QName> supportedFeatures) throws ReactorException, FileNotFoundException
supportedFeatures - set of supported features based on which all if-feature statements in the parsed YANG
models are resolvedfiles - collection of YANG files to be parsedReactorException - if there is an error in one of the parsed YANG sourcesFileNotFoundException - if one of the specified files does not existpublic static SchemaContext parseYangSources(Collection<File> files, StatementParserMode statementParserMode) throws ReactorException, FileNotFoundException
statementParserMode - mode of statement parserfiles - collection of YANG files to be parsedReactorException - if there is an error in one of the parsed YANG sourcesFileNotFoundException - if one of the specified files does not existpublic static SchemaContext parseYangSources(Collection<File> files, Set<QName> supportedFeatures, StatementParserMode statementParserMode) throws ReactorException, FileNotFoundException
supportedFeatures - set of supported features based on which all if-feature statements in the parsed YANG
models are resolvedstatementParserMode - mode of statement parserfiles - collection of YANG files to be parsedReactorException - if there is an error in one of the parsed YANG sourcesFileNotFoundException - if one of the specified files does not existpublic static SchemaContext parseYangSources(String yangSourcesDirectoryPath) throws ReactorException, FileNotFoundException, URISyntaxException
yangSourcesDirectoryPath - relative path to the directory with YANG files to be parsedReactorException - if there is an error in one of the parsed YANG sourcesFileNotFoundException - if the specified directory does not existURISyntaxException - if the specified directory does not existpublic static SchemaContext parseYangSources(String yangSourcesDirectoryPath, Set<QName> supportedFeatures) throws ReactorException, FileNotFoundException, URISyntaxException
yangSourcesDirectoryPath - relative path to the directory with YANG files to be parsedsupportedFeatures - set of supported features based on which all if-feature statements in the parsed YANG
models are resolvedReactorException - if there is an error in one of the parsed YANG sourcesFileNotFoundException - if the specified directory does not existURISyntaxException - if the specified directory does not existpublic static SchemaContext parseYangSources(String yangSourcesDirectoryPath, StatementParserMode statementParserMode) throws ReactorException, FileNotFoundException, URISyntaxException
yangSourcesDirectoryPath - relative path to the directory with YANG files to be parsedstatementParserMode - mode of statement parserReactorException - if there is an error in one of the parsed YANG sourcesFileNotFoundException - if the specified directory does not existURISyntaxException - if the specified directory does not existpublic static SchemaContext parseYangSources(String yangSourcesDirectoryPath, Set<QName> supportedFeatures, StatementParserMode statementParserMode) throws ReactorException, FileNotFoundException, URISyntaxException
yangSourcesDirectoryPath - relative path to the directory with YANG files to be parsedsupportedFeatures - set of supported features based on which all if-feature statements in the parsed YANG
models are resolvedstatementParserMode - mode of statement parserReactorException - if there is an error in one of the parsed YANG sourcesFileNotFoundException - if the specified directory does not existURISyntaxException - if the specified directory does not existpublic static SchemaContext parseYangSource(String yangSourcePath) throws ReactorException, FileNotFoundException, URISyntaxException
yangSourcePath - relative path to the YANG file to be parsedReactorException - if there is an error in the parsed YANG sourceFileNotFoundException - if the specified file does not existURISyntaxException - if the specified file does not existpublic static SchemaContext parseYangSource(String yangSourcePath, Set<QName> supportedFeatures) throws ReactorException, FileNotFoundException, URISyntaxException
yangSourcePath - relative path to the YANG file to be parsedsupportedFeatures - set of supported features based on which all if-feature statements in the parsed YANG
model are resolvedReactorException - if there is an error in the parsed YANG sourceFileNotFoundException - if the specified file does not existURISyntaxException - if the specified file does not existpublic static SchemaContext parseYangSource(String yangSourcePath, StatementParserMode statementParserMode) throws ReactorException, FileNotFoundException, URISyntaxException
yangSourcePath - relative path to the YANG file to be parsedstatementParserMode - mode of statement parserReactorException - if there is an error in the parsed YANG sourceFileNotFoundException - if the specified file does not existURISyntaxException - if the specified file does not existpublic static SchemaContext parseYangSource(String yangSourcePath, Set<QName> supportedFeatures, StatementParserMode statementParserMode) throws ReactorException, FileNotFoundException, URISyntaxException
yangSourcePath - relative path to the YANG file to be parsedsupportedFeatures - set of supported features based on which all if-feature statements in the parsed YANG
model are resolvedstatementParserMode - mode of statement parserReactorException - if there is an error in the parsed YANG sourceFileNotFoundException - if the specified file does not existURISyntaxException - if the specified file does not existpublic static SchemaContext parseYangSources(List<String> yangDirs, List<String> yangFiles) throws FileNotFoundException, ReactorException, URISyntaxException
yangDirs - relative paths to the directories containing YANG files to be parsedyangFiles - relative paths to the YANG files to be parsedReactorException - if there is an error in one of the parsed YANG sourcesFileNotFoundException - if one of the specified directories or files does not existURISyntaxException - if one of the specified directories or files does not existpublic static SchemaContext parseYangSources(List<String> yangDirs, List<String> yangFiles, Set<QName> supportedFeatures) throws FileNotFoundException, ReactorException, URISyntaxException
yangDirs - relative paths to the directories containing YANG files to be parsedyangFiles - relative paths to the YANG files to be parsedsupportedFeatures - set of supported features based on which all if-feature statements in the parsed YANG
models are resolvedReactorException - if there is an error in one of the parsed YANG sourcesFileNotFoundException - if one of the specified directories or files does not existURISyntaxException - if one of the specified directories or files does not existpublic static SchemaContext parseYangSources(List<String> yangDirs, List<String> yangFiles, StatementParserMode statementParserMode) throws FileNotFoundException, ReactorException, URISyntaxException
yangDirs - relative paths to the directories containing YANG files to be parsedyangFiles - relative paths to the YANG files to be parsedstatementParserMode - mode of statement parserReactorException - if there is an error in one of the parsed YANG sourcesFileNotFoundException - if one of the specified directories or files does not existURISyntaxException - if one of the specified directories or files does not existpublic static SchemaContext parseYangSources(List<String> yangDirs, List<String> yangFiles, Set<QName> supportedFeatures, StatementParserMode statementParserMode) throws FileNotFoundException, ReactorException, URISyntaxException
yangDirs - relative paths to the directories containing YANG files to be parsedyangFiles - relative paths to the YANG files to be parsedsupportedFeatures - set of supported features based on which all if-feature statements in the parsed YANG
models are resolvedstatementParserMode - mode of statement parserReactorException - if there is an error in one of the parsed YANG sourcesFileNotFoundException - if one of the specified directories or files does not existURISyntaxException - if one of the specified directories or files does not existpublic static SchemaContext parseYangSources(List<String> filePaths) throws ReactorException
filePaths - relative paths to the YANG files to be parsedReactorException - if there is an error in one of the parsed YANG sourcespublic static SchemaContext parseYangSources(List<String> filePaths, Set<QName> supportedFeatures) throws ReactorException
supportedFeatures - set of supported features based on which all if-feature statements in the parsed YANG
models are resolvedfilePaths - relative paths to the YANG files to be parsedReactorException - if there is an error in one of the parsed YANG sourcespublic static SchemaContext parseYangSources(List<String> filePaths, StatementParserMode statementParserMode) throws ReactorException
statementParserMode - mode of statement parserfilePaths - relative paths to the YANG files to be parsedReactorException - if there is an error in one of the parsed YANG sourcespublic static SchemaContext parseYangSources(List<String> filePaths, Set<QName> supportedFeatures, StatementParserMode statementParserMode) throws ReactorException
supportedFeatures - set of supported features based on which all if-feature statements in the parsed YANG
models are resolvedstatementParserMode - mode of statement parserfilePaths - relative paths to the YANG files to be parsedReactorException - if there is an error in one of the parsed YANG sourcespublic static SchemaContext parseYangStreams(List<InputStream> streams) throws ReactorException
streams - input streams containing YANG sources to be parsedReactorException - if there is an error in one of the parsed YANG sourcespublic static SchemaContext parseYangStreams(List<InputStream> streams, Set<QName> supportedFeatures) throws ReactorException
streams - input streams containing YANG sources to be parsedsupportedFeatures - set of supported features based on which all if-feature statements in the parsed YANG
models are resolvedReactorException - if there is an error in one of the parsed YANG sourcespublic static SchemaContext parseYangStreams(List<InputStream> streams, StatementParserMode statementParserMode) throws ReactorException
streams - input streams containing YANG sources to be parsedstatementParserMode - mode of statement parserReactorException - if there is an error in one of the parsed YANG sourcespublic static SchemaContext parseYangStreams(List<InputStream> streams, Set<QName> supportedFeatures, StatementParserMode statementParserMode) throws ReactorException
supportedFeatures - set of supported features based on which all if-feature statements in the parsed YANG
models are resolvedstatementParserMode - mode of statement parserstreams - input streams containing YANG sources to be parsedReactorException - if there is an error in one of the parsed YANG sourcespublic static SchemaContext parseYangResources(Class<?> clazz, String... resources) throws ReactorException
clazz - Resource lookup baseresources - Resource names to be looked upReactorException - if there is an error in one of the parsed YANG sourcespublic static SchemaContext parseYangStreams(InputStream... streams) throws ReactorException
streams - input streams containing YANG sources to be parsedReactorException - if there is an error in one of the parsed YANG sourcespublic static SchemaContext parseYangStreams(Set<QName> supportedFeatures, InputStream... streams) throws ReactorException
supportedFeatures - set of supported features based on which all if-feature statements in the parsed YANG
models are resolvedstreams - input streams containing YANG sources to be parsedReactorException - if there is an error in one of the parsed YANG sourcespublic static SchemaContext parseYangStreams(StatementParserMode statementParserMode, InputStream... streams) throws ReactorException
statementParserMode - mode of statement parserstreams - input streams containing YANG sources to be parsedReactorException - if there is an error in one of the parsed YANG sourcespublic static SchemaContext parseYangStreams(Set<QName> supportedFeatures, StatementParserMode statementParserMode, InputStream... streams) throws ReactorException
supportedFeatures - set of supported features based on which all if-feature statements in the parsed YANG
models are resolvedstatementParserMode - mode of statement parserstreams - input streams containing YANG sources to be parsedReactorException - if there is an error in one of the parsed YANG sourcespublic static SchemaContext parseYinSources(YinStatementStreamSource... sources) throws ReactorException
sources - YIN sources to be parsedReactorException - if there is an error in one of the parsed YIN sourcespublic static SchemaContext parseYinSources(Set<QName> supportedFeatures, YinStatementStreamSource... sources) throws ReactorException
supportedFeatures - set of supported features based on which all if-feature statements in the parsed YIN
models are resolvedsources - YIN sources to be parsedReactorException - if there is an error in one of the parsed YIN sourcespublic static SchemaContext parseYinSources(StatementParserMode statementParserMode, YinStatementStreamSource... sources) throws ReactorException
statementParserMode - mode of statement parsersources - YIN sources to be parsedReactorException - if there is an error in one of the parsed YIN sourcespublic static SchemaContext parseYinSources(Set<QName> supportedFeatures, StatementParserMode statementParserMode, YinStatementStreamSource... sources) throws ReactorException
supportedFeatures - set of supported features based on which all if-feature statements in the parsed YIN
models are resolvedstatementParserMode - mode of statement parsersources - YIN sources to be parsedReactorException - if there is an error in one of the parsed YIN sourcesCopyright © 2018 OpenDaylight. All rights reserved.