Committed by
Thomas Vachuska
[ONOS-3878] YANG Parser External Interface
Change-Id: I6994bf82bb6253d0c68a88142738d55898f5a069
Showing
1 changed file
with
33 additions
and
0 deletions
1 | +/* | ||
2 | + * Copyright 2016 Open Networking Laboratory | ||
3 | + * | ||
4 | + * Licensed under the Apache License, Version 2.0 (the "License"); | ||
5 | + * you may not use this file except in compliance with the License. | ||
6 | + * You may obtain a copy of 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, | ||
12 | + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
13 | + * See the License for the specific language governing permissions and | ||
14 | + * limitations under the License. | ||
15 | + */ | ||
16 | + | ||
17 | +package org.onosproject.yangutils.parser; | ||
18 | + | ||
19 | +import org.onosproject.yangutils.datamodel.YangNode; | ||
20 | + | ||
21 | +/** | ||
22 | + * Abstraction of entity which provides parser service of YANG files for yangutils-maven-plugin. | ||
23 | + */ | ||
24 | +public interface YangUtilsParser { | ||
25 | + | ||
26 | + /** | ||
27 | + * It is an entry function to initiate the YANG file parsing. | ||
28 | + * | ||
29 | + * @param file input YANG file | ||
30 | + * @return YangNode root node of the data model tree | ||
31 | + */ | ||
32 | + YangNode getDataModel(String file); | ||
33 | +} |
-
Please register or login to post a comment