Devices dashlet show port total numbers, modal shows collapsible list
[controller.git] / opendaylight / sal / yang-prototype / sal / sal-core-api / src / main / java / org / opendaylight / controller / sal / core / api / model / SchemaService.java
1 /*\r
2  * Copyright (c) 2013 Cisco Systems, Inc. and others.  All rights reserved.\r
3  *\r
4  * This program and the accompanying materials are made available under the\r
5  * terms of the Eclipse Public License v1.0 which accompanies this distribution,\r
6  * and is available at http://www.eclipse.org/legal/epl-v10.html\r
7  */\r
8 package org.opendaylight.controller.sal.core.api.model;\r
9 \r
10 import org.opendaylight.controller.sal.core.api.BrokerService;\r
11 import org.opendaylight.controller.yang.model.api.Module;\r
12 import org.opendaylight.controller.yang.model.api.SchemaContext;\r
13 \r
14 public interface SchemaService extends BrokerService {\r
15 \r
16     /**\r
17      * Registers a YANG module to session and global context \r
18      * \r
19      * @param module\r
20      */\r
21     void addModule(Module module);\r
22     \r
23     /**\r
24      * Unregisters a YANG module from session context\r
25      * \r
26      * @param module\r
27      */\r
28     void removeModule(Module module);\r
29     \r
30     /**\r
31      * Returns session specific YANG schema context\r
32      * @return\r
33      */\r
34     SchemaContext getSessionContext();\r
35     \r
36     /**\r
37      * Returns global schema context\r
38      * \r
39      * @return\r
40      */\r
41     SchemaContext getGlobalContext();\r
42 }\r