SchemaContextFactory
and related classes
instead.@Deprecated public interface YangContextParser extends YangModelParser
Modifier and Type | Method and Description |
---|---|
SchemaContext |
parseFile(File yangFile,
File dependenciesDirectory)
Deprecated.
Parse yangFile file and all yang files found in directory.
|
SchemaContext |
parseFiles(Collection<File> yangFiles)
Deprecated.
Parse one or more Yang model files and return the definitions of Yang
modules defined in *.yang files;
This method SHOULD be used if user need to parse multiple yang models that are referenced either through import or include statements. |
SchemaContext |
parseFiles(Collection<File> yangFiles,
SchemaContext context)
Deprecated.
Parse one or more Yang model files and return the definitions of Yang
modules defined in *.yang files.
|
SchemaContext |
parseSources(Collection<com.google.common.io.ByteSource> sources)
Deprecated.
Parse one or more Yang model streams and return the definitions of Yang
modules defined in *.yang files;
This method SHOULD be used if user need to parse multiple yang models that are referenced either through import or include statements. |
SchemaContext |
parseSources(Collection<com.google.common.io.ByteSource> sources,
SchemaContext context)
Deprecated.
Parse one or more Yang model streams and return the definitions of Yang
modules defined in *.yang files.
|
parseYangModels, parseYangModels, parseYangModels, parseYangModelsFromStreams, parseYangModelsFromStreams, parseYangModelsFromStreamsMapped, parseYangModelsMapped, resolveSchemaContext
SchemaContext parseFile(File yangFile, File dependenciesDirectory) throws IOException, YangSyntaxErrorException
yangFile
- file to parsedependenciesDirectory
- directory which contains additional yang filesIOException
YangSyntaxErrorException
SchemaContext parseFiles(Collection<File> yangFiles) throws IOException
yangFiles
- yang files to parseIOException
SchemaContext parseFiles(Collection<File> yangFiles, SchemaContext context) throws IOException, YangSyntaxErrorException
yangFiles
- yang files to parsecontext
- SchemaContext containing already parsed yang modelsIOException
YangSyntaxErrorException
SchemaContext parseSources(Collection<com.google.common.io.ByteSource> sources) throws IOException, YangSyntaxErrorException
sources
- yang streams to parseIOException
YangSyntaxErrorException
SchemaContext parseSources(Collection<com.google.common.io.ByteSource> sources, SchemaContext context) throws IOException, YangSyntaxErrorException
sources
- yang streams to parsecontext
- SchemaContext containing already parsed yang modelsIOException
YangSyntaxErrorException
Copyright © 2017 OpenDaylight. All rights reserved.