2 * Copyright (c) 2013 Cisco Systems, Inc. and others. All rights reserved.
\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
8 package org.opendaylight.controller.sal.core.api.model;
\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
14 public interface SchemaService extends BrokerService {
\r
17 * Registers a YANG module to session and global context
\r
21 void addModule(Module module);
\r
24 * Unregisters a YANG module from session context
\r
28 void removeModule(Module module);
\r
31 * Returns session specific YANG schema context
\r
34 SchemaContext getSessionContext();
\r
37 * Returns global schema context
\r
41 SchemaContext getGlobalContext();
\r