Gaurav Agrawal | 1fbfae1 | 2016-03-29 02:17:23 +0530 | [diff] [blame] | 1 | /* |
Brian O'Connor | 0f7908b | 2016-04-09 01:19:45 -0700 | [diff] [blame] | 2 | * Copyright 2016-present Open Networking Laboratory |
Gaurav Agrawal | 1fbfae1 | 2016-03-29 02:17:23 +0530 | [diff] [blame] | 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 | |
| 17 | package org.onosproject.yangutils.linker; |
| 18 | |
| 19 | import java.util.Map; |
| 20 | import org.onosproject.yangutils.datamodel.HasResolutionInfo; |
| 21 | |
| 22 | /** |
| 23 | * Abstraction of entity which provides linking service of YANG files. |
| 24 | */ |
| 25 | public 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 | } |