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.controller.netconf.confignetconfconnector.osgi;
10 import org.opendaylight.controller.config.yangjmxgenerator.ModuleMXBeanEntry;
11 import org.opendaylight.yangtools.yang.common.QName;
12 import org.opendaylight.yangtools.yang.model.api.Module;
13 import org.opendaylight.yangtools.yang.model.api.ModuleIdentifier;
18 public interface YangStoreSnapshot extends AutoCloseable {
21 * @deprecated Use {@link #getQNamesToIdentitiesToModuleMXBeanEntries()} instead. This method return only one
22 * module representation even if multiple revisions are available.
25 Map<String/* Namespace from yang file */,
26 Map<String /* Name of module entry from yang file */, ModuleMXBeanEntry>> getModuleMXBeanEntryMap();
29 Map<QName, Map<String /* identity local name */, ModuleMXBeanEntry>> getQNamesToIdentitiesToModuleMXBeanEntries();
32 * Get all modules discovered when this snapshot was created.
33 * @return all modules discovered. If one module exists with two different revisions, return both.
35 Set<Module> getModules();
37 String getModuleSource(ModuleIdentifier moduleIdentifier);