blob: cd5f4032d9c1dffd95e397d9b5df6866bc10e3f0 [file] [log] [blame]
Gaurav Agrawal8c775582017-01-12 14:12:29 +05301/*
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
9package org.onosproject.yang;
10
11import java.util.Set;
12
13/**
14 * Representation of a compiled YANG model.
15 */
16public 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}