| Modifier and Type | Method and Description |
|---|---|
org.opendaylight.yangtools.yang.model.api.SchemaContext |
YangContextParser.parseFile(File yangFile,
File dependenciesDirectory)
Parse yangFile file and all yang files found in directory.
|
org.opendaylight.yangtools.yang.model.api.SchemaContext |
YangContextParser.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 |
YangContextParser.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 |
YangContextParser.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.
|
Copyright © 2015. All rights reserved.