Resolve Bug:448 - Remove yang-store api and impl.
[controller.git] / opendaylight / netconf / config-netconf-connector / src / main / java / org / opendaylight / controller / netconf / confignetconfconnector / osgi / YangStoreSnapshot.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.controller.netconf.confignetconfconnector.osgi;
9
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;
14
15 import java.util.Map;
16 import java.util.Set;
17
18 public interface YangStoreSnapshot extends AutoCloseable {
19
20     /**
21      * @deprecated Use {@link #getQNamesToIdentitiesToModuleMXBeanEntries()} instead. This method return only one
22      * module representation even if multiple revisions are available.
23      */
24     @Deprecated
25     Map<String/* Namespace from yang file */,
26             Map<String /* Name of module entry from yang file */, ModuleMXBeanEntry>> getModuleMXBeanEntryMap();
27
28
29     Map<QName, Map<String /* identity local name */, ModuleMXBeanEntry>> getQNamesToIdentitiesToModuleMXBeanEntries();
30
31     /**
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.
34      */
35     Set<Module> getModules();
36
37     String getModuleSource(ModuleIdentifier moduleIdentifier);
38
39     @Override
40     void close();
41 }