0224baab217b23ee0c37bdbd5757e2389deaf44a
[yangtools.git] / yang / yang-parser-spi / src / main / java / org / opendaylight / yangtools / yang / parser / spi / source / ModulesDeviatedByModules.java
1 /*
2  * Copyright (c) 2017 Pantheon Technologies s.r.o. 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
9 package org.opendaylight.yangtools.yang.parser.spi.source;
10
11 import com.google.common.annotations.Beta;
12 import com.google.common.collect.SetMultimap;
13 import org.eclipse.jdt.annotation.NonNull;
14 import org.opendaylight.yangtools.yang.common.QNameModule;
15 import org.opendaylight.yangtools.yang.parser.spi.meta.NamespaceBehaviour;
16 import org.opendaylight.yangtools.yang.parser.spi.meta.ParserNamespace;
17
18 /**
19  * Namespace used for storing information about modules that support deviation resolution.
20  * Map key (QNameModule) denotes a module which can be deviated by the modules specified in the Map value.
21  */
22 @Beta
23 public interface ModulesDeviatedByModules
24         extends ParserNamespace<ModulesDeviatedByModules.SupportedModules, SetMultimap<QNameModule, QNameModule>> {
25     NamespaceBehaviour<SupportedModules, SetMultimap<QNameModule, QNameModule>, @NonNull ModulesDeviatedByModules>
26         BEHAVIOUR = NamespaceBehaviour.global(ModulesDeviatedByModules.class);
27
28     enum SupportedModules {
29         SUPPORTED_MODULES
30     }
31 }