blob: df817ff97073ced3bec11317205ecc3e6aa201ab [file] [log] [blame]
Gaurav Agrawald9d6cc82016-03-29 02:17:23 +05301/*
2 * Copyright 2016 Open Networking Laboratory
3 *
4 * Licensed under the Apache License, Version 2.0 (the "License"); you may not
5 * use this file except in compliance with the License. You may obtain a copy of
6 * the License at
7 *
8 * http://www.apache.org/licenses/LICENSE-2.0
9 *
10 * Unless required by applicable law or agreed to in writing, software
11 * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
12 * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
13 * License for the specific language governing permissions and limitations under
14 * the License.
15 */
16
17package org.onosproject.yangutils.linker;
18
19import java.util.Map;
20import org.onosproject.yangutils.datamodel.HasResolutionInfo;
21
22/**
23 * Abstraction of entity which provides linking service of YANG files.
24 */
25public interface YangLinker {
26
27 /**
28 * Resolve the import and include dependencies for a given resolution
29 * information.
30 *
31 * @param fileMapEntry map entry for which resolution is to be done
32 * @param yangFilesMap map of dependent file and resolution information*/
33 void resolveDependencies(Map.Entry<String, HasResolutionInfo> fileMapEntry, Map<String,
34 HasResolutionInfo> yangFilesMap);
35}