2 * Copyright (c) 2017 Pantheon Technologies s.r.o. 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
9 package org.opendaylight.yangtools.yang.parser.spi.source;
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;
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.
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);
28 enum SupportedModules {