blob: f659fa9a61e4b87e5cf14883fcbd7c502a6f12b6 [file] [log] [blame]
Gaurav Agrawald9d6cc82016-03-29 02:17:23 +05301/*
Brian O'Connor5ab426f2016-04-09 01:19:45 -07002 * Copyright 2016-present Open Networking Laboratory
Gaurav Agrawald9d6cc82016-03-29 02:17:23 +05303 *
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;
Vinod Kumar Se4b9b0c2016-04-30 21:09:15 +053020import org.onosproject.yangutils.datamodel.YangReferenceResolver;
Gaurav Agrawald9d6cc82016-03-29 02:17:23 +053021
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*/
Vinod Kumar Se4b9b0c2016-04-30 21:09:15 +053033 void resolveDependencies(Map.Entry<String, YangReferenceResolver> fileMapEntry, Map<String,
34 YangReferenceResolver> yangFilesMap);
Gaurav Agrawald9d6cc82016-03-29 02:17:23 +053035}