blob: 4d0c2ce9b6ff541796b002cc89ea7d2f9df1396f [file] [log] [blame]
Vidyashree Rama07c26bb2016-07-28 17:33: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.datamodel;
18
19import org.onosproject.yangutils.datamodel.exceptions.DataModelException;
20import org.onosproject.yangutils.datamodel.utils.Parsable;
21import org.onosproject.yangutils.datamodel.utils.YangConstructType;
22
23/**
24 * Represents data model node to maintain information defined in YANG compiler-annotation.
25 */
26public class YangCompilerAnnotation implements Parsable {
27
28 /**
29 * App data structure information.
30 */
31 private YangAppDataStructure yangAppDataStructure;
32
33 /**
34 * App extended name information.
35 */
36 private YangAppExtendedName yangAppExtendedName;
37
38 /**
39 * Prefix of compiler-annotation.
40 */
41 private String prefix;
42
43 /**
44 * Path of compiler-annotation.
45 */
46 private String path;
47
48 /**
49 * Returns the YANG app data structure information.
50 *
51 * @return the YANG app data structure information
52 */
53 public YangAppDataStructure getYangAppDataStructure() {
54 return yangAppDataStructure;
55 }
56
57 /**
58 * Sets the YANG app data structure information.
59 *
60 * @param yangAppDataStructure the YANG app data structure to set
61 */
62 public void setYangAppDataStructure(YangAppDataStructure yangAppDataStructure) {
63 this.yangAppDataStructure = yangAppDataStructure;
64 }
65
66 /**
67 * Returns the prefix.
68 *
69 * @return the prefix
70 */
71 public String getPrefix() {
72 return prefix;
73 }
74
75 /**
76 * Sets the prefix information.
77 *
78 * @param prefix the prefix to set
79 */
80 public void setPrefix(String prefix) {
81 this.prefix = prefix;
82 }
83
84 /**
85 * Returns the path.
86 *
87 * @return the path
88 */
89 public String getPath() {
90 return path;
91 }
92
93 /**
94 * Sets the path.
95 *
96 * @param path the path to set
97 */
98 public void setPath(String path) {
99 this.path = path;
100 }
101
102 /**
103 * Returns the YANG app extended name information.
104 *
105 * @return the YANG app extended name information
106 */
107 public YangAppExtendedName getYangAppExtendedName() {
108 return yangAppExtendedName;
109 }
110
111 /**
112 * Sets the YANG app extended name information.
113 *
114 * @param yangAppExtendedName the YANG app extended name to set
115 */
116 public void setYangAppExtendedName(YangAppExtendedName yangAppExtendedName) {
117 this.yangAppExtendedName = yangAppExtendedName;
118 }
119
120 @Override
121 public YangConstructType getYangConstructType() {
122 return YangConstructType.COMPILER_ANNOTATION_DATA;
123 }
124
125 @Override
126 public void validateDataOnEntry() throws DataModelException {
127 // TODO : to be implemented
128 }
129
130 @Override
131 public void validateDataOnExit() throws DataModelException {
132 // TODO : to be implemented
133 }
134}