public interface YangContextParser extends YangModelParser
| Modifier and Type | Method and Description |
|---|---|
org.opendaylight.yangtools.yang.model.api.SchemaContext |
parseFile(File yangFile,
File dependenciesDirectory)
Parse yangFile file and all yang files found in directory.
|
org.opendaylight.yangtools.yang.model.api.SchemaContext |
parseFiles(Collection<File> yangFiles)
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. |
org.opendaylight.yangtools.yang.model.api.SchemaContext |
parseFiles(Collection<File> yangFiles,
org.opendaylight.yangtools.yang.model.api.SchemaContext context)
Parse one or more Yang model files and return the definitions of Yang
modules defined in *.yang files.
|
org.opendaylight.yangtools.yang.model.api.SchemaContext |
parseSources(Collection<com.google.common.io.ByteSource> sources)
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. |
org.opendaylight.yangtools.yang.model.api.SchemaContext |
parseSources(Collection<com.google.common.io.ByteSource> sources,
org.opendaylight.yangtools.yang.model.api.SchemaContext context)
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, resolveSchemaContextorg.opendaylight.yangtools.yang.model.api.SchemaContext parseFile(File yangFile, File dependenciesDirectory) throws IOException, YangSyntaxErrorException
yangFile - file to parsedependenciesDirectory - directory which contains additional yang filesIOExceptionYangSyntaxErrorExceptionorg.opendaylight.yangtools.yang.model.api.SchemaContext parseFiles(Collection<File> yangFiles) throws IOException
yangFiles - yang files to parseIOExceptionorg.opendaylight.yangtools.yang.model.api.SchemaContext parseFiles(Collection<File> yangFiles, org.opendaylight.yangtools.yang.model.api.SchemaContext context) throws IOException, YangSyntaxErrorException
yangFiles - yang files to parsecontext - SchemaContext containing already parsed yang modelsIOExceptionYangSyntaxErrorExceptionorg.opendaylight.yangtools.yang.model.api.SchemaContext parseSources(Collection<com.google.common.io.ByteSource> sources) throws IOException, YangSyntaxErrorException
sources - yang streams to parseIOExceptionYangSyntaxErrorExceptionorg.opendaylight.yangtools.yang.model.api.SchemaContext parseSources(Collection<com.google.common.io.ByteSource> sources, org.opendaylight.yangtools.yang.model.api.SchemaContext context) throws IOException, YangSyntaxErrorException
sources - yang streams to parsecontext - SchemaContext containing already parsed yang modelsIOExceptionYangSyntaxErrorExceptionCopyright © 2015. All rights reserved.