Gaurav Agrawal | 8c77558 | 2017-01-12 14:12:29 +0530 | [diff] [blame^] | 1 | /* |
| 2 | * Copyright (c) 2017. Lorem ipsum dolor sit amet, consectetur adipiscing elit. |
| 3 | * Morbi non lorem porttitor neque feugiat blandit. Ut vitae ipsum eget quam lacinia accumsan. |
| 4 | * Etiam sed turpis ac ipsum condimentum fringilla. Maecenas magna. |
| 5 | * Proin dapibus sapien vel ante. Aliquam erat volutpat. Pellentesque sagittis ligula eget metus. |
| 6 | * Vestibulum commodo. Ut rhoncus gravida arcu. |
| 7 | */ |
| 8 | |
| 9 | package org.onosproject.yang; |
| 10 | |
| 11 | import java.util.Set; |
| 12 | |
| 13 | /** |
| 14 | * Representation of a compiled YANG model. |
| 15 | */ |
| 16 | public interface YangModel { |
| 17 | |
| 18 | /** |
| 19 | * Returns set of YANG module with information. |
| 20 | * |
| 21 | * @return YANG module info |
| 22 | */ |
| 23 | Set<YangModule> getYangModules(); |
| 24 | |
| 25 | /** |
| 26 | * Returns set of YANG modules identifier. |
| 27 | * |
| 28 | * @return YANG module identifier |
| 29 | */ |
| 30 | Set<YangModuleId> getYangModulesId(); |
| 31 | |
| 32 | /** |
| 33 | * Returns YANG module information corresponding to a given module |
| 34 | * identifier. |
| 35 | * |
| 36 | * @param id module identifier |
| 37 | * @return YANG module information |
| 38 | */ |
| 39 | YangModule getYangModule(YangModuleId id); |
| 40 | } |