/* * Copyright (c) 2013 Cisco Systems, Inc. and others. All rights reserved. * * This program and the accompanying materials are made available under the * terms of the Eclipse Public License v1.0 which accompanies this distribution, * and is available at http://www.eclipse.org/legal/epl-v10.html */ package org.opendaylight.mdsal.dom.api; import org.opendaylight.yangtools.concepts.ListenerRegistration; import org.opendaylight.yangtools.yang.model.api.SchemaContext; import org.opendaylight.yangtools.yang.model.api.SchemaContextListener; public interface DOMSchemaService extends DOMService { /** * Returns session specific YANG schema context * @return */ SchemaContext getSessionContext(); /** * Returns global schema context * * @return */ SchemaContext getGlobalContext(); /** * Register a listener for changes in schema context. * * @param listener Listener which should be registered * @return Listener registration handle */ ListenerRegistration registerSchemaContextListener(SchemaContextListener listener); }