2 * Copyright (c) 2015, 2017 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.config.facade.xml.osgi;
12 import org.opendaylight.controller.config.yangjmxgenerator.ModuleMXBeanEntry;
13 import org.opendaylight.yangtools.yang.common.QName;
14 import org.opendaylight.yangtools.yang.model.api.Module;
15 import org.opendaylight.yangtools.yang.model.repo.api.SourceIdentifier;
17 public interface YangStoreContext {
22 * @deprecated Use {@link #getQNamesToIdentitiesToModuleMXBeanEntries()}
23 * instead. This method return only one module representation even
24 * if multiple revisions are available.
27 Map<String/* Namespace from yang file */,
28 Map<String /* Name of module entry from yang file */,
29 ModuleMXBeanEntry>> getModuleMXBeanEntryMap();
31 Map<QName, Map<String /* identity local name */, ModuleMXBeanEntry>> getQNamesToIdentitiesToModuleMXBeanEntries();
34 * Get all modules discovered when this snapshot was created.
36 * @return all modules discovered. If one module exists with two different
37 * revisions, return both.
39 Set<Module> getModules();
41 String getModuleSource(SourceIdentifier moduleIdentifier);
43 EnumResolver getEnumResolver();