blob: 7cb870c31b5bf38111281449ced9fa44f3c027e5 [file] [log] [blame]
Vidyashree Rama1db15562016-05-17 16:16:15 +05301/*
2 * Copyright 2016-present 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
17package org.onosproject.yangutils.plugin.manager;
18
19import org.onosproject.yangutils.datamodel.YangNode;
20
21/**
22 * Represents YANG file information.
23 */
24public class YangFileInfo {
25
26 /**
27 * YANG file name.
28 */
29 private String yangFileName;
30
31 /**
32 * Data model node after parsing YANG file.
33 */
34 private YangNode rootNode;
35
36 /**
37 * Returns data model node for YANG file.
38 *
39 * @return data model node for YANG file
40 */
41 public YangNode getRootNode() {
42 return rootNode;
43 }
44
45 /**
46 * Sets data model node for YANG file.
47 *
48 * @param rootNode of the Yang file
49 */
50 public void setRootNode(YangNode rootNode) {
51 this.rootNode = rootNode;
52 }
53
54 /**
55 * Returns YANG file name.
56 *
57 * @return yangFileName YANG file name
58 */
59 public String getYangFileName() {
60 return yangFileName;
61 }
62
63 /**
64 * Sets YANG file name.
65 *
66 * @param yangFileName YANG file name
67 */
68 public void setYangFileName(String yangFileName) {
69 this.yangFileName = yangFileName;
70 }
71}