import org.opendaylight.yangtools.yang.model.api.SchemaContext;
/**
- * Parse yang models and convert data to SchemaContext.
+ * Parse YANG models and convert data to SchemaContext.
*
+ * @deprecated Use {@link org.opendaylight.yangtools.yang.model.repo.api.SchemaContextFactory} and related classes
+ * instead.
*/
+@Deprecated
public interface YangContextParser extends YangModelParser {
/**
* only module parsed from yangFile and modules which yangFile needs
* as dependencies.
*/
- SchemaContext parseFile(final File yangFile, final File dependenciesDirectory) throws IOException;
+ SchemaContext parseFile(final File yangFile, final File dependenciesDirectory) throws IOException, YangSyntaxErrorException;
/**
* Parse one or more Yang model files and return the definitions of Yang
* SchemaContext containing already parsed yang models
* @return parsed data as SchemaContext
*/
- SchemaContext parseFiles(final Collection<File> yangFiles, final SchemaContext context) throws IOException;
+ SchemaContext parseFiles(final Collection<File> yangFiles, final SchemaContext context) throws IOException, YangSyntaxErrorException;
/**
* Parse one or more Yang model streams and return the definitions of Yang
* yang streams to parse
* @return parsed data as SchemaContext
*/
- SchemaContext parseSources(final Collection<ByteSource> sources) throws IOException;
+ SchemaContext parseSources(final Collection<ByteSource> sources) throws IOException, YangSyntaxErrorException;
/**
* Parse one or more Yang model streams and return the definitions of Yang
* SchemaContext containing already parsed yang models
* @return parsed data as SchemaContext
*/
- SchemaContext parseSources(final Collection<ByteSource> sources, final SchemaContext context) throws IOException;
+ SchemaContext parseSources(final Collection<ByteSource> sources, final SchemaContext context) throws IOException, YangSyntaxErrorException;
}