import org.opendaylight.yangtools.yang.model.api.Module;
import org.opendaylight.yangtools.yang.model.api.SchemaContext;
-import org.opendaylight.yangtools.yang.model.api.type.UnknownTypeDefinition;
/**
* Yang Model Parser interface is designed for parsing yang models and convert
* the information to Data Schema Tree.
- *
+ *
*/
public interface YangModelParser {
* modules defined in *.yang files; <br>
* This method SHOULD be used if user need to parse multiple yang models
* that are referenced either through import or include statements.
- *
+ *
* @param yangFiles
* yang files to parse
* @return Set of Yang Modules
* This method SHOULD be used if user has already parsed context and need to
* parse additinal yang models which can have dependencies on models in this
* context.
- *
+ *
* @param yangFiles
* yang files to parse
* @param context
/**
* Equivalent to {@link #parseYangModels(List)} that returns parsed modules
* mapped to Files from which they were parsed.
- *
+ *
* @param yangFiles
* yang files to parse
* @return Map of Yang Modules
* modules defined in *.yang files; <br>
* This method SHOULD be used if user need to parse multiple yang models
* that are referenced either through import or include statements.
- *
+ *
* @param yangModelStreams
* yang streams to parse
* @return Set of Yang Modules
* This method SHOULD be used if user has already parsed context and need to
* parse additinal yang models which can have dependencies on models in this
* context.
- *
+ *
* @param yangModelStreams
* yang streams to parse
* @param context
/**
* Equivalent to {@link #parseYangModels(List)} that returns parsed modules
* mapped to IputStreams from which they were parsed.
- *
+ *
* @param yangModelStreams
* yang streams to parse
* @return Map of Yang Modules
* should not contain ANY Schema Nodes that contains
* {@link UnknownTypeDefinition} and all dependencies although via import or
* include definitions are resolved.
- *
+ *
* @param modules
* Set of Yang Modules
* @return Schema Context instance constructed from whole Set of Modules.