2 * Copyright (c) 2013 Cisco Systems, Inc. and others. All rights reserved.
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
8 package org.opendaylight.mdsal.dom.api;
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;
14 public interface DOMSchemaService extends DOMService {
17 * Returns session specific YANG schema context.
19 * @return schemaContext
21 SchemaContext getSessionContext();
24 * Returns global schema context.
26 * @return schemaContext
28 SchemaContext getGlobalContext();
31 * Register a listener for changes in schema context.
33 * @param listener Listener which should be registered
34 * @return Listener registration handle
36 ListenerRegistration<SchemaContextListener> registerSchemaContextListener(SchemaContextListener listener);