Vinod Kumar S | 19f39c7 | 2016-02-09 20:12:31 +0530 | [diff] [blame] | 1 | /* |
Brian O'Connor | 5ab426f | 2016-04-09 01:19:45 -0700 | [diff] [blame] | 2 | * Copyright 2016-present Open Networking Laboratory |
Vinod Kumar S | 19f39c7 | 2016-02-09 20:12:31 +0530 | [diff] [blame] | 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.datamodel; |
| 18 | |
Bharat saraswal | 96dfef0 | 2016-06-16 00:29:12 +0530 | [diff] [blame] | 19 | import java.io.Serializable; |
| 20 | |
Vinod Kumar S | 19f39c7 | 2016-02-09 20:12:31 +0530 | [diff] [blame] | 21 | import org.onosproject.yangutils.datamodel.exceptions.DataModelException; |
Bharat saraswal | 96dfef0 | 2016-06-16 00:29:12 +0530 | [diff] [blame] | 22 | import org.onosproject.yangutils.datamodel.utils.Parsable; |
| 23 | import org.onosproject.yangutils.datamodel.utils.YangConstructType; |
Vinod Kumar S | 19f39c7 | 2016-02-09 20:12:31 +0530 | [diff] [blame] | 24 | |
| 25 | /* |
| 26 | * Reference:RFC 6020. |
| 27 | * The "leaf" statement is used to define a leaf node in the schema |
| 28 | * tree. It takes one argument, which is an identifier, followed by a |
| 29 | * block of sub-statements that holds detailed leaf information. |
| 30 | * |
| 31 | * A leaf node has a value, but no child nodes in the data tree. |
| 32 | * Conceptually, the value in the data tree is always in the canonical |
| 33 | * form. |
| 34 | * |
| 35 | * A leaf node exists in zero or one instances in the data tree. |
| 36 | * |
| 37 | * The "leaf" statement is used to define a scalar variable of a |
| 38 | * particular built-in or derived type. |
| 39 | * |
| 40 | * The leaf's sub-statements |
| 41 | * |
| 42 | * +--------------+---------+-------------+------------------+ |
| 43 | * | substatement | section | cardinality |data model mapping| |
| 44 | * +--------------+---------+-------------+------------------+ |
| 45 | * | config | 7.19.1 | 0..1 | - boolean | |
| 46 | * | default | 7.6.4 | 0..1 | - TODO | |
| 47 | * | description | 7.19.3 | 0..1 | - string | |
| 48 | * | if-feature | 7.18.2 | 0..n | - TODO | |
| 49 | * | mandatory | 7.6.5 | 0..1 | - boolean | |
| 50 | * | must | 7.5.3 | 0..n | - TODO | |
| 51 | * | reference | 7.19.4 | 0..1 | - string | |
| 52 | * | status | 7.19.2 | 0..1 | - YangStatus | |
| 53 | * | type | 7.6.3 | 1 | - YangType | |
| 54 | * | units | 7.3.3 | 0..1 | - String | |
| 55 | * | when | 7.19.5 | 0..1 | - TODO | |
| 56 | * +--------------+---------+-------------+------------------+ |
| 57 | */ |
Vinod Kumar S | e4b9b0c | 2016-04-30 21:09:15 +0530 | [diff] [blame] | 58 | |
Vinod Kumar S | 19f39c7 | 2016-02-09 20:12:31 +0530 | [diff] [blame] | 59 | /** |
Bharat saraswal | d9822e9 | 2016-04-05 15:13:44 +0530 | [diff] [blame] | 60 | * Represents leaf data represented in YANG. |
Vinod Kumar S | 19f39c7 | 2016-02-09 20:12:31 +0530 | [diff] [blame] | 61 | */ |
Vinod Kumar S | e4b9b0c | 2016-04-30 21:09:15 +0530 | [diff] [blame] | 62 | public class YangLeaf |
Bharat saraswal | 96dfef0 | 2016-06-16 00:29:12 +0530 | [diff] [blame] | 63 | implements YangCommonInfo, Parsable, Cloneable, Serializable { |
| 64 | |
| 65 | private static final long serialVersionUID = 806201635L; |
Vinod Kumar S | 19f39c7 | 2016-02-09 20:12:31 +0530 | [diff] [blame] | 66 | |
| 67 | /** |
| 68 | * Name of leaf. |
| 69 | */ |
| 70 | private String name; |
| 71 | |
| 72 | /** |
| 73 | * If the leaf is a config parameter. |
| 74 | */ |
Vidyashree Rama | f4c617c | 2016-02-24 12:28:22 +0530 | [diff] [blame] | 75 | private Boolean isConfig; |
Vinod Kumar S | 19f39c7 | 2016-02-09 20:12:31 +0530 | [diff] [blame] | 76 | |
| 77 | /** |
| 78 | * description of leaf. |
| 79 | */ |
| 80 | private String description; |
| 81 | |
| 82 | /** |
| 83 | * If mandatory leaf. |
| 84 | */ |
| 85 | private boolean isMandatory; |
| 86 | |
| 87 | /** |
| 88 | * The textual reference to this leaf. |
| 89 | */ |
| 90 | private String reference; |
| 91 | |
| 92 | /** |
| 93 | * Status of leaf in YANG definition. |
| 94 | */ |
Vinod Kumar S | 0c330cd | 2016-02-23 22:36:57 +0530 | [diff] [blame] | 95 | private YangStatusType status = YangStatusType.CURRENT; |
Vinod Kumar S | 19f39c7 | 2016-02-09 20:12:31 +0530 | [diff] [blame] | 96 | |
| 97 | /** |
| 98 | * Textual units info. |
| 99 | */ |
| 100 | private String units; |
| 101 | |
| 102 | /** |
| 103 | * Data type of the leaf. |
| 104 | */ |
Vinod Kumar S | 0c330cd | 2016-02-23 22:36:57 +0530 | [diff] [blame] | 105 | private YangType<?> dataType; |
Vinod Kumar S | 19f39c7 | 2016-02-09 20:12:31 +0530 | [diff] [blame] | 106 | |
| 107 | /** |
Vidyashree Rama | 1db1556 | 2016-05-17 16:16:15 +0530 | [diff] [blame] | 108 | * Default value in string, needs to be converted to the target object, |
| 109 | * based on the type. |
| 110 | */ |
| 111 | private String defaultValueInString; |
| 112 | |
| 113 | /** |
VinodKumarS-Huawei | 2ee9e7e | 2016-06-01 14:30:22 +0530 | [diff] [blame] | 114 | * YANG Node in which the leaf is contained. |
| 115 | */ |
Bharat saraswal | 96dfef0 | 2016-06-16 00:29:12 +0530 | [diff] [blame] | 116 | private transient YangLeavesHolder containedIn; |
VinodKumarS-Huawei | 2ee9e7e | 2016-06-01 14:30:22 +0530 | [diff] [blame] | 117 | |
| 118 | /** |
Bharat saraswal | d9822e9 | 2016-04-05 15:13:44 +0530 | [diff] [blame] | 119 | * Creates a YANG leaf. |
Vinod Kumar S | 19f39c7 | 2016-02-09 20:12:31 +0530 | [diff] [blame] | 120 | */ |
| 121 | public YangLeaf() { |
| 122 | } |
| 123 | |
| 124 | /** |
Bharat saraswal | d9822e9 | 2016-04-05 15:13:44 +0530 | [diff] [blame] | 125 | * Returns the name of leaf. |
Vinod Kumar S | 19f39c7 | 2016-02-09 20:12:31 +0530 | [diff] [blame] | 126 | * |
Gaurav Agrawal | 8e8770a | 2016-02-27 03:57:50 +0530 | [diff] [blame] | 127 | * @return the leaf name |
Vinod Kumar S | 19f39c7 | 2016-02-09 20:12:31 +0530 | [diff] [blame] | 128 | */ |
Vinod Kumar S | e4b9b0c | 2016-04-30 21:09:15 +0530 | [diff] [blame] | 129 | public String getName() { |
Vinod Kumar S | 19f39c7 | 2016-02-09 20:12:31 +0530 | [diff] [blame] | 130 | return name; |
| 131 | } |
| 132 | |
| 133 | /** |
Bharat saraswal | d9822e9 | 2016-04-05 15:13:44 +0530 | [diff] [blame] | 134 | * Sets the name of leaf. |
Vinod Kumar S | 19f39c7 | 2016-02-09 20:12:31 +0530 | [diff] [blame] | 135 | * |
Gaurav Agrawal | 8e8770a | 2016-02-27 03:57:50 +0530 | [diff] [blame] | 136 | * @param leafName the leaf name to set |
Vinod Kumar S | 19f39c7 | 2016-02-09 20:12:31 +0530 | [diff] [blame] | 137 | */ |
| 138 | public void setLeafName(String leafName) { |
Vinod Kumar S | 0c330cd | 2016-02-23 22:36:57 +0530 | [diff] [blame] | 139 | name = leafName; |
Vinod Kumar S | 19f39c7 | 2016-02-09 20:12:31 +0530 | [diff] [blame] | 140 | } |
| 141 | |
| 142 | /** |
Bharat saraswal | d9822e9 | 2016-04-05 15:13:44 +0530 | [diff] [blame] | 143 | * Returns the config flag. |
Vinod Kumar S | 19f39c7 | 2016-02-09 20:12:31 +0530 | [diff] [blame] | 144 | * |
Gaurav Agrawal | 8e8770a | 2016-02-27 03:57:50 +0530 | [diff] [blame] | 145 | * @return if config flag |
Vinod Kumar S | 19f39c7 | 2016-02-09 20:12:31 +0530 | [diff] [blame] | 146 | */ |
Vidyashree Rama | f4c617c | 2016-02-24 12:28:22 +0530 | [diff] [blame] | 147 | public Boolean isConfig() { |
Vinod Kumar S | 19f39c7 | 2016-02-09 20:12:31 +0530 | [diff] [blame] | 148 | return isConfig; |
| 149 | } |
| 150 | |
| 151 | /** |
Bharat saraswal | d9822e9 | 2016-04-05 15:13:44 +0530 | [diff] [blame] | 152 | * Sets the config flag. |
Vinod Kumar S | 19f39c7 | 2016-02-09 20:12:31 +0530 | [diff] [blame] | 153 | * |
Gaurav Agrawal | 8e8770a | 2016-02-27 03:57:50 +0530 | [diff] [blame] | 154 | * @param isCfg the flag value to set |
Vinod Kumar S | 19f39c7 | 2016-02-09 20:12:31 +0530 | [diff] [blame] | 155 | */ |
| 156 | public void setConfig(boolean isCfg) { |
| 157 | isConfig = isCfg; |
| 158 | } |
| 159 | |
| 160 | /** |
Bharat saraswal | d9822e9 | 2016-04-05 15:13:44 +0530 | [diff] [blame] | 161 | * Returns the description. |
Vinod Kumar S | 19f39c7 | 2016-02-09 20:12:31 +0530 | [diff] [blame] | 162 | * |
Gaurav Agrawal | 8e8770a | 2016-02-27 03:57:50 +0530 | [diff] [blame] | 163 | * @return the description |
Vinod Kumar S | 19f39c7 | 2016-02-09 20:12:31 +0530 | [diff] [blame] | 164 | */ |
Vinod Kumar S | 0c330cd | 2016-02-23 22:36:57 +0530 | [diff] [blame] | 165 | @Override |
Vinod Kumar S | 19f39c7 | 2016-02-09 20:12:31 +0530 | [diff] [blame] | 166 | public String getDescription() { |
| 167 | return description; |
| 168 | } |
| 169 | |
| 170 | /** |
Bharat saraswal | d9822e9 | 2016-04-05 15:13:44 +0530 | [diff] [blame] | 171 | * Sets the description. |
Vinod Kumar S | 19f39c7 | 2016-02-09 20:12:31 +0530 | [diff] [blame] | 172 | * |
Gaurav Agrawal | 8e8770a | 2016-02-27 03:57:50 +0530 | [diff] [blame] | 173 | * @param description set the description |
Vinod Kumar S | 19f39c7 | 2016-02-09 20:12:31 +0530 | [diff] [blame] | 174 | */ |
Vinod Kumar S | 0c330cd | 2016-02-23 22:36:57 +0530 | [diff] [blame] | 175 | @Override |
Vinod Kumar S | 19f39c7 | 2016-02-09 20:12:31 +0530 | [diff] [blame] | 176 | public void setDescription(String description) { |
| 177 | this.description = description; |
| 178 | } |
| 179 | |
| 180 | /** |
Bharat saraswal | d9822e9 | 2016-04-05 15:13:44 +0530 | [diff] [blame] | 181 | * Returns if the leaf is mandatory. |
Vinod Kumar S | 19f39c7 | 2016-02-09 20:12:31 +0530 | [diff] [blame] | 182 | * |
Gaurav Agrawal | 8e8770a | 2016-02-27 03:57:50 +0530 | [diff] [blame] | 183 | * @return if leaf is mandatory |
Vinod Kumar S | 19f39c7 | 2016-02-09 20:12:31 +0530 | [diff] [blame] | 184 | */ |
| 185 | public boolean isMandatory() { |
| 186 | return isMandatory; |
| 187 | } |
| 188 | |
| 189 | /** |
Bharat saraswal | d9822e9 | 2016-04-05 15:13:44 +0530 | [diff] [blame] | 190 | * Sets if the leaf is mandatory. |
Vinod Kumar S | 19f39c7 | 2016-02-09 20:12:31 +0530 | [diff] [blame] | 191 | * |
| 192 | * @param isReq if the leaf is mandatory |
| 193 | */ |
| 194 | public void setMandatory(boolean isReq) { |
| 195 | isMandatory = isReq; |
| 196 | } |
| 197 | |
| 198 | /** |
Bharat saraswal | d9822e9 | 2016-04-05 15:13:44 +0530 | [diff] [blame] | 199 | * Returns the textual reference. |
Vinod Kumar S | 19f39c7 | 2016-02-09 20:12:31 +0530 | [diff] [blame] | 200 | * |
Gaurav Agrawal | 8e8770a | 2016-02-27 03:57:50 +0530 | [diff] [blame] | 201 | * @return the reference |
Vinod Kumar S | 19f39c7 | 2016-02-09 20:12:31 +0530 | [diff] [blame] | 202 | */ |
Vinod Kumar S | 0c330cd | 2016-02-23 22:36:57 +0530 | [diff] [blame] | 203 | @Override |
Vinod Kumar S | 19f39c7 | 2016-02-09 20:12:31 +0530 | [diff] [blame] | 204 | public String getReference() { |
| 205 | return reference; |
| 206 | } |
| 207 | |
| 208 | /** |
Bharat saraswal | d9822e9 | 2016-04-05 15:13:44 +0530 | [diff] [blame] | 209 | * Sets the textual reference. |
Vinod Kumar S | 19f39c7 | 2016-02-09 20:12:31 +0530 | [diff] [blame] | 210 | * |
Gaurav Agrawal | 8e8770a | 2016-02-27 03:57:50 +0530 | [diff] [blame] | 211 | * @param reference the reference to set |
Vinod Kumar S | 19f39c7 | 2016-02-09 20:12:31 +0530 | [diff] [blame] | 212 | */ |
Vinod Kumar S | 0c330cd | 2016-02-23 22:36:57 +0530 | [diff] [blame] | 213 | @Override |
Vinod Kumar S | 19f39c7 | 2016-02-09 20:12:31 +0530 | [diff] [blame] | 214 | public void setReference(String reference) { |
| 215 | this.reference = reference; |
| 216 | } |
| 217 | |
| 218 | /** |
Bharat saraswal | d9822e9 | 2016-04-05 15:13:44 +0530 | [diff] [blame] | 219 | * Returns the status. |
Vinod Kumar S | 19f39c7 | 2016-02-09 20:12:31 +0530 | [diff] [blame] | 220 | * |
Gaurav Agrawal | 8e8770a | 2016-02-27 03:57:50 +0530 | [diff] [blame] | 221 | * @return the status |
Vinod Kumar S | 19f39c7 | 2016-02-09 20:12:31 +0530 | [diff] [blame] | 222 | */ |
Vinod Kumar S | 0c330cd | 2016-02-23 22:36:57 +0530 | [diff] [blame] | 223 | @Override |
Vinod Kumar S | 19f39c7 | 2016-02-09 20:12:31 +0530 | [diff] [blame] | 224 | public YangStatusType getStatus() { |
| 225 | return status; |
| 226 | } |
| 227 | |
| 228 | /** |
Bharat saraswal | d9822e9 | 2016-04-05 15:13:44 +0530 | [diff] [blame] | 229 | * Sets the status. |
Vinod Kumar S | 19f39c7 | 2016-02-09 20:12:31 +0530 | [diff] [blame] | 230 | * |
Gaurav Agrawal | 8e8770a | 2016-02-27 03:57:50 +0530 | [diff] [blame] | 231 | * @param status the status to set |
Vinod Kumar S | 19f39c7 | 2016-02-09 20:12:31 +0530 | [diff] [blame] | 232 | */ |
Vinod Kumar S | 0c330cd | 2016-02-23 22:36:57 +0530 | [diff] [blame] | 233 | @Override |
Vinod Kumar S | 19f39c7 | 2016-02-09 20:12:31 +0530 | [diff] [blame] | 234 | public void setStatus(YangStatusType status) { |
| 235 | this.status = status; |
| 236 | } |
| 237 | |
| 238 | /** |
Bharat saraswal | d9822e9 | 2016-04-05 15:13:44 +0530 | [diff] [blame] | 239 | * Returns the units. |
Vinod Kumar S | 19f39c7 | 2016-02-09 20:12:31 +0530 | [diff] [blame] | 240 | * |
Gaurav Agrawal | 8e8770a | 2016-02-27 03:57:50 +0530 | [diff] [blame] | 241 | * @return the units |
Vinod Kumar S | 19f39c7 | 2016-02-09 20:12:31 +0530 | [diff] [blame] | 242 | */ |
| 243 | public String getUnits() { |
| 244 | return units; |
| 245 | } |
| 246 | |
| 247 | /** |
Bharat saraswal | d9822e9 | 2016-04-05 15:13:44 +0530 | [diff] [blame] | 248 | * Sets the units. |
Vinod Kumar S | 19f39c7 | 2016-02-09 20:12:31 +0530 | [diff] [blame] | 249 | * |
Gaurav Agrawal | 8e8770a | 2016-02-27 03:57:50 +0530 | [diff] [blame] | 250 | * @param units the units to set |
Vinod Kumar S | 19f39c7 | 2016-02-09 20:12:31 +0530 | [diff] [blame] | 251 | */ |
| 252 | public void setUnits(String units) { |
| 253 | this.units = units; |
| 254 | } |
| 255 | |
| 256 | /** |
Vidyashree Rama | 1db1556 | 2016-05-17 16:16:15 +0530 | [diff] [blame] | 257 | * Returns the default value. |
| 258 | * |
| 259 | * @return the default value |
| 260 | */ |
| 261 | public String getDefaultValueInString() { |
| 262 | return defaultValueInString; |
| 263 | } |
| 264 | |
| 265 | /** |
| 266 | * Sets the default value. |
| 267 | * |
| 268 | * @param defaultValueInString the default value |
| 269 | */ |
| 270 | public void setDefaultValueInString(String defaultValueInString) { |
| 271 | this.defaultValueInString = defaultValueInString; |
| 272 | } |
| 273 | |
| 274 | /** |
Bharat saraswal | d9822e9 | 2016-04-05 15:13:44 +0530 | [diff] [blame] | 275 | * Returns the data type. |
Vinod Kumar S | 19f39c7 | 2016-02-09 20:12:31 +0530 | [diff] [blame] | 276 | * |
Gaurav Agrawal | 8e8770a | 2016-02-27 03:57:50 +0530 | [diff] [blame] | 277 | * @return the data type |
Vinod Kumar S | 19f39c7 | 2016-02-09 20:12:31 +0530 | [diff] [blame] | 278 | */ |
Vinod Kumar S | 0c330cd | 2016-02-23 22:36:57 +0530 | [diff] [blame] | 279 | public YangType<?> getDataType() { |
Vinod Kumar S | 19f39c7 | 2016-02-09 20:12:31 +0530 | [diff] [blame] | 280 | return dataType; |
| 281 | } |
| 282 | |
| 283 | /** |
Bharat saraswal | d9822e9 | 2016-04-05 15:13:44 +0530 | [diff] [blame] | 284 | * Sets the data type. |
Vinod Kumar S | 19f39c7 | 2016-02-09 20:12:31 +0530 | [diff] [blame] | 285 | * |
Gaurav Agrawal | 8e8770a | 2016-02-27 03:57:50 +0530 | [diff] [blame] | 286 | * @param dataType the data type to set |
Vinod Kumar S | 19f39c7 | 2016-02-09 20:12:31 +0530 | [diff] [blame] | 287 | */ |
Vinod Kumar S | 0c330cd | 2016-02-23 22:36:57 +0530 | [diff] [blame] | 288 | public void setDataType(YangType<?> dataType) { |
Vinod Kumar S | 19f39c7 | 2016-02-09 20:12:31 +0530 | [diff] [blame] | 289 | this.dataType = dataType; |
| 290 | } |
| 291 | |
| 292 | /** |
VinodKumarS-Huawei | 2ee9e7e | 2016-06-01 14:30:22 +0530 | [diff] [blame] | 293 | * Retrieves the YANG node in which the leaf is defined. |
| 294 | * |
| 295 | * @return the YANG node in which the leaf is defined |
| 296 | */ |
| 297 | public YangLeavesHolder getContainedIn() { |
| 298 | return containedIn; |
| 299 | } |
| 300 | |
| 301 | /** |
| 302 | * Assigns the YANG node in which the leaf is defined. |
| 303 | * |
| 304 | * @param containedIn the YANG node in which the leaf is defined |
| 305 | */ |
| 306 | public void setContainedIn(YangLeavesHolder containedIn) { |
| 307 | this.containedIn = containedIn; |
| 308 | } |
| 309 | |
| 310 | @Override |
| 311 | public YangLeaf clone() |
| 312 | throws CloneNotSupportedException { |
| 313 | return (YangLeaf) super.clone(); |
| 314 | } |
| 315 | |
| 316 | /** |
Vinod Kumar S | 19f39c7 | 2016-02-09 20:12:31 +0530 | [diff] [blame] | 317 | * Returns the type of the parsed data. |
| 318 | * |
Gaurav Agrawal | 8e8770a | 2016-02-27 03:57:50 +0530 | [diff] [blame] | 319 | * @return returns LEAF_DATA |
Vinod Kumar S | 19f39c7 | 2016-02-09 20:12:31 +0530 | [diff] [blame] | 320 | */ |
Vinod Kumar S | 0c330cd | 2016-02-23 22:36:57 +0530 | [diff] [blame] | 321 | @Override |
Gaurav Agrawal | 8e8770a | 2016-02-27 03:57:50 +0530 | [diff] [blame] | 322 | public YangConstructType getYangConstructType() { |
| 323 | return YangConstructType.LEAF_DATA; |
Vinod Kumar S | 19f39c7 | 2016-02-09 20:12:31 +0530 | [diff] [blame] | 324 | } |
| 325 | |
| 326 | /** |
Bharat saraswal | d9822e9 | 2016-04-05 15:13:44 +0530 | [diff] [blame] | 327 | * Validates the data on entering the corresponding parse tree node. |
Vinod Kumar S | 19f39c7 | 2016-02-09 20:12:31 +0530 | [diff] [blame] | 328 | * |
Gaurav Agrawal | 8e8770a | 2016-02-27 03:57:50 +0530 | [diff] [blame] | 329 | * @throws DataModelException a violation of data model rules |
Vinod Kumar S | 19f39c7 | 2016-02-09 20:12:31 +0530 | [diff] [blame] | 330 | */ |
Vinod Kumar S | 0c330cd | 2016-02-23 22:36:57 +0530 | [diff] [blame] | 331 | @Override |
Vinod Kumar S | e4b9b0c | 2016-04-30 21:09:15 +0530 | [diff] [blame] | 332 | public void validateDataOnEntry() |
| 333 | throws DataModelException { |
Vinod Kumar S | 19f39c7 | 2016-02-09 20:12:31 +0530 | [diff] [blame] | 334 | // TODO auto-generated method stub, to be implemented by parser |
| 335 | |
| 336 | } |
| 337 | |
| 338 | /** |
Bharat saraswal | d9822e9 | 2016-04-05 15:13:44 +0530 | [diff] [blame] | 339 | * Validates the data on exiting the corresponding parse tree node. |
Vinod Kumar S | 19f39c7 | 2016-02-09 20:12:31 +0530 | [diff] [blame] | 340 | * |
Gaurav Agrawal | 8e8770a | 2016-02-27 03:57:50 +0530 | [diff] [blame] | 341 | * @throws DataModelException a violation of data model rules |
Vinod Kumar S | 19f39c7 | 2016-02-09 20:12:31 +0530 | [diff] [blame] | 342 | */ |
Vinod Kumar S | 0c330cd | 2016-02-23 22:36:57 +0530 | [diff] [blame] | 343 | @Override |
Vinod Kumar S | e4b9b0c | 2016-04-30 21:09:15 +0530 | [diff] [blame] | 344 | public void validateDataOnExit() |
| 345 | throws DataModelException { |
Vinod Kumar S | 19f39c7 | 2016-02-09 20:12:31 +0530 | [diff] [blame] | 346 | // TODO auto-generated method stub, to be implemented by parser |
| 347 | |
| 348 | } |
| 349 | } |