b6946c9552c86bcf7e45eff426a04e7d0fe62d81
[mdsal.git] / dom / mdsal-dom-api / src / main / java / org / opendaylight / mdsal / dom / api / DOMSchemaService.java
1 /*
2  * Copyright (c) 2013 Cisco Systems, Inc. and others.  All rights reserved.
3  *
4  * This program and the accompanying materials are made available under the
5  * terms of the Eclipse Public License v1.0 which accompanies this distribution,
6  * and is available at http://www.eclipse.org/legal/epl-v10.html
7  */
8 package org.opendaylight.mdsal.dom.api;
9
10 import org.opendaylight.yangtools.concepts.ListenerRegistration;
11 import org.opendaylight.yangtools.yang.model.api.SchemaContext;
12 import org.opendaylight.yangtools.yang.model.api.SchemaContextListener;
13
14 public interface DOMSchemaService extends DOMService {
15
16     /**
17      * Returns session specific YANG schema context
18      * @return
19      */
20     SchemaContext getSessionContext();
21
22     /**
23      * Returns global schema context
24      *
25      * @return
26      */
27     SchemaContext getGlobalContext();
28
29     /**
30      * Register a listener for changes in schema context.
31      *
32      * @param listener Listener which should be registered
33      * @return Listener registration handle
34      */
35     ListenerRegistration<SchemaContextListener> registerSchemaContextListener(SchemaContextListener listener);
36 }