Bharat saraswal | dedf9f8 | 2016-02-12 20:48:30 +0530 | [diff] [blame] | 1 | /* |
Brian O'Connor | 0f7908b | 2016-04-09 01:19:45 -0700 | [diff] [blame] | 2 | * Copyright 2016-present Open Networking Laboratory |
Bharat saraswal | dedf9f8 | 2016-02-12 20:48:30 +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.utils; |
| 18 | |
Vinod Kumar S | 9f26ae5 | 2016-03-23 15:30:27 +0530 | [diff] [blame] | 19 | import java.io.File; |
b.janani | e6d43af | 2016-03-04 12:29:05 +0530 | [diff] [blame] | 20 | import java.util.Arrays; |
| 21 | import java.util.List; |
| 22 | |
Bharat saraswal | dedf9f8 | 2016-02-12 20:48:30 +0530 | [diff] [blame] | 23 | /** |
Bharat saraswal | 63f26fb | 2016-04-05 15:13:44 +0530 | [diff] [blame] | 24 | * Represents utilities constants which are used while generating java files. |
Bharat saraswal | dedf9f8 | 2016-02-12 20:48:30 +0530 | [diff] [blame] | 25 | */ |
| 26 | public final class UtilConstants { |
| 27 | |
| 28 | /** |
Bharat saraswal | d532a4c | 2016-03-25 18:19:46 +0530 | [diff] [blame] | 29 | * JavaDocs for impl class. |
Bharat saraswal | dedf9f8 | 2016-02-12 20:48:30 +0530 | [diff] [blame] | 30 | */ |
Gaurav Agrawal | 3b57f36 | 2016-09-07 13:16:35 +0530 | [diff] [blame] | 31 | public static final String IMPL_CLASS_JAVA_DOC = |
| 32 | " * Represents the implementation of "; |
Bharat saraswal | d532a4c | 2016-03-25 18:19:46 +0530 | [diff] [blame] | 33 | |
| 34 | /** |
| 35 | * JavaDocs for builder class. |
| 36 | */ |
Gaurav Agrawal | 3b57f36 | 2016-09-07 13:16:35 +0530 | [diff] [blame] | 37 | public static final String BUILDER_CLASS_JAVA_DOC = |
| 38 | " * Represents the builder implementation of "; |
Bharat saraswal | d532a4c | 2016-03-25 18:19:46 +0530 | [diff] [blame] | 39 | |
| 40 | /** |
| 41 | * JavaDocs for interface class. |
| 42 | */ |
Gaurav Agrawal | 3b57f36 | 2016-09-07 13:16:35 +0530 | [diff] [blame] | 43 | public static final String INTERFACE_JAVA_DOC = |
| 44 | " * Abstraction of an entity which represents the functionality " + |
| 45 | "of "; |
Bharat saraswal | d532a4c | 2016-03-25 18:19:46 +0530 | [diff] [blame] | 46 | |
VinodKumarS-Huawei | 6266db3 | 2016-05-10 17:58:57 +0530 | [diff] [blame] | 47 | /** |
| 48 | * JavaDocs for event. |
| 49 | */ |
Gaurav Agrawal | 3b57f36 | 2016-09-07 13:16:35 +0530 | [diff] [blame] | 50 | public static final String EVENT_JAVA_DOC = |
| 51 | " * Represents event implementation of "; |
VinodKumarS-Huawei | 6266db3 | 2016-05-10 17:58:57 +0530 | [diff] [blame] | 52 | |
| 53 | /** |
Shankara-Huawei | a1039e5 | 2016-07-14 16:53:09 +0530 | [diff] [blame] | 54 | * JavaDocs for op param class. |
| 55 | */ |
Gaurav Agrawal | 3b57f36 | 2016-09-07 13:16:35 +0530 | [diff] [blame] | 56 | public static final String OP_PARAM_JAVA_DOC = |
| 57 | " * Represents operation parameter implementation of "; |
Shankara-Huawei | a1039e5 | 2016-07-14 16:53:09 +0530 | [diff] [blame] | 58 | |
| 59 | /** |
VinodKumarS-Huawei | 6266db3 | 2016-05-10 17:58:57 +0530 | [diff] [blame] | 60 | * JavaDocs for event listener. |
| 61 | */ |
Gaurav Agrawal | 3b57f36 | 2016-09-07 13:16:35 +0530 | [diff] [blame] | 62 | public static final String EVENT_LISTENER_JAVA_DOC = |
| 63 | " * Abstraction for event listener of "; |
VinodKumarS-Huawei | 6266db3 | 2016-05-10 17:58:57 +0530 | [diff] [blame] | 64 | |
Bharat saraswal | d532a4c | 2016-03-25 18:19:46 +0530 | [diff] [blame] | 65 | /** |
| 66 | * JavaDocs for builder interface class. |
| 67 | */ |
Bharat saraswal | dedf9f8 | 2016-02-12 20:48:30 +0530 | [diff] [blame] | 68 | public static final String BUILDER_INTERFACE_JAVA_DOC = " * Builder for "; |
Bharat saraswal | d532a4c | 2016-03-25 18:19:46 +0530 | [diff] [blame] | 69 | |
| 70 | /** |
Bharat saraswal | 68fa0d1 | 2016-04-19 01:00:16 +0530 | [diff] [blame] | 71 | * JavaDocs for enum class. |
| 72 | */ |
Gaurav Agrawal | 3b57f36 | 2016-09-07 13:16:35 +0530 | [diff] [blame] | 73 | public static final String ENUM_CLASS_JAVADOC = |
| 74 | " * Represents ENUM data of "; |
Bharat saraswal | 68fa0d1 | 2016-04-19 01:00:16 +0530 | [diff] [blame] | 75 | |
| 76 | /** |
| 77 | * JavaDocs for enum attribute. |
| 78 | */ |
| 79 | public static final String ENUM_ATTRIBUTE_JAVADOC = " * Represents "; |
| 80 | |
| 81 | /** |
Bharat saraswal | d532a4c | 2016-03-25 18:19:46 +0530 | [diff] [blame] | 82 | * JavaDocs for package info class. |
| 83 | */ |
Gaurav Agrawal | 3b57f36 | 2016-09-07 13:16:35 +0530 | [diff] [blame] | 84 | public static final String PACKAGE_INFO_JAVADOC = |
| 85 | " * Implementation of YANG node "; |
Bharat saraswal | 68fa0d1 | 2016-04-19 01:00:16 +0530 | [diff] [blame] | 86 | |
| 87 | /** |
| 88 | * JavaDocs for package info class. |
| 89 | */ |
Gaurav Agrawal | 3b57f36 | 2016-09-07 13:16:35 +0530 | [diff] [blame] | 90 | public static final String PACKAGE_INFO_JAVADOC_OF_CHILD = |
| 91 | "'s children nodes"; |
Bharat saraswal | d532a4c | 2016-03-25 18:19:46 +0530 | [diff] [blame] | 92 | |
| 93 | /** |
| 94 | * JavaDocs's first line. |
| 95 | */ |
Bharat saraswal | dedf9f8 | 2016-02-12 20:48:30 +0530 | [diff] [blame] | 96 | public static final String JAVA_DOC_FIRST_LINE = "/**\n"; |
Bharat saraswal | d532a4c | 2016-03-25 18:19:46 +0530 | [diff] [blame] | 97 | |
| 98 | /** |
| 99 | * JavaDocs's last line. |
| 100 | */ |
Bharat saraswal | dedf9f8 | 2016-02-12 20:48:30 +0530 | [diff] [blame] | 101 | public static final String JAVA_DOC_END_LINE = " */\n"; |
Bharat saraswal | d532a4c | 2016-03-25 18:19:46 +0530 | [diff] [blame] | 102 | |
| 103 | /** |
| 104 | * JavaDocs's param annotation. |
| 105 | */ |
Bharat saraswal | dedf9f8 | 2016-02-12 20:48:30 +0530 | [diff] [blame] | 106 | public static final String JAVA_DOC_PARAM = " * @param "; |
Bharat saraswal | d532a4c | 2016-03-25 18:19:46 +0530 | [diff] [blame] | 107 | |
| 108 | /** |
| 109 | * JavaDocs's return annotation. |
| 110 | */ |
Bharat saraswal | dedf9f8 | 2016-02-12 20:48:30 +0530 | [diff] [blame] | 111 | public static final String JAVA_DOC_RETURN = " * @return "; |
Bharat saraswal | d532a4c | 2016-03-25 18:19:46 +0530 | [diff] [blame] | 112 | |
| 113 | /** |
Bharat saraswal | d532a4c | 2016-03-25 18:19:46 +0530 | [diff] [blame] | 114 | * JavaDocs's description for setter method. |
| 115 | */ |
Gaurav Agrawal | 3b57f36 | 2016-09-07 13:16:35 +0530 | [diff] [blame] | 116 | public static final String JAVA_DOC_SETTERS = |
| 117 | " * Returns the builder object of "; |
Bharat saraswal | d532a4c | 2016-03-25 18:19:46 +0530 | [diff] [blame] | 118 | |
| 119 | /** |
Bharat saraswal | 8beac34 | 2016-08-04 02:00:03 +0530 | [diff] [blame] | 120 | * JavaDocs's description for add to list method. |
| 121 | */ |
| 122 | public static final String JAVA_DOC_ADD_TO_LIST = " * Adds to the list of "; |
| 123 | |
| 124 | /** |
VinodKumarS-Huawei | 6266db3 | 2016-05-10 17:58:57 +0530 | [diff] [blame] | 125 | * JavaDocs's description for setter method. |
| 126 | */ |
Gaurav Agrawal | 3b57f36 | 2016-09-07 13:16:35 +0530 | [diff] [blame] | 127 | public static final String JAVA_DOC_MANAGER_SETTERS = |
| 128 | " * Sets the value to attribute "; |
VinodKumarS-Huawei | 6266db3 | 2016-05-10 17:58:57 +0530 | [diff] [blame] | 129 | |
| 130 | /** |
Bharat saraswal | d532a4c | 2016-03-25 18:19:46 +0530 | [diff] [blame] | 131 | * JavaDocs's description for OF method. |
| 132 | */ |
b.janani | e6d43af | 2016-03-04 12:29:05 +0530 | [diff] [blame] | 133 | public static final String JAVA_DOC_OF = " * Returns the object of "; |
Bharat saraswal | d532a4c | 2016-03-25 18:19:46 +0530 | [diff] [blame] | 134 | |
| 135 | /** |
| 136 | * JavaDocs's description for typedef' setter method. |
| 137 | */ |
Gaurav Agrawal | 3b57f36 | 2016-09-07 13:16:35 +0530 | [diff] [blame] | 138 | public static final String JAVA_DOC_SETTERS_COMMON = |
| 139 | " * Sets the value of "; |
Bharat saraswal | d532a4c | 2016-03-25 18:19:46 +0530 | [diff] [blame] | 140 | |
| 141 | /** |
| 142 | * JavaDocs's description for getter method. |
| 143 | */ |
Bharat saraswal | dedf9f8 | 2016-02-12 20:48:30 +0530 | [diff] [blame] | 144 | public static final String JAVA_DOC_GETTERS = " * Returns the attribute "; |
Bharat saraswal | d532a4c | 2016-03-25 18:19:46 +0530 | [diff] [blame] | 145 | |
| 146 | /** |
Bharat saraswal | 64e7e23 | 2016-07-14 23:33:55 +0530 | [diff] [blame] | 147 | * JavaDocs's description for getter method. |
| 148 | */ |
Gaurav Agrawal | 3b57f36 | 2016-09-07 13:16:35 +0530 | [diff] [blame] | 149 | public static final String JAVA_DOC_FOR_VALIDATOR = |
| 150 | " * Validates if value is in given range."; |
Bharat saraswal | 64e7e23 | 2016-07-14 23:33:55 +0530 | [diff] [blame] | 151 | |
| 152 | /** |
| 153 | * JavaDocs's description for getter method. |
| 154 | */ |
Gaurav Agrawal | 3b57f36 | 2016-09-07 13:16:35 +0530 | [diff] [blame] | 155 | public static final String JAVA_DOC_FOR_VALIDATOR_RETURN = |
Bharat saraswal | 9fab16b | 2016-09-23 23:27:24 +0530 | [diff] [blame] | 156 | " true if value is in range"; |
Bharat saraswal | 64e7e23 | 2016-07-14 23:33:55 +0530 | [diff] [blame] | 157 | |
| 158 | /** |
Bharat saraswal | d532a4c | 2016-03-25 18:19:46 +0530 | [diff] [blame] | 159 | * JavaDocs's description for constructor. |
| 160 | */ |
Gaurav Agrawal | 3b57f36 | 2016-09-07 13:16:35 +0530 | [diff] [blame] | 161 | public static final String JAVA_DOC_CONSTRUCTOR = |
| 162 | " * Creates an instance of "; |
Bharat saraswal | d532a4c | 2016-03-25 18:19:46 +0530 | [diff] [blame] | 163 | |
| 164 | /** |
| 165 | * JavaDocs's description for build method. |
| 166 | */ |
Bharat saraswal | dedf9f8 | 2016-02-12 20:48:30 +0530 | [diff] [blame] | 167 | public static final String JAVA_DOC_BUILD = " * Builds object of "; |
Bharat saraswal | d532a4c | 2016-03-25 18:19:46 +0530 | [diff] [blame] | 168 | |
| 169 | /** |
Bharat saraswal | d532a4c | 2016-03-25 18:19:46 +0530 | [diff] [blame] | 170 | * JavaDocs's statement for builder object. |
| 171 | */ |
| 172 | public static final String BUILDER_OBJECT = "builder object of "; |
| 173 | |
| 174 | /** |
Gaurav Agrawal | 02a60de | 2016-04-20 15:49:17 +0530 | [diff] [blame] | 175 | * JavaDocs's statement for rpc method. |
| 176 | */ |
| 177 | public static final String JAVA_DOC_RPC = " * Service interface of "; |
| 178 | |
| 179 | /** |
| 180 | * JavaDocs's statement for rpc's input string. |
| 181 | */ |
| 182 | public static final String RPC_INPUT_STRING = "input of service interface "; |
| 183 | |
| 184 | /** |
| 185 | * JavaDocs's statement for rpc's output string. |
| 186 | */ |
Gaurav Agrawal | 3b57f36 | 2016-09-07 13:16:35 +0530 | [diff] [blame] | 187 | public static final String RPC_OUTPUT_STRING = |
| 188 | "output of service interface "; |
Gaurav Agrawal | 02a60de | 2016-04-20 15:49:17 +0530 | [diff] [blame] | 189 | |
| 190 | /** |
Bharat saraswal | d532a4c | 2016-03-25 18:19:46 +0530 | [diff] [blame] | 191 | * Static attribute for new line. |
Bharat saraswal | dedf9f8 | 2016-02-12 20:48:30 +0530 | [diff] [blame] | 192 | */ |
| 193 | public static final String NEW_LINE = "\n"; |
Bharat saraswal | d532a4c | 2016-03-25 18:19:46 +0530 | [diff] [blame] | 194 | |
| 195 | /** |
Bharat saraswal | 250a747 | 2016-05-12 13:16:57 +0530 | [diff] [blame] | 196 | * Static attribute for default. |
| 197 | */ |
| 198 | public static final String DEFAULT = "default"; |
| 199 | |
| 200 | /** |
Bharat saraswal | 9fab16b | 2016-09-23 23:27:24 +0530 | [diff] [blame] | 201 | * Static attribute for default. |
| 202 | */ |
| 203 | public static final String DEFAULT_CAPS = "Default"; |
| 204 | |
| 205 | /** |
Shankara-Huawei | a1039e5 | 2016-07-14 16:53:09 +0530 | [diff] [blame] | 206 | * Static attribute for java code generation for sbi. |
| 207 | */ |
| 208 | public static final String SBI = "sbi"; |
| 209 | |
| 210 | /** |
Bharat saraswal | d532a4c | 2016-03-25 18:19:46 +0530 | [diff] [blame] | 211 | * Static attribute for multiple new line. |
| 212 | */ |
Vinod Kumar S | 9f26ae5 | 2016-03-23 15:30:27 +0530 | [diff] [blame] | 213 | public static final String MULTIPLE_NEW_LINE = "\n\n"; |
Bharat saraswal | d532a4c | 2016-03-25 18:19:46 +0530 | [diff] [blame] | 214 | |
| 215 | /** |
| 216 | * Static attribute for empty line. |
| 217 | */ |
b.janani | e6d43af | 2016-03-04 12:29:05 +0530 | [diff] [blame] | 218 | public static final String EMPTY_STRING = ""; |
Bharat saraswal | d532a4c | 2016-03-25 18:19:46 +0530 | [diff] [blame] | 219 | |
| 220 | /** |
| 221 | * Static attribute for new line with asterisk. |
| 222 | */ |
| 223 | public static final String NEW_LINE_ASTERISK = " *\n"; |
| 224 | |
| 225 | /** |
| 226 | * Static attribute for period. |
| 227 | */ |
Bharat saraswal | dedf9f8 | 2016-02-12 20:48:30 +0530 | [diff] [blame] | 228 | public static final String PERIOD = "."; |
Bharat saraswal | d532a4c | 2016-03-25 18:19:46 +0530 | [diff] [blame] | 229 | |
| 230 | /** |
Bharat saraswal | a5c2851 | 2016-11-10 21:09:23 +0530 | [diff] [blame] | 231 | * Static attribute for period. |
| 232 | */ |
| 233 | public static final String ENTRY = "Entry"; |
| 234 | |
| 235 | /** |
| 236 | * Static attribute for period. |
| 237 | */ |
| 238 | public static final String ENTRY_SET = "entrySet()"; |
| 239 | |
| 240 | /** |
Bharat saraswal | 9fab16b | 2016-09-23 23:27:24 +0530 | [diff] [blame] | 241 | * Static attribute for compare to. |
| 242 | */ |
| 243 | public static final String COMPARE_TO = "compareTo"; |
| 244 | |
| 245 | /** |
Gaurav Agrawal | 97a5e1c | 2016-04-18 18:53:11 +0530 | [diff] [blame] | 246 | * Static attribute for parse byte. |
| 247 | */ |
| 248 | public static final String PARSE_BYTE = "parseByte"; |
| 249 | |
| 250 | /** |
Bharat saraswal | 715d3fc | 2016-05-17 19:59:16 +0530 | [diff] [blame] | 251 | * Static attribute for parse boolean. |
| 252 | */ |
| 253 | public static final String PARSE_BOOLEAN = "parseBoolean"; |
| 254 | |
| 255 | /** |
Gaurav Agrawal | 97a5e1c | 2016-04-18 18:53:11 +0530 | [diff] [blame] | 256 | * Static attribute for parse short. |
| 257 | */ |
| 258 | public static final String PARSE_SHORT = "parseShort"; |
| 259 | |
| 260 | /** |
| 261 | * Static attribute for parse int. |
| 262 | */ |
| 263 | public static final String PARSE_INT = "parseInt"; |
| 264 | |
| 265 | /** |
| 266 | * Static attribute for parse long. |
| 267 | */ |
| 268 | public static final String PARSE_LONG = "parseLong"; |
| 269 | |
| 270 | /** |
Mahesh Poojary Huawei | 41547ad | 2016-07-14 17:49:50 +0530 | [diff] [blame] | 271 | * Static attribute for base64. |
| 272 | */ |
| 273 | public static final String BASE64 = "Base64"; |
| 274 | |
| 275 | /** |
| 276 | * Static attribute for getEncoder. |
| 277 | */ |
| 278 | public static final String GET_ENCODER = "getEncoder"; |
| 279 | |
| 280 | /** |
| 281 | * Static attribute for encodeToString. |
| 282 | */ |
| 283 | public static final String ENCODE_TO_STRING = "encodeToString"; |
| 284 | |
| 285 | /** |
| 286 | * Static attribute for getDecoder. |
| 287 | */ |
| 288 | public static final String GET_DECODER = "getDecoder"; |
| 289 | |
| 290 | /** |
| 291 | * Static attribute for decode. |
| 292 | */ |
| 293 | public static final String DECODE = "decode"; |
| 294 | |
| 295 | /** |
Gaurav Agrawal | 97a5e1c | 2016-04-18 18:53:11 +0530 | [diff] [blame] | 296 | * Static attribute for omit null value. |
| 297 | */ |
| 298 | public static final String OMIT_NULL_VALUE_STRING = "omitNullValues()"; |
| 299 | |
| 300 | /** |
Bharat saraswal | d532a4c | 2016-03-25 18:19:46 +0530 | [diff] [blame] | 301 | * Static attribute for underscore. |
| 302 | */ |
b.janani | e6d43af | 2016-03-04 12:29:05 +0530 | [diff] [blame] | 303 | public static final String UNDER_SCORE = "_"; |
Bharat saraswal | d532a4c | 2016-03-25 18:19:46 +0530 | [diff] [blame] | 304 | |
| 305 | /** |
| 306 | * Static attribute for semi-colan. |
| 307 | */ |
Bharat saraswal | 9fab16b | 2016-09-23 23:27:24 +0530 | [diff] [blame] | 308 | public static final String SEMI_COLON = ";"; |
Bharat saraswal | d532a4c | 2016-03-25 18:19:46 +0530 | [diff] [blame] | 309 | |
| 310 | /** |
| 311 | * Static attribute for hyphen. |
| 312 | */ |
Bharat saraswal | dedf9f8 | 2016-02-12 20:48:30 +0530 | [diff] [blame] | 313 | public static final String HYPHEN = "-"; |
Bharat saraswal | d532a4c | 2016-03-25 18:19:46 +0530 | [diff] [blame] | 314 | |
| 315 | /** |
| 316 | * Static attribute for space. |
| 317 | */ |
Bharat saraswal | dedf9f8 | 2016-02-12 20:48:30 +0530 | [diff] [blame] | 318 | public static final String SPACE = " "; |
Bharat saraswal | c2fd322 | 2016-10-19 16:10:27 +0530 | [diff] [blame] | 319 | /** |
| 320 | * Static attribute for space. |
| 321 | */ |
| 322 | public static final String TWO = "2"; |
| 323 | /** |
| 324 | * Static attribute for space. |
| 325 | */ |
| 326 | public static final String FLAG = "flag"; |
| 327 | /** |
| 328 | * Static attribute for result. |
| 329 | */ |
| 330 | public static final String RESULT = "result"; |
Bharat saraswal | d532a4c | 2016-03-25 18:19:46 +0530 | [diff] [blame] | 331 | |
| 332 | /** |
Bharat saraswal | 9fab16b | 2016-09-23 23:27:24 +0530 | [diff] [blame] | 333 | * Static attribute for isSelectAllSchemaChild. |
| 334 | */ |
| 335 | public static final String SELECT_ALL_CHILD = "isSelectAllSchemaChild"; |
| 336 | |
| 337 | /** |
Bharat saraswal | 748fc3c | 2016-09-06 16:38:20 +0530 | [diff] [blame] | 338 | * Static attribute for schema name. |
| 339 | */ |
| 340 | public static final String SCHEMA_NAME = "schemaName"; |
| 341 | |
| 342 | /** |
Bharat saraswal | 64e7e23 | 2016-07-14 23:33:55 +0530 | [diff] [blame] | 343 | * Static attribute for validateRange. |
| 344 | */ |
| 345 | public static final String VALIDATE_RANGE = "validateRange"; |
| 346 | |
| 347 | /** |
| 348 | * Static attribute for minRange. |
| 349 | */ |
| 350 | public static final String MIN_RANGE = "minRange"; |
| 351 | |
| 352 | /** |
| 353 | * Static attribute for maxRange. |
| 354 | */ |
| 355 | public static final String MAX_RANGE = "maxRange"; |
| 356 | |
| 357 | /** |
| 358 | * Static attribute for minRange. |
| 359 | */ |
Gaurav Agrawal | 3b57f36 | 2016-09-07 13:16:35 +0530 | [diff] [blame] | 360 | public static final String SHORT_MIN_RANGE_ATTR = |
| 361 | "static final int INT16_MIN_RANGE = -32768;\n"; |
Bharat saraswal | 2da23bf | 2016-08-25 15:28:39 +0530 | [diff] [blame] | 362 | |
| 363 | /** |
| 364 | * Static attribute for minRange. |
| 365 | */ |
| 366 | public static final String SHORT_MIN_RANGE = "INT16_MIN_RANGE"; |
| 367 | |
| 368 | /** |
| 369 | * Static attribute for minRange. |
| 370 | */ |
| 371 | public static final String SHORT_MAX_RANGE = "INT16_MAX_RANGE"; |
| 372 | |
| 373 | /** |
| 374 | * Static attribute for maxRange. |
| 375 | */ |
Gaurav Agrawal | 3b57f36 | 2016-09-07 13:16:35 +0530 | [diff] [blame] | 376 | public static final String SHORT_MAX_RANGE_ATTR = |
| 377 | "static final int INT16_MAX_RANGE = 32767;"; |
Bharat saraswal | 2da23bf | 2016-08-25 15:28:39 +0530 | [diff] [blame] | 378 | |
| 379 | |
| 380 | /** |
| 381 | * Static attribute for minRange. |
| 382 | */ |
Gaurav Agrawal | 3b57f36 | 2016-09-07 13:16:35 +0530 | [diff] [blame] | 383 | public static final String UINT8_MIN_RANGE_ATTR = |
| 384 | "static final int UINT8_MIN_RANGE = 0;\n"; |
Bharat saraswal | 2da23bf | 2016-08-25 15:28:39 +0530 | [diff] [blame] | 385 | |
| 386 | /** |
| 387 | * Static attribute for maxRange. |
| 388 | */ |
Gaurav Agrawal | 3b57f36 | 2016-09-07 13:16:35 +0530 | [diff] [blame] | 389 | public static final String UINT8_MAX_RANGE_ATTR = |
| 390 | "static final int UINT8_MAX_RANGE = 32767;"; |
Bharat saraswal | 2da23bf | 2016-08-25 15:28:39 +0530 | [diff] [blame] | 391 | |
| 392 | |
| 393 | /** |
| 394 | * Static attribute for minRange. |
| 395 | */ |
| 396 | public static final String UINT8_MIN_RANGE = "UINT8_MIN_RANGE"; |
| 397 | |
| 398 | /** |
| 399 | * Static attribute for maxRange. |
| 400 | */ |
| 401 | public static final String UINT8_MAX_RANGE = "UINT8_MAX_RANGE"; |
| 402 | |
| 403 | /** |
| 404 | * Static attribute for minRange. |
| 405 | */ |
Gaurav Agrawal | 3b57f36 | 2016-09-07 13:16:35 +0530 | [diff] [blame] | 406 | public static final String INT_MIN_RANGE_ATTR = |
| 407 | "static final int INT32_MIN_RANGE = -2147483648;\n"; |
Bharat saraswal | 64e7e23 | 2016-07-14 23:33:55 +0530 | [diff] [blame] | 408 | |
| 409 | /** |
| 410 | * Static attribute for minRange. |
| 411 | */ |
| 412 | public static final String INT_MIN_RANGE = "INT32_MIN_RANGE"; |
| 413 | |
| 414 | /** |
| 415 | * Static attribute for minRange. |
| 416 | */ |
| 417 | public static final String INT_MAX_RANGE = "INT32_MAX_RANGE"; |
| 418 | |
| 419 | /** |
| 420 | * Static attribute for maxRange. |
| 421 | */ |
Gaurav Agrawal | 3b57f36 | 2016-09-07 13:16:35 +0530 | [diff] [blame] | 422 | public static final String INT_MAX_RANGE_ATTR = |
| 423 | "static final int INT32_MAX_RANGE = 2147483647;"; |
Bharat saraswal | 64e7e23 | 2016-07-14 23:33:55 +0530 | [diff] [blame] | 424 | |
| 425 | |
| 426 | /** |
| 427 | * Static attribute for minRange. |
| 428 | */ |
Gaurav Agrawal | 3b57f36 | 2016-09-07 13:16:35 +0530 | [diff] [blame] | 429 | public static final String UINT_MIN_RANGE_ATTR = |
| 430 | "static final int UINT16_MIN_RANGE = 0;\n"; |
Bharat saraswal | 64e7e23 | 2016-07-14 23:33:55 +0530 | [diff] [blame] | 431 | |
| 432 | /** |
| 433 | * Static attribute for maxRange. |
| 434 | */ |
Gaurav Agrawal | 3b57f36 | 2016-09-07 13:16:35 +0530 | [diff] [blame] | 435 | public static final String UINT_MAX_RANGE_ATTR = |
| 436 | "static final int UINT16_MAX_RANGE = 2147483647;"; |
Bharat saraswal | 64e7e23 | 2016-07-14 23:33:55 +0530 | [diff] [blame] | 437 | |
| 438 | |
| 439 | /** |
| 440 | * Static attribute for minRange. |
| 441 | */ |
| 442 | public static final String UINT_MIN_RANGE = "UINT16_MIN_RANGE"; |
| 443 | |
| 444 | /** |
| 445 | * Static attribute for maxRange. |
| 446 | */ |
| 447 | public static final String UINT_MAX_RANGE = "UINT16_MAX_RANGE"; |
| 448 | |
| 449 | /** |
| 450 | * Static attribute for minRange. |
| 451 | */ |
Gaurav Agrawal | 3b57f36 | 2016-09-07 13:16:35 +0530 | [diff] [blame] | 452 | public static final String LONG_MIN_RANGE_ATTR = |
| 453 | "static final BigInteger INT64_MIN_RANGE =" + |
| 454 | " new BigInteger(\"-9223372036854775808\");\n"; |
Bharat saraswal | 64e7e23 | 2016-07-14 23:33:55 +0530 | [diff] [blame] | 455 | |
| 456 | /** |
| 457 | * Static attribute for maxRange. |
| 458 | */ |
Gaurav Agrawal | 3b57f36 | 2016-09-07 13:16:35 +0530 | [diff] [blame] | 459 | public static final String LONG_MAX_RANGE_ATTR = |
| 460 | "static final BigInteger INT64_MAX_RANGE =" + |
| 461 | " new BigInteger(\"9223372036854775807\");"; |
Bharat saraswal | 64e7e23 | 2016-07-14 23:33:55 +0530 | [diff] [blame] | 462 | |
| 463 | /** |
| 464 | * Static attribute for minRange. |
| 465 | */ |
| 466 | public static final String LONG_MIN_RANGE = "INT64_MIN_RANGE"; |
| 467 | |
| 468 | /** |
| 469 | * Static attribute for maxRange. |
| 470 | */ |
| 471 | public static final String LONG_MAX_RANGE = "INT64_MAX_RANGE"; |
| 472 | |
| 473 | /** |
| 474 | * Static attribute for minRange. |
| 475 | */ |
Gaurav Agrawal | 3b57f36 | 2016-09-07 13:16:35 +0530 | [diff] [blame] | 476 | public static final String ULONG_MIN_RANGE_ATTR = |
| 477 | "static final BigInteger UINT32_MIN_RANGE =" + |
| 478 | " new BigInteger(\"0\");\n"; |
Bharat saraswal | 64e7e23 | 2016-07-14 23:33:55 +0530 | [diff] [blame] | 479 | |
| 480 | /** |
| 481 | * Static attribute for maxRange. |
| 482 | */ |
Gaurav Agrawal | 3b57f36 | 2016-09-07 13:16:35 +0530 | [diff] [blame] | 483 | public static final String ULONG_MAX_RANGE_ATTR = |
| 484 | "static final BigInteger UINT32_MAX_RANGE =" + |
| 485 | " new BigInteger(\"9223372036854775807\");"; |
Bharat saraswal | 64e7e23 | 2016-07-14 23:33:55 +0530 | [diff] [blame] | 486 | |
| 487 | |
| 488 | /** |
| 489 | * Static attribute for minRange. |
| 490 | */ |
| 491 | public static final String ULONG_MIN_RANGE = "UINT32_MIN_RANGE"; |
| 492 | |
| 493 | /** |
| 494 | * Static attribute for maxRange. |
| 495 | */ |
| 496 | public static final String ULONG_MAX_RANGE = "UINT32_MAX_RANGE"; |
| 497 | |
| 498 | /** |
Bharat saraswal | 715d3fc | 2016-05-17 19:59:16 +0530 | [diff] [blame] | 499 | * Static attribute for subject. |
| 500 | */ |
| 501 | public static final String SUBJECT = "Subject"; |
| 502 | |
| 503 | /** |
Bharat saraswal | 4aaab4d | 2016-05-17 14:19:38 +0530 | [diff] [blame] | 504 | * Static attribute for ListenerService. |
| 505 | */ |
| 506 | public static final String LISTENER_SERVICE = "ListenerService"; |
| 507 | |
| 508 | /** |
| 509 | * Static attribute for listener package. |
| 510 | */ |
Bharat saraswal | 715d3fc | 2016-05-17 19:59:16 +0530 | [diff] [blame] | 511 | public static final String ONOS_EVENT_PKG = "org.onosproject.event"; |
Bharat saraswal | 4aaab4d | 2016-05-17 14:19:38 +0530 | [diff] [blame] | 512 | |
| 513 | /** |
Vidyashree Rama | b624817 | 2016-05-17 16:16:15 +0530 | [diff] [blame] | 514 | * Static attribute for colon. |
| 515 | */ |
| 516 | public static final String COLON = ":"; |
| 517 | |
| 518 | /** |
| 519 | * Static attribute for caret. |
| 520 | */ |
| 521 | public static final String CARET = "^"; |
| 522 | |
| 523 | /** |
Gaurav Agrawal | 97a5e1c | 2016-04-18 18:53:11 +0530 | [diff] [blame] | 524 | * Static attribute for input string. |
Bharat saraswal | d532a4c | 2016-03-25 18:19:46 +0530 | [diff] [blame] | 525 | */ |
Gaurav Agrawal | 97a5e1c | 2016-04-18 18:53:11 +0530 | [diff] [blame] | 526 | public static final String INPUT = "input"; |
Bharat saraswal | d532a4c | 2016-03-25 18:19:46 +0530 | [diff] [blame] | 527 | |
| 528 | /** |
janani b | 0e4e8ae | 2016-07-13 21:06:41 +0530 | [diff] [blame] | 529 | * Static attribute for output string. |
| 530 | */ |
| 531 | public static final String OUTPUT = "output"; |
| 532 | |
| 533 | /** |
| 534 | * Static attribute for current string. |
| 535 | */ |
| 536 | public static final String CURRENT = "current"; |
| 537 | |
| 538 | /** |
janani b | b08850e | 2016-05-17 18:20:33 +0530 | [diff] [blame] | 539 | * Static attribute for leafref string. |
| 540 | */ |
| 541 | public static final String LEAFREF = "leafref"; |
| 542 | |
| 543 | /** |
Gaurav Agrawal | 02a60de | 2016-04-20 15:49:17 +0530 | [diff] [blame] | 544 | * Static attribute for output variable of rpc. |
| 545 | */ |
| 546 | public static final String RPC_INPUT_VAR_NAME = "inputVar"; |
| 547 | |
| 548 | /** |
Bharat saraswal | d532a4c | 2016-03-25 18:19:46 +0530 | [diff] [blame] | 549 | * Static attribute for new line. |
| 550 | */ |
Bharat saraswal | dedf9f8 | 2016-02-12 20:48:30 +0530 | [diff] [blame] | 551 | public static final String EQUAL = "="; |
Bharat saraswal | d532a4c | 2016-03-25 18:19:46 +0530 | [diff] [blame] | 552 | |
| 553 | /** |
| 554 | * Static attribute for slash syntax. |
| 555 | */ |
Vinod Kumar S | 9f26ae5 | 2016-03-23 15:30:27 +0530 | [diff] [blame] | 556 | public static final String SLASH = File.separator; |
Bharat saraswal | d532a4c | 2016-03-25 18:19:46 +0530 | [diff] [blame] | 557 | |
| 558 | /** |
| 559 | * Static attribute for add syntax. |
| 560 | */ |
Bharat saraswal | dedf9f8 | 2016-02-12 20:48:30 +0530 | [diff] [blame] | 561 | public static final String ADD = "+"; |
Bharat saraswal | d532a4c | 2016-03-25 18:19:46 +0530 | [diff] [blame] | 562 | |
| 563 | /** |
Bharat saraswal | d532a4c | 2016-03-25 18:19:46 +0530 | [diff] [blame] | 564 | * Static attribute for quotes. |
| 565 | */ |
b.janani | e6d43af | 2016-03-04 12:29:05 +0530 | [diff] [blame] | 566 | public static final String QUOTES = "\""; |
Bharat saraswal | d532a4c | 2016-03-25 18:19:46 +0530 | [diff] [blame] | 567 | |
| 568 | /** |
Mahesh Poojary Huawei | 41547ad | 2016-07-14 17:49:50 +0530 | [diff] [blame] | 569 | * Static attribute for zero. |
| 570 | */ |
| 571 | public static final String ZERO = "0"; |
| 572 | |
| 573 | /** |
Bharat saraswal | d532a4c | 2016-03-25 18:19:46 +0530 | [diff] [blame] | 574 | * Static attribute for ampersand. |
| 575 | */ |
b.janani | e6d43af | 2016-03-04 12:29:05 +0530 | [diff] [blame] | 576 | public static final String AND = "&"; |
Bharat saraswal | d532a4c | 2016-03-25 18:19:46 +0530 | [diff] [blame] | 577 | |
| 578 | /** |
| 579 | * Static attribute for comma. |
| 580 | */ |
b.janani | e6d43af | 2016-03-04 12:29:05 +0530 | [diff] [blame] | 581 | public static final String COMMA = ","; |
Bharat saraswal | d532a4c | 2016-03-25 18:19:46 +0530 | [diff] [blame] | 582 | |
| 583 | /** |
Bharat saraswal | af413b8 | 2016-07-14 15:18:20 +0530 | [diff] [blame] | 584 | * Static attribute for class. |
| 585 | */ |
| 586 | public static final String CLASS_STRING = "Class"; |
| 587 | |
| 588 | /** |
| 589 | * Static attribute for put. |
| 590 | */ |
| 591 | public static final String PUT = "put"; |
| 592 | |
| 593 | /** |
| 594 | * Static attribute for get. |
| 595 | */ |
| 596 | public static final String GET = "get"; |
| 597 | |
| 598 | /** |
janani b | 0e4e8ae | 2016-07-13 21:06:41 +0530 | [diff] [blame] | 599 | * Static attribute for slash character. |
| 600 | */ |
| 601 | public static final char CHAR_OF_SLASH = '/'; |
| 602 | |
| 603 | /** |
| 604 | * Static attribute for open square bracket character. |
| 605 | */ |
| 606 | public static final char CHAR_OF_OPEN_SQUARE_BRACKET = '['; |
| 607 | |
| 608 | /** |
janani b | 0e4e8ae | 2016-07-13 21:06:41 +0530 | [diff] [blame] | 609 | * Static attribute for slash string. |
| 610 | */ |
| 611 | public static final String SLASH_FOR_STRING = "/"; |
| 612 | |
| 613 | /** |
| 614 | * Static attribute for open square bracket. |
| 615 | */ |
| 616 | public static final String OPEN_SQUARE_BRACKET = "["; |
| 617 | |
| 618 | /** |
| 619 | * Static attribute for ancestor accessor. |
| 620 | */ |
janani b | 3a3e326 | 2016-10-19 00:23:28 +0530 | [diff] [blame] | 621 | public static final String ANCESTOR = ".."; |
janani b | 0e4e8ae | 2016-07-13 21:06:41 +0530 | [diff] [blame] | 622 | |
| 623 | /** |
| 624 | * Static attribute for ancestor accessor along with path. |
| 625 | */ |
janani b | 3a3e326 | 2016-10-19 00:23:28 +0530 | [diff] [blame] | 626 | public static final String SLASH_ANCESTOR = "../"; |
janani b | 0e4e8ae | 2016-07-13 21:06:41 +0530 | [diff] [blame] | 627 | |
| 628 | /** |
Bharat saraswal | d532a4c | 2016-03-25 18:19:46 +0530 | [diff] [blame] | 629 | * Static attribute for add syntax. |
| 630 | */ |
b.janani | e6d43af | 2016-03-04 12:29:05 +0530 | [diff] [blame] | 631 | public static final String ADD_STRING = "add"; |
Bharat saraswal | d532a4c | 2016-03-25 18:19:46 +0530 | [diff] [blame] | 632 | |
| 633 | /** |
Bharat saraswal | a5c2851 | 2016-11-10 21:09:23 +0530 | [diff] [blame] | 634 | * Static attribute for key syntax. |
| 635 | */ |
| 636 | public static final String KEYS = "Keys"; |
| 637 | |
| 638 | /** |
| 639 | * Static attribute for key syntax. |
| 640 | */ |
| 641 | public static final String GET_KEY = "getKey()"; |
| 642 | |
| 643 | /** |
| 644 | * Static attribute for key syntax. |
| 645 | */ |
| 646 | public static final String GET_VALUE = "getValue()"; |
| 647 | |
| 648 | /** |
| 649 | * Static attribute for -1 to syntax. |
| 650 | */ |
| 651 | public static final String NEG_ONE = "-1"; |
| 652 | |
| 653 | /** |
| 654 | * Static attribute for Comparable to syntax. |
| 655 | */ |
| 656 | public static final String COMPARABLE = "Comparable"; |
| 657 | |
| 658 | /** |
Mahesh Poojary Huawei | 41547ad | 2016-07-14 17:49:50 +0530 | [diff] [blame] | 659 | * Static attribute for string trim syntax. |
| 660 | */ |
| 661 | public static final String TRIM_STRING = "trim"; |
| 662 | |
| 663 | /** |
| 664 | * Static attribute for string split syntax. |
| 665 | */ |
| 666 | public static final String SPLIT_STRING = "split"; |
| 667 | |
| 668 | /** |
Mahesh Poojary Huawei | 1025a17 | 2016-09-27 16:06:07 +0530 | [diff] [blame] | 669 | * Static attribute for Pattern. |
| 670 | */ |
| 671 | public static final String PATTERN = "Pattern"; |
| 672 | |
| 673 | /** |
| 674 | * Static attribute for Quote. |
| 675 | */ |
| 676 | public static final String QUOTE_STRING = "quote"; |
| 677 | |
| 678 | /** |
Gaurav Agrawal | 97a5e1c | 2016-04-18 18:53:11 +0530 | [diff] [blame] | 679 | * Static attribute for from syntax. |
| 680 | */ |
| 681 | public static final String FROM_STRING_METHOD_NAME = "fromString"; |
| 682 | |
| 683 | /** |
Bharat saraswal | d532a4c | 2016-03-25 18:19:46 +0530 | [diff] [blame] | 684 | * Static attribute for check not null syntax. |
| 685 | */ |
b.janani | e6d43af | 2016-03-04 12:29:05 +0530 | [diff] [blame] | 686 | public static final String CHECK_NOT_NULL_STRING = "checkNotNull"; |
Bharat saraswal | d532a4c | 2016-03-25 18:19:46 +0530 | [diff] [blame] | 687 | |
| 688 | /** |
| 689 | * Static attribute for hash code syntax. |
| 690 | */ |
b.janani | e6d43af | 2016-03-04 12:29:05 +0530 | [diff] [blame] | 691 | public static final String HASH_CODE_STRING = "hashCode"; |
Bharat saraswal | d532a4c | 2016-03-25 18:19:46 +0530 | [diff] [blame] | 692 | |
| 693 | /** |
| 694 | * Static attribute for equals syntax. |
| 695 | */ |
b.janani | e6d43af | 2016-03-04 12:29:05 +0530 | [diff] [blame] | 696 | public static final String EQUALS_STRING = "equals"; |
Bharat saraswal | d532a4c | 2016-03-25 18:19:46 +0530 | [diff] [blame] | 697 | |
| 698 | /** |
| 699 | * Static attribute for object. |
| 700 | */ |
b.janani | e6d43af | 2016-03-04 12:29:05 +0530 | [diff] [blame] | 701 | public static final String OBJECT_STRING = "Object"; |
Bharat saraswal | d532a4c | 2016-03-25 18:19:46 +0530 | [diff] [blame] | 702 | |
| 703 | /** |
| 704 | * Static attribute for instance of syntax. |
| 705 | */ |
b.janani | e6d43af | 2016-03-04 12:29:05 +0530 | [diff] [blame] | 706 | public static final String INSTANCE_OF = " instanceof "; |
| 707 | |
Bharat saraswal | d532a4c | 2016-03-25 18:19:46 +0530 | [diff] [blame] | 708 | /** |
| 709 | * Static attribute for value syntax. |
| 710 | */ |
b.janani | e6d43af | 2016-03-04 12:29:05 +0530 | [diff] [blame] | 711 | public static final String VALUE = "value"; |
Bharat saraswal | d532a4c | 2016-03-25 18:19:46 +0530 | [diff] [blame] | 712 | |
| 713 | /** |
Bharat saraswal | a5c2851 | 2016-11-10 21:09:23 +0530 | [diff] [blame] | 714 | * Static attribute for value syntax. |
| 715 | */ |
| 716 | public static final String VALUE_CAPS = "Value"; |
| 717 | |
| 718 | /** |
Bharat saraswal | d532a4c | 2016-03-25 18:19:46 +0530 | [diff] [blame] | 719 | * Static attribute for suffix s. |
| 720 | */ |
Bharat saraswal | 84366c5 | 2016-03-23 19:40:35 +0530 | [diff] [blame] | 721 | public static final String SUFFIX_S = "s"; |
b.janani | e6d43af | 2016-03-04 12:29:05 +0530 | [diff] [blame] | 722 | |
Bharat saraswal | d532a4c | 2016-03-25 18:19:46 +0530 | [diff] [blame] | 723 | /** |
Bharat saraswal | 54e4bab | 2016-10-05 23:32:14 +0530 | [diff] [blame] | 724 | * Static attribute for string builder var. |
| 725 | */ |
| 726 | public static final String STRING_BUILDER_VAR = "sBuild"; |
| 727 | /** |
| 728 | * Static attribute for string builder var. |
| 729 | */ |
| 730 | public static final String APPEND = "append"; |
| 731 | |
| 732 | /** |
Bharat saraswal | d532a4c | 2016-03-25 18:19:46 +0530 | [diff] [blame] | 733 | * Static attribute for if. |
| 734 | */ |
b.janani | e6d43af | 2016-03-04 12:29:05 +0530 | [diff] [blame] | 735 | public static final String IF = "if"; |
Bharat saraswal | d532a4c | 2016-03-25 18:19:46 +0530 | [diff] [blame] | 736 | |
| 737 | /** |
Bharat saraswal | d532a4c | 2016-03-25 18:19:46 +0530 | [diff] [blame] | 738 | * Static attribute for of. |
| 739 | */ |
b.janani | e6d43af | 2016-03-04 12:29:05 +0530 | [diff] [blame] | 740 | public static final String OF = "of"; |
Bharat saraswal | 94844d6 | 2016-10-13 13:28:03 +0530 | [diff] [blame] | 741 | /** |
| 742 | * Static attribute for of. |
| 743 | */ |
| 744 | public static final String OF_CAPS = "Of"; |
Bharat saraswal | d532a4c | 2016-03-25 18:19:46 +0530 | [diff] [blame] | 745 | |
| 746 | /** |
| 747 | * Static attribute for other. |
| 748 | */ |
Vinod Kumar S | 9f26ae5 | 2016-03-23 15:30:27 +0530 | [diff] [blame] | 749 | public static final String OTHER = "other"; |
Bharat saraswal | d532a4c | 2016-03-25 18:19:46 +0530 | [diff] [blame] | 750 | |
| 751 | /** |
| 752 | * Static attribute for obj syntax. |
| 753 | */ |
Vinod Kumar S | 9f26ae5 | 2016-03-23 15:30:27 +0530 | [diff] [blame] | 754 | public static final String OBJ = "obj"; |
Bharat saraswal | d532a4c | 2016-03-25 18:19:46 +0530 | [diff] [blame] | 755 | |
| 756 | /** |
| 757 | * Static attribute for hash syntax. |
| 758 | */ |
Vinod Kumar S | 9f26ae5 | 2016-03-23 15:30:27 +0530 | [diff] [blame] | 759 | public static final String HASH = "hash"; |
Bharat saraswal | d532a4c | 2016-03-25 18:19:46 +0530 | [diff] [blame] | 760 | |
| 761 | /** |
| 762 | * Static attribute for to syntax. |
| 763 | */ |
Vinod Kumar S | 9f26ae5 | 2016-03-23 15:30:27 +0530 | [diff] [blame] | 764 | public static final String TO = "to"; |
b.janani | e6d43af | 2016-03-04 12:29:05 +0530 | [diff] [blame] | 765 | |
Bharat saraswal | d532a4c | 2016-03-25 18:19:46 +0530 | [diff] [blame] | 766 | /** |
Bharat saraswal | 9fab16b | 2016-09-23 23:27:24 +0530 | [diff] [blame] | 767 | * Static attribute for to syntax. |
| 768 | */ |
| 769 | public static final String TO_CAPS = "To"; |
| 770 | |
| 771 | /** |
Bharat saraswal | d532a4c | 2016-03-25 18:19:46 +0530 | [diff] [blame] | 772 | * Static attribute for true syntax. |
| 773 | */ |
b.janani | e6d43af | 2016-03-04 12:29:05 +0530 | [diff] [blame] | 774 | public static final String TRUE = "true"; |
Bharat saraswal | d532a4c | 2016-03-25 18:19:46 +0530 | [diff] [blame] | 775 | |
| 776 | /** |
| 777 | * Static attribute for false syntax. |
| 778 | */ |
b.janani | e6d43af | 2016-03-04 12:29:05 +0530 | [diff] [blame] | 779 | public static final String FALSE = "false"; |
Bharat saraswal | d532a4c | 2016-03-25 18:19:46 +0530 | [diff] [blame] | 780 | |
| 781 | /** |
| 782 | * Static attribute for org. |
| 783 | */ |
Vinod Kumar S | 9f26ae5 | 2016-03-23 15:30:27 +0530 | [diff] [blame] | 784 | public static final String ORG = "org"; |
Bharat saraswal | d532a4c | 2016-03-25 18:19:46 +0530 | [diff] [blame] | 785 | |
| 786 | /** |
| 787 | * Static attribute for temp. |
| 788 | */ |
Bharat saraswal | 9fab16b | 2016-09-23 23:27:24 +0530 | [diff] [blame] | 789 | public static final String TEMP = "Temp"; |
Bharat saraswal | d532a4c | 2016-03-25 18:19:46 +0530 | [diff] [blame] | 790 | |
| 791 | /** |
| 792 | * Static attribute for YANG file directory. |
| 793 | */ |
Vinod Kumar S | 9f26ae5 | 2016-03-23 15:30:27 +0530 | [diff] [blame] | 794 | public static final String YANG_RESOURCES = "yang/resources"; |
Bharat saraswal | dedf9f8 | 2016-02-12 20:48:30 +0530 | [diff] [blame] | 795 | |
| 796 | /** |
Bharat saraswal | d532a4c | 2016-03-25 18:19:46 +0530 | [diff] [blame] | 797 | * Static attribute for diamond close bracket syntax. |
Bharat saraswal | dedf9f8 | 2016-02-12 20:48:30 +0530 | [diff] [blame] | 798 | */ |
| 799 | public static final String DIAMOND_OPEN_BRACKET = "<"; |
Bharat saraswal | d532a4c | 2016-03-25 18:19:46 +0530 | [diff] [blame] | 800 | |
| 801 | /** |
| 802 | * Static attribute for diamond close bracket syntax. |
| 803 | */ |
Bharat saraswal | dedf9f8 | 2016-02-12 20:48:30 +0530 | [diff] [blame] | 804 | public static final String DIAMOND_CLOSE_BRACKET = ">"; |
Bharat saraswal | d532a4c | 2016-03-25 18:19:46 +0530 | [diff] [blame] | 805 | |
| 806 | /** |
Bharat saraswal | 9fab16b | 2016-09-23 23:27:24 +0530 | [diff] [blame] | 807 | * Static attribute for event type. |
| 808 | */ |
| 809 | public static final String EVENT_TYPE = ".Type"; |
| 810 | |
| 811 | /** |
Gaurav Agrawal | 97a5e1c | 2016-04-18 18:53:11 +0530 | [diff] [blame] | 812 | * Static attribute for exception syntax. |
Bharat saraswal | d532a4c | 2016-03-25 18:19:46 +0530 | [diff] [blame] | 813 | */ |
Gaurav Agrawal | 97a5e1c | 2016-04-18 18:53:11 +0530 | [diff] [blame] | 814 | public static final String EXCEPTION = "Exception"; |
Bharat saraswal | d532a4c | 2016-03-25 18:19:46 +0530 | [diff] [blame] | 815 | |
| 816 | /** |
Gaurav Agrawal | 97a5e1c | 2016-04-18 18:53:11 +0530 | [diff] [blame] | 817 | * Static attribute for exception variable syntax. |
Bharat saraswal | d532a4c | 2016-03-25 18:19:46 +0530 | [diff] [blame] | 818 | */ |
Gaurav Agrawal | 97a5e1c | 2016-04-18 18:53:11 +0530 | [diff] [blame] | 819 | public static final String EXCEPTION_VAR = "e"; |
Bharat saraswal | d532a4c | 2016-03-25 18:19:46 +0530 | [diff] [blame] | 820 | |
| 821 | /** |
| 822 | * Static attribute for open parenthesis syntax. |
| 823 | */ |
Bharat saraswal | dedf9f8 | 2016-02-12 20:48:30 +0530 | [diff] [blame] | 824 | public static final String OPEN_PARENTHESIS = "("; |
Bharat saraswal | d532a4c | 2016-03-25 18:19:46 +0530 | [diff] [blame] | 825 | |
| 826 | /** |
Bharat saraswal | 250a747 | 2016-05-12 13:16:57 +0530 | [diff] [blame] | 827 | * Static attribute for switch syntax. |
| 828 | */ |
| 829 | public static final String SWITCH = "switch"; |
| 830 | |
| 831 | /** |
| 832 | * Static attribute for case syntax. |
| 833 | */ |
| 834 | public static final String CASE = "case"; |
| 835 | |
| 836 | /** |
Gaurav Agrawal | 97a5e1c | 2016-04-18 18:53:11 +0530 | [diff] [blame] | 837 | * Static attribute for temp val syntax. |
| 838 | */ |
| 839 | public static final String TMP_VAL = "tmpVal"; |
| 840 | |
| 841 | /** |
Bharat saraswal | 64e7e23 | 2016-07-14 23:33:55 +0530 | [diff] [blame] | 842 | * Static attribute for close curly bracket syntax. |
| 843 | */ |
Bharat saraswal | c2fd322 | 2016-10-19 16:10:27 +0530 | [diff] [blame] | 844 | public static final String ELSE = " else "; |
Bharat saraswal | 64e7e23 | 2016-07-14 23:33:55 +0530 | [diff] [blame] | 845 | |
| 846 | /** |
Gaurav Agrawal | 97a5e1c | 2016-04-18 18:53:11 +0530 | [diff] [blame] | 847 | * From string parameter name. |
| 848 | */ |
| 849 | public static final String FROM_STRING_PARAM_NAME = "valInString"; |
| 850 | |
| 851 | /** |
Bharat saraswal | d532a4c | 2016-03-25 18:19:46 +0530 | [diff] [blame] | 852 | * Static attribute for close parenthesis syntax. |
| 853 | */ |
Bharat saraswal | dedf9f8 | 2016-02-12 20:48:30 +0530 | [diff] [blame] | 854 | public static final String CLOSE_PARENTHESIS = ")"; |
Bharat saraswal | d532a4c | 2016-03-25 18:19:46 +0530 | [diff] [blame] | 855 | |
| 856 | /** |
VinodKumarS-Huawei | 9a91b48 | 2016-08-19 23:22:59 +0530 | [diff] [blame] | 857 | * Static attribute for empty parameter function call. |
| 858 | */ |
Bharat saraswal | 54e4bab | 2016-10-05 23:32:14 +0530 | [diff] [blame] | 859 | public static final String OPEN_CLOSE_BRACKET_STRING = "()"; |
VinodKumarS-Huawei | 9a91b48 | 2016-08-19 23:22:59 +0530 | [diff] [blame] | 860 | |
| 861 | /** |
Bharat saraswal | 94844d6 | 2016-10-13 13:28:03 +0530 | [diff] [blame] | 862 | * Static attribute for empty parameter function call. |
| 863 | */ |
| 864 | public static final String OPEN_CLOSE_DIAMOND_STRING = "<>"; |
| 865 | |
| 866 | /** |
Bharat saraswal | d532a4c | 2016-03-25 18:19:46 +0530 | [diff] [blame] | 867 | * Static attribute for open curly bracket syntax. |
| 868 | */ |
Bharat saraswal | dedf9f8 | 2016-02-12 20:48:30 +0530 | [diff] [blame] | 869 | public static final String OPEN_CURLY_BRACKET = "{"; |
Bharat saraswal | d532a4c | 2016-03-25 18:19:46 +0530 | [diff] [blame] | 870 | |
| 871 | /** |
| 872 | * Static attribute for close curly bracket syntax. |
| 873 | */ |
Bharat saraswal | dedf9f8 | 2016-02-12 20:48:30 +0530 | [diff] [blame] | 874 | public static final String CLOSE_CURLY_BRACKET = "}"; |
| 875 | |
| 876 | /** |
Mahesh Poojary Huawei | 2cd4433 | 2016-07-14 12:38:17 +0530 | [diff] [blame] | 877 | * Static attribute for square brackets syntax. |
| 878 | */ |
| 879 | public static final String SQUARE_BRACKETS = "[]"; |
| 880 | |
| 881 | /** |
Bharat saraswal | d532a4c | 2016-03-25 18:19:46 +0530 | [diff] [blame] | 882 | * Static attribute for getter method prefix. |
Bharat saraswal | dedf9f8 | 2016-02-12 20:48:30 +0530 | [diff] [blame] | 883 | */ |
| 884 | public static final String GET_METHOD_PREFIX = "get"; |
Bharat saraswal | d532a4c | 2016-03-25 18:19:46 +0530 | [diff] [blame] | 885 | |
| 886 | /** |
| 887 | * Static attribute for setter method prefix. |
| 888 | */ |
Bharat saraswal | dedf9f8 | 2016-02-12 20:48:30 +0530 | [diff] [blame] | 889 | public static final String SET_METHOD_PREFIX = "set"; |
| 890 | |
| 891 | /** |
Bharat saraswal | 8beac34 | 2016-08-04 02:00:03 +0530 | [diff] [blame] | 892 | * Static attribute for op param. |
Shankara-Huawei | a1039e5 | 2016-07-14 16:53:09 +0530 | [diff] [blame] | 893 | */ |
Bharat saraswal | 8beac34 | 2016-08-04 02:00:03 +0530 | [diff] [blame] | 894 | public static final String OP_PARAM = "OpParam"; |
Shankara-Huawei | a1039e5 | 2016-07-14 16:53:09 +0530 | [diff] [blame] | 895 | |
Shankara-Huawei | a1039e5 | 2016-07-14 16:53:09 +0530 | [diff] [blame] | 896 | |
| 897 | /** |
| 898 | * Static attribute for is filter content match method prefix. |
| 899 | */ |
Gaurav Agrawal | 3b57f36 | 2016-09-07 13:16:35 +0530 | [diff] [blame] | 900 | public static final String PROCESS_SUBTREE_FILTERING = |
| 901 | "processSubtreeFiltering"; |
VinodKumarS-Huawei | 9a91b48 | 2016-08-19 23:22:59 +0530 | [diff] [blame] | 902 | |
| 903 | /** |
| 904 | * variable name of the subtree filtering result builder. |
| 905 | */ |
Gaurav Agrawal | 3b57f36 | 2016-09-07 13:16:35 +0530 | [diff] [blame] | 906 | public static final String SUBTREE_FILTERING_RESULT_BUILDER = |
| 907 | "subTreeFilteringResultBuilder"; |
VinodKumarS-Huawei | 9a91b48 | 2016-08-19 23:22:59 +0530 | [diff] [blame] | 908 | |
| 909 | /** |
| 910 | * variable name of the subtree filtering result flag. |
| 911 | */ |
Gaurav Agrawal | 3b57f36 | 2016-09-07 13:16:35 +0530 | [diff] [blame] | 912 | public static final String IS_ANY_SELECT_OR_CONTAINMENT_NODE_FLAG = |
| 913 | "isAnySelectOrContainmentNode"; |
VinodKumarS-Huawei | 9a91b48 | 2016-08-19 23:22:59 +0530 | [diff] [blame] | 914 | |
| 915 | /** |
| 916 | * variable name of the subtree filtering to select all child. |
| 917 | */ |
Gaurav Agrawal | 3b57f36 | 2016-09-07 13:16:35 +0530 | [diff] [blame] | 918 | public static final String IS_SELECT_ALL_SCHEMA_CHILD_FLAG = |
| 919 | "isSelectAllSchemaChild"; |
Bharat saraswal | 8beac34 | 2016-08-04 02:00:03 +0530 | [diff] [blame] | 920 | |
| 921 | /** |
| 922 | * Static attribute for break prefix. |
| 923 | */ |
| 924 | public static final String BREAK = "break"; |
| 925 | |
| 926 | /** |
Bharat saraswal | c2fd322 | 2016-10-19 16:10:27 +0530 | [diff] [blame] | 927 | * Static attribute for isEmpty. |
Bharat saraswal | 8beac34 | 2016-08-04 02:00:03 +0530 | [diff] [blame] | 928 | */ |
| 929 | public static final String IS_EMPTY = "isEmpty()"; |
Bharat saraswal | c2fd322 | 2016-10-19 16:10:27 +0530 | [diff] [blame] | 930 | /** |
| 931 | * Static attribute for exception string in bits enum class. |
| 932 | */ |
Bharat saraswal | a5c2851 | 2016-11-10 21:09:23 +0530 | [diff] [blame] | 933 | public static final String EXCEPTION_STRING = "IllegalArgumentException" + |
| 934 | "(\"not a valid input element\");\n"; |
| 935 | |
| 936 | /** |
| 937 | * Static attribute for priority queue. |
| 938 | */ |
| 939 | public static final String PRIORITY_QUEUE = "java.util.PriorityQueue<>()"; |
| 940 | |
| 941 | /** |
| 942 | * Static attribute for linked hash set. |
| 943 | */ |
| 944 | public static final String LINKED_HASH_SET = "java.util.LinkedHashSet<>()"; |
| 945 | |
| 946 | /** |
| 947 | * Static attribute for priority queue. |
| 948 | */ |
| 949 | public static final String LINKED_HASH_MAP = "java.util.LinkedHashMap<>()"; |
Bharat saraswal | c2fd322 | 2016-10-19 16:10:27 +0530 | [diff] [blame] | 950 | |
| 951 | /** |
| 952 | * Static attribute for "throw new ". |
| 953 | */ |
| 954 | public static final String THROW_NEW = "throw new "; |
Bharat saraswal | 8beac34 | 2016-08-04 02:00:03 +0530 | [diff] [blame] | 955 | |
| 956 | /** |
| 957 | * Static attribute for is isLeafValueSet method prefix. |
| 958 | */ |
| 959 | public static final String VALUE_LEAF_SET = "isLeafValueSet"; |
| 960 | |
| 961 | /** |
Bharat saraswal | 94844d6 | 2016-10-13 13:28:03 +0530 | [diff] [blame] | 962 | * Static attribute for is valueLeafFlags method prefix. |
| 963 | */ |
| 964 | public static final String VALUE_LEAF = "valueLeafFlags"; |
| 965 | |
| 966 | /** |
| 967 | * Static attribute for is selectLeafFlags method prefix. |
| 968 | */ |
| 969 | public static final String SELECT_LEAF = "selectLeafFlags"; |
| 970 | |
| 971 | /** |
Bharat saraswal | 8beac34 | 2016-08-04 02:00:03 +0530 | [diff] [blame] | 972 | * Static attribute for is isSelectLeaf method prefix. |
| 973 | */ |
| 974 | public static final String IS_SELECT_LEAF = "isSelectLeaf"; |
| 975 | |
| 976 | /** |
| 977 | * Static attribute for is selectLeaf method prefix. |
| 978 | */ |
| 979 | public static final String SET_SELECT_LEAF = "selectLeaf"; |
| 980 | |
| 981 | /** |
| 982 | * Static attribute for is LeafIdentifier enum prefix. |
| 983 | */ |
| 984 | public static final String LEAF_IDENTIFIER = "LeafIdentifier"; |
Bharat saraswal | 9fab16b | 2016-09-23 23:27:24 +0530 | [diff] [blame] | 985 | /** |
| 986 | * Static attribute for is leaf. |
| 987 | */ |
| 988 | public static final String LEAF = "leaf"; |
Bharat saraswal | 8beac34 | 2016-08-04 02:00:03 +0530 | [diff] [blame] | 989 | |
| 990 | /** |
Bharat saraswal | d532a4c | 2016-03-25 18:19:46 +0530 | [diff] [blame] | 991 | * Static attribute for four space indentation. |
Bharat saraswal | dedf9f8 | 2016-02-12 20:48:30 +0530 | [diff] [blame] | 992 | */ |
| 993 | public static final String FOUR_SPACE_INDENTATION = " "; |
Bharat saraswal | d532a4c | 2016-03-25 18:19:46 +0530 | [diff] [blame] | 994 | |
| 995 | /** |
Shankara-Huawei | a1039e5 | 2016-07-14 16:53:09 +0530 | [diff] [blame] | 996 | * Static attribute for not syntax. |
| 997 | */ |
| 998 | public static final String NOT = "!"; |
| 999 | |
| 1000 | /** |
Gaurav Agrawal | 97a5e1c | 2016-04-18 18:53:11 +0530 | [diff] [blame] | 1001 | * Static attribute for try syntax. |
| 1002 | */ |
| 1003 | public static final String TRY = "try"; |
| 1004 | |
| 1005 | /** |
| 1006 | * Static attribute for catch syntax. |
| 1007 | */ |
| 1008 | public static final String CATCH = "catch"; |
| 1009 | |
| 1010 | /** |
Bharat saraswal | d532a4c | 2016-03-25 18:19:46 +0530 | [diff] [blame] | 1011 | * Static attribute for eight space indentation. |
| 1012 | */ |
Gaurav Agrawal | 3b57f36 | 2016-09-07 13:16:35 +0530 | [diff] [blame] | 1013 | public static final String EIGHT_SPACE_INDENTATION = |
| 1014 | FOUR_SPACE_INDENTATION + FOUR_SPACE_INDENTATION; |
Bharat saraswal | d532a4c | 2016-03-25 18:19:46 +0530 | [diff] [blame] | 1015 | |
| 1016 | /** |
| 1017 | * Static attribute for twelve space indentation. |
| 1018 | */ |
Gaurav Agrawal | 3b57f36 | 2016-09-07 13:16:35 +0530 | [diff] [blame] | 1019 | public static final String TWELVE_SPACE_INDENTATION = |
| 1020 | EIGHT_SPACE_INDENTATION + FOUR_SPACE_INDENTATION; |
Bharat saraswal | d532a4c | 2016-03-25 18:19:46 +0530 | [diff] [blame] | 1021 | |
| 1022 | /** |
| 1023 | * Static attribute for sixteen space indentation. |
| 1024 | */ |
Gaurav Agrawal | 3b57f36 | 2016-09-07 13:16:35 +0530 | [diff] [blame] | 1025 | public static final String SIXTEEN_SPACE_INDENTATION = |
| 1026 | TWELVE_SPACE_INDENTATION + FOUR_SPACE_INDENTATION; |
Bharat saraswal | dedf9f8 | 2016-02-12 20:48:30 +0530 | [diff] [blame] | 1027 | |
| 1028 | /** |
Bharat saraswal | 8beac34 | 2016-08-04 02:00:03 +0530 | [diff] [blame] | 1029 | * Static attribute for twenty space indentation. |
| 1030 | */ |
Gaurav Agrawal | 3b57f36 | 2016-09-07 13:16:35 +0530 | [diff] [blame] | 1031 | public static final String TWENTY_SPACE_INDENTATION = |
| 1032 | SIXTEEN_SPACE_INDENTATION + FOUR_SPACE_INDENTATION; |
Bharat saraswal | 8beac34 | 2016-08-04 02:00:03 +0530 | [diff] [blame] | 1033 | |
| 1034 | /** |
| 1035 | * Static attribute for twenty four space indentation. |
| 1036 | */ |
Gaurav Agrawal | 3b57f36 | 2016-09-07 13:16:35 +0530 | [diff] [blame] | 1037 | public static final String TWENTY_FOUR_SPACE_INDENTATION = |
| 1038 | TWENTY_SPACE_INDENTATION + FOUR_SPACE_INDENTATION; |
VinodKumarS-Huawei | 9a91b48 | 2016-08-19 23:22:59 +0530 | [diff] [blame] | 1039 | |
| 1040 | /** |
| 1041 | * Static attribute for twenty eight space indentation. |
| 1042 | */ |
Gaurav Agrawal | 3b57f36 | 2016-09-07 13:16:35 +0530 | [diff] [blame] | 1043 | public static final String TWENTY_EIGHT_SPACE_INDENTATION = |
| 1044 | TWENTY_FOUR_SPACE_INDENTATION + FOUR_SPACE_INDENTATION; |
VinodKumarS-Huawei | 9a91b48 | 2016-08-19 23:22:59 +0530 | [diff] [blame] | 1045 | |
| 1046 | /** |
| 1047 | * Static attribute for thirty two space indentation. |
| 1048 | */ |
Gaurav Agrawal | 3b57f36 | 2016-09-07 13:16:35 +0530 | [diff] [blame] | 1049 | public static final String THIRTY_TWO_SPACE_INDENTATION = |
| 1050 | TWENTY_EIGHT_SPACE_INDENTATION + FOUR_SPACE_INDENTATION; |
VinodKumarS-Huawei | 9a91b48 | 2016-08-19 23:22:59 +0530 | [diff] [blame] | 1051 | |
| 1052 | /** |
Bharat saraswal | d532a4c | 2016-03-25 18:19:46 +0530 | [diff] [blame] | 1053 | * Static attribute for generated code path. |
Bharat saraswal | dedf9f8 | 2016-02-12 20:48:30 +0530 | [diff] [blame] | 1054 | */ |
Bharat saraswal | 5600f0f | 2016-03-09 18:34:56 +0530 | [diff] [blame] | 1055 | public static final String YANG_GEN_DIR = "src/main/java/"; |
Bharat saraswal | d532a4c | 2016-03-25 18:19:46 +0530 | [diff] [blame] | 1056 | |
| 1057 | /** |
| 1058 | * Static attribute for base package. |
| 1059 | */ |
Bharat saraswal | dedf9f8 | 2016-02-12 20:48:30 +0530 | [diff] [blame] | 1060 | public static final String DEFAULT_BASE_PKG = "org.onosproject.yang.gen"; |
Bharat saraswal | d532a4c | 2016-03-25 18:19:46 +0530 | [diff] [blame] | 1061 | |
| 1062 | /** |
| 1063 | * Static attribute for YANG date prefix. |
| 1064 | */ |
Bharat saraswal | dedf9f8 | 2016-02-12 20:48:30 +0530 | [diff] [blame] | 1065 | public static final String REVISION_PREFIX = "rev"; |
Bharat saraswal | d532a4c | 2016-03-25 18:19:46 +0530 | [diff] [blame] | 1066 | |
| 1067 | /** |
Gaurav Agrawal | 3b57f36 | 2016-09-07 13:16:35 +0530 | [diff] [blame] | 1068 | * Static attribute for YANG automatic prefix for identifiers with keywords |
| 1069 | * and beginning with digits. |
janani b | 1c6acc4 | 2016-04-15 16:18:30 +0530 | [diff] [blame] | 1070 | */ |
| 1071 | public static final String YANG_AUTO_PREFIX = "yangAutoPrefix"; |
| 1072 | |
| 1073 | /** |
Bharat saraswal | 8beac34 | 2016-08-04 02:00:03 +0530 | [diff] [blame] | 1074 | * Static attribute for YANG version prefix. |
Bharat saraswal | d532a4c | 2016-03-25 18:19:46 +0530 | [diff] [blame] | 1075 | */ |
Bharat saraswal | dedf9f8 | 2016-02-12 20:48:30 +0530 | [diff] [blame] | 1076 | public static final String VERSION_PREFIX = "v"; |
| 1077 | |
| 1078 | /** |
Bharat saraswal | d532a4c | 2016-03-25 18:19:46 +0530 | [diff] [blame] | 1079 | * Static attribute for private modifier. |
Bharat saraswal | dedf9f8 | 2016-02-12 20:48:30 +0530 | [diff] [blame] | 1080 | */ |
| 1081 | public static final String PRIVATE = "private"; |
Bharat saraswal | dedf9f8 | 2016-02-12 20:48:30 +0530 | [diff] [blame] | 1082 | |
| 1083 | /** |
Bharat saraswal | d532a4c | 2016-03-25 18:19:46 +0530 | [diff] [blame] | 1084 | * Static attribute for public modifier. |
Bharat saraswal | dedf9f8 | 2016-02-12 20:48:30 +0530 | [diff] [blame] | 1085 | */ |
Bharat saraswal | d532a4c | 2016-03-25 18:19:46 +0530 | [diff] [blame] | 1086 | public static final String PUBLIC = "public"; |
| 1087 | |
| 1088 | /** |
Shankara-Huawei | 234cd09 | 2016-07-14 11:35:34 +0530 | [diff] [blame] | 1089 | * Static attribute for abstract modifier. |
| 1090 | */ |
| 1091 | public static final String ABSTRACT = "abstract"; |
| 1092 | |
| 1093 | /** |
Shankara-Huawei | a1039e5 | 2016-07-14 16:53:09 +0530 | [diff] [blame] | 1094 | * Static attribute for protected modifier. |
| 1095 | */ |
| 1096 | public static final String PROTECTED = "protected"; |
| 1097 | |
| 1098 | /** |
Vinod Kumar S | 0871098 | 2016-03-03 19:55:30 +0530 | [diff] [blame] | 1099 | * Void java type. |
| 1100 | */ |
Bharat saraswal | dedf9f8 | 2016-02-12 20:48:30 +0530 | [diff] [blame] | 1101 | public static final String VOID = "void"; |
Vinod Kumar S | 0871098 | 2016-03-03 19:55:30 +0530 | [diff] [blame] | 1102 | |
| 1103 | /** |
| 1104 | * String built in java type. |
| 1105 | */ |
Bharat saraswal | 84366c5 | 2016-03-23 19:40:35 +0530 | [diff] [blame] | 1106 | public static final String STRING_DATA_TYPE = "String"; |
Bharat saraswal | e2bc60d | 2016-04-16 02:28:25 +0530 | [diff] [blame] | 1107 | |
Vinod Kumar S | 0871098 | 2016-03-03 19:55:30 +0530 | [diff] [blame] | 1108 | /** |
Bharat saraswal | 54e4bab | 2016-10-05 23:32:14 +0530 | [diff] [blame] | 1109 | * String built in java type. |
| 1110 | */ |
| 1111 | public static final String STRING_BUILDER = "StringBuilder"; |
| 1112 | /** |
Bharat saraswal | e2bc60d | 2016-04-16 02:28:25 +0530 | [diff] [blame] | 1113 | * Java.lang.* packages. |
Vinod Kumar S | 0871098 | 2016-03-03 19:55:30 +0530 | [diff] [blame] | 1114 | */ |
| 1115 | public static final String JAVA_LANG = "java.lang"; |
| 1116 | |
| 1117 | /** |
Bharat saraswal | e2bc60d | 2016-04-16 02:28:25 +0530 | [diff] [blame] | 1118 | * Java.math.* packages. |
| 1119 | */ |
| 1120 | public static final String JAVA_MATH = "java.math"; |
| 1121 | |
| 1122 | /** |
| 1123 | * Boolean built in java type. |
Vinod Kumar S | 0871098 | 2016-03-03 19:55:30 +0530 | [diff] [blame] | 1124 | */ |
Bharat saraswal | 84366c5 | 2016-03-23 19:40:35 +0530 | [diff] [blame] | 1125 | public static final String BOOLEAN_DATA_TYPE = "boolean"; |
Vinod Kumar S | 0871098 | 2016-03-03 19:55:30 +0530 | [diff] [blame] | 1126 | |
| 1127 | /** |
Bharat saraswal | e2bc60d | 2016-04-16 02:28:25 +0530 | [diff] [blame] | 1128 | * BigInteger built in java type. |
| 1129 | */ |
| 1130 | public static final String BIG_INTEGER = "BigInteger"; |
| 1131 | |
| 1132 | /** |
Mahesh Poojary Huawei | 2cd4433 | 2016-07-14 12:38:17 +0530 | [diff] [blame] | 1133 | * BigDecimal built in java type. |
| 1134 | */ |
| 1135 | public static final String BIG_DECIMAL = "BigDecimal"; |
| 1136 | |
| 1137 | /** |
| 1138 | * BitSet built in java type. |
| 1139 | */ |
| 1140 | public static final String BIT_SET = "BitSet"; |
| 1141 | |
| 1142 | /** |
Bharat saraswal | 0663aff | 2016-10-18 23:16:14 +0530 | [diff] [blame] | 1143 | * Flag for subtree filtering in augment. |
| 1144 | */ |
| 1145 | public static final String SUBTREE_FILTERED = "isSubTreeFiltered"; |
| 1146 | |
| 1147 | /** |
Bharat saraswal | 94844d6 | 2016-10-13 13:28:03 +0530 | [diff] [blame] | 1148 | * Augment map type. |
| 1149 | */ |
| 1150 | public static final String AUGMENT_MAP_TYPE = "Map<Class<?>, Object>"; |
| 1151 | |
| 1152 | /** |
Bharat saraswal | e2bc60d | 2016-04-16 02:28:25 +0530 | [diff] [blame] | 1153 | * Byte java built in type. |
Vinod Kumar S | 0871098 | 2016-03-03 19:55:30 +0530 | [diff] [blame] | 1154 | */ |
Bharat saraswal | dedf9f8 | 2016-02-12 20:48:30 +0530 | [diff] [blame] | 1155 | public static final String BYTE = "byte"; |
Vinod Kumar S | 0871098 | 2016-03-03 19:55:30 +0530 | [diff] [blame] | 1156 | |
| 1157 | /** |
Bharat saraswal | e2bc60d | 2016-04-16 02:28:25 +0530 | [diff] [blame] | 1158 | * Short java built in type. |
Vinod Kumar S | 0871098 | 2016-03-03 19:55:30 +0530 | [diff] [blame] | 1159 | */ |
| 1160 | public static final String SHORT = "short"; |
| 1161 | |
| 1162 | /** |
Bharat saraswal | e2bc60d | 2016-04-16 02:28:25 +0530 | [diff] [blame] | 1163 | * Int java built in type. |
Vinod Kumar S | 0871098 | 2016-03-03 19:55:30 +0530 | [diff] [blame] | 1164 | */ |
| 1165 | public static final String INT = "int"; |
| 1166 | |
| 1167 | /** |
Bharat saraswal | e2bc60d | 2016-04-16 02:28:25 +0530 | [diff] [blame] | 1168 | * Long java built in type. |
Vinod Kumar S | 0871098 | 2016-03-03 19:55:30 +0530 | [diff] [blame] | 1169 | */ |
| 1170 | public static final String LONG = "long"; |
| 1171 | |
| 1172 | /** |
Bharat saraswal | e2bc60d | 2016-04-16 02:28:25 +0530 | [diff] [blame] | 1173 | * Double java built in type. |
Vinod Kumar S | 0871098 | 2016-03-03 19:55:30 +0530 | [diff] [blame] | 1174 | */ |
Bharat saraswal | dedf9f8 | 2016-02-12 20:48:30 +0530 | [diff] [blame] | 1175 | public static final String DOUBLE = "double"; |
| 1176 | |
| 1177 | /** |
Bharat saraswal | e2bc60d | 2016-04-16 02:28:25 +0530 | [diff] [blame] | 1178 | * Boolean built in java wrapper type. |
Vinod Kumar S | 0871098 | 2016-03-03 19:55:30 +0530 | [diff] [blame] | 1179 | */ |
| 1180 | public static final String BOOLEAN_WRAPPER = "Boolean"; |
| 1181 | |
| 1182 | /** |
Bharat saraswal | e2bc60d | 2016-04-16 02:28:25 +0530 | [diff] [blame] | 1183 | * Byte java built in wrapper type. |
Vinod Kumar S | 0871098 | 2016-03-03 19:55:30 +0530 | [diff] [blame] | 1184 | */ |
| 1185 | public static final String BYTE_WRAPPER = "Byte"; |
| 1186 | |
| 1187 | /** |
Bharat saraswal | e2bc60d | 2016-04-16 02:28:25 +0530 | [diff] [blame] | 1188 | * Short java built in wrapper type. |
Vinod Kumar S | 0871098 | 2016-03-03 19:55:30 +0530 | [diff] [blame] | 1189 | */ |
| 1190 | public static final String SHORT_WRAPPER = "Short"; |
| 1191 | |
| 1192 | /** |
| 1193 | * Integer java built in wrapper type. |
| 1194 | */ |
| 1195 | public static final String INTEGER_WRAPPER = "Integer"; |
| 1196 | |
| 1197 | /** |
Bharat saraswal | e2bc60d | 2016-04-16 02:28:25 +0530 | [diff] [blame] | 1198 | * Long java built in wrapper type. |
Vinod Kumar S | 0871098 | 2016-03-03 19:55:30 +0530 | [diff] [blame] | 1199 | */ |
| 1200 | public static final String LONG_WRAPPER = "Long"; |
| 1201 | |
| 1202 | /** |
Bharat saraswal | 8beac34 | 2016-08-04 02:00:03 +0530 | [diff] [blame] | 1203 | * Static variable for question mark. |
Vinod Kumar S | 0871098 | 2016-03-03 19:55:30 +0530 | [diff] [blame] | 1204 | */ |
Bharat saraswal | af413b8 | 2016-07-14 15:18:20 +0530 | [diff] [blame] | 1205 | public static final String QUESTION_MARK = "?"; |
Mahesh Poojary Huawei | 2cd4433 | 2016-07-14 12:38:17 +0530 | [diff] [blame] | 1206 | |
| 1207 | /** |
Bharat saraswal | 9fab16b | 2016-09-23 23:27:24 +0530 | [diff] [blame] | 1208 | * Static variable for forType string. |
| 1209 | */ |
| 1210 | public static final String FOR_TYPE_STRING = " for type "; |
| 1211 | |
| 1212 | /** |
Gaurav Agrawal | 3b57f36 | 2016-09-07 13:16:35 +0530 | [diff] [blame] | 1213 | * List of keywords in java, this is used for checking if the input does not |
| 1214 | * contain these keywords. |
b.janani | e6d43af | 2016-03-04 12:29:05 +0530 | [diff] [blame] | 1215 | */ |
Gaurav Agrawal | 3b57f36 | 2016-09-07 13:16:35 +0530 | [diff] [blame] | 1216 | public static final List<String> JAVA_KEY_WORDS = |
| 1217 | Arrays.asList("abstract", "assert", "boolean", "break", "byte", |
| 1218 | "case", "catch", "char", "class", "const", "continue", |
| 1219 | "default", "do", "double", "else", "extends", "false", |
| 1220 | "final", "finally", "float", "for", "goto", "if", |
| 1221 | "implements", "import", "instanceof", "enum", "int", |
| 1222 | "interface", "long", "native", "new", "null", |
| 1223 | "package", "private", "protected", "public", "return", |
| 1224 | "short", "static", "strictfp", "super", "switch", |
| 1225 | "synchronized", "this", "throw", "throws", "transient", |
Bharat saraswal | c2fd322 | 2016-10-19 16:10:27 +0530 | [diff] [blame] | 1226 | "true", "try", "void", "volatile", "while", "list", |
Bharat saraswal | 51c5d67 | 2016-11-13 09:03:48 +0530 | [diff] [blame] | 1227 | "map", "arrayList", "hashMap", "linkedList", "notify", |
| 1228 | "notifyAll", "Method", |
Bharat saraswal | c2fd322 | 2016-10-19 16:10:27 +0530 | [diff] [blame] | 1229 | "collections"); |
b.janani | e6d43af | 2016-03-04 12:29:05 +0530 | [diff] [blame] | 1230 | |
| 1231 | /** |
janani b | 1c6acc4 | 2016-04-15 16:18:30 +0530 | [diff] [blame] | 1232 | * Static attribute for regex for all the special characters. |
b.janani | e6d43af | 2016-03-04 12:29:05 +0530 | [diff] [blame] | 1233 | */ |
janani b | 1c6acc4 | 2016-04-15 16:18:30 +0530 | [diff] [blame] | 1234 | public static final String REGEX_WITH_ALL_SPECIAL_CHAR = "\\p{Punct}+"; |
| 1235 | |
| 1236 | /** |
Gaurav Agrawal | 3b57f36 | 2016-09-07 13:16:35 +0530 | [diff] [blame] | 1237 | * Static attribute for regex for three special characters used in |
| 1238 | * identifier. |
janani b | 1c6acc4 | 2016-04-15 16:18:30 +0530 | [diff] [blame] | 1239 | */ |
| 1240 | public static final String REGEX_FOR_IDENTIFIER_SPECIAL_CHAR = "[. _ -]+"; |
| 1241 | |
| 1242 | /** |
| 1243 | * Static attribute for regex for period. |
| 1244 | */ |
| 1245 | public static final String REGEX_FOR_PERIOD = "[.]"; |
| 1246 | |
| 1247 | /** |
| 1248 | * Static attribute for regex for underscore. |
| 1249 | */ |
| 1250 | public static final String REGEX_FOR_UNDERSCORE = "[_]"; |
| 1251 | |
| 1252 | /** |
| 1253 | * Static attribute for regex for hyphen. |
| 1254 | */ |
| 1255 | public static final String REGEX_FOR_HYPHEN = "[-]"; |
Bharat saraswal | d532a4c | 2016-03-25 18:19:46 +0530 | [diff] [blame] | 1256 | |
| 1257 | /** |
| 1258 | * Static attribute for regex for digits. |
| 1259 | */ |
b.janani | e6d43af | 2016-03-04 12:29:05 +0530 | [diff] [blame] | 1260 | public static final String REGEX_FOR_FIRST_DIGIT = "\\d.*"; |
| 1261 | |
| 1262 | /** |
janani b | 703cfe4 | 2016-05-17 13:12:22 +0530 | [diff] [blame] | 1263 | * Static attribute for regex with digits. |
| 1264 | */ |
| 1265 | public static final String REGEX_WITH_DIGITS = "(?=\\d+)"; |
| 1266 | |
| 1267 | /** |
janani b | 1c6acc4 | 2016-04-15 16:18:30 +0530 | [diff] [blame] | 1268 | * Static attribute for regex for single letter. |
| 1269 | */ |
| 1270 | public static final String REGEX_FOR_SINGLE_LETTER = "[a-zA-Z]"; |
| 1271 | |
| 1272 | /** |
| 1273 | * Static attribute for regex for digits with single letter. |
| 1274 | */ |
Gaurav Agrawal | 3b57f36 | 2016-09-07 13:16:35 +0530 | [diff] [blame] | 1275 | public static final String REGEX_FOR_DIGITS_WITH_SINGLE_LETTER = |
| 1276 | "[0-9]+[a-zA-Z]"; |
janani b | 1c6acc4 | 2016-04-15 16:18:30 +0530 | [diff] [blame] | 1277 | |
| 1278 | /** |
janani b | 703cfe4 | 2016-05-17 13:12:22 +0530 | [diff] [blame] | 1279 | * Static attribute for regex with uppercase. |
| 1280 | */ |
| 1281 | public static final String REGEX_WITH_UPPERCASE = "(?=\\p{Upper})"; |
| 1282 | |
| 1283 | /** |
| 1284 | * Static attribute for regex for single capital case letter. |
| 1285 | */ |
| 1286 | public static final String REGEX_WITH_SINGLE_CAPITAL_CASE = "[A-Z]"; |
| 1287 | |
| 1288 | /** |
Gaurav Agrawal | 3b57f36 | 2016-09-07 13:16:35 +0530 | [diff] [blame] | 1289 | * Static attribute for regex for capital case letter with any number of |
| 1290 | * digits and small case letters. |
janani b | 703cfe4 | 2016-05-17 13:12:22 +0530 | [diff] [blame] | 1291 | */ |
Gaurav Agrawal | 3b57f36 | 2016-09-07 13:16:35 +0530 | [diff] [blame] | 1292 | public static final String |
| 1293 | REGEX_WITH_SINGLE_CAPITAL_CASE_AND_DIGITS_SMALL_CASES = |
| 1294 | "[A-Z][0-9a-z]+"; |
janani b | 703cfe4 | 2016-05-17 13:12:22 +0530 | [diff] [blame] | 1295 | |
| 1296 | /** |
janani b | 3e357f6 | 2016-05-19 17:39:50 +0530 | [diff] [blame] | 1297 | * Static attribute for regex for any string ending with service. |
| 1298 | */ |
Gaurav Agrawal | 3b57f36 | 2016-09-07 13:16:35 +0530 | [diff] [blame] | 1299 | public static final String REGEX_FOR_ANY_STRING_ENDING_WITH_SERVICE = |
| 1300 | ".+Service"; |
janani b | 3e357f6 | 2016-05-19 17:39:50 +0530 | [diff] [blame] | 1301 | |
| 1302 | /** |
Bharat saraswal | d532a4c | 2016-03-25 18:19:46 +0530 | [diff] [blame] | 1303 | * Static attribute for class syntax. |
Bharat saraswal | dedf9f8 | 2016-02-12 20:48:30 +0530 | [diff] [blame] | 1304 | */ |
| 1305 | public static final String CLASS = "class"; |
Bharat saraswal | dedf9f8 | 2016-02-12 20:48:30 +0530 | [diff] [blame] | 1306 | |
| 1307 | /** |
Bharat saraswal | d532a4c | 2016-03-25 18:19:46 +0530 | [diff] [blame] | 1308 | * Static attribute for builder syntax. |
| 1309 | */ |
| 1310 | public static final String BUILDER = "Builder"; |
| 1311 | |
| 1312 | /** |
Bharat saraswal | 9fab16b | 2016-09-23 23:27:24 +0530 | [diff] [blame] | 1313 | * Static attribute for builder syntax. |
VinodKumarS-Huawei | 6266db3 | 2016-05-10 17:58:57 +0530 | [diff] [blame] | 1314 | */ |
Bharat saraswal | 9fab16b | 2016-09-23 23:27:24 +0530 | [diff] [blame] | 1315 | public static final String BUILDER_LOWER_CASE = "builder"; |
VinodKumarS-Huawei | 6266db3 | 2016-05-10 17:58:57 +0530 | [diff] [blame] | 1316 | |
| 1317 | /** |
| 1318 | * Static attribute for service syntax. |
| 1319 | */ |
| 1320 | public static final String SERVICE = "Service"; |
| 1321 | |
VinodKumarS-Huawei | 6266db3 | 2016-05-10 17:58:57 +0530 | [diff] [blame] | 1322 | /** |
Bharat saraswal | d532a4c | 2016-03-25 18:19:46 +0530 | [diff] [blame] | 1323 | * Static attribute for interface syntax. |
| 1324 | */ |
| 1325 | public static final String INTERFACE = "interface"; |
| 1326 | |
| 1327 | /** |
| 1328 | * Static attribute for enum syntax. |
| 1329 | */ |
| 1330 | public static final String ENUM = "enum"; |
| 1331 | |
| 1332 | /** |
Bharat saraswal | 715d3fc | 2016-05-17 19:59:16 +0530 | [diff] [blame] | 1333 | * Static attribute for type syntax. |
| 1334 | */ |
| 1335 | public static final String TYPE = "Type"; |
| 1336 | |
| 1337 | /** |
Bharat saraswal | d532a4c | 2016-03-25 18:19:46 +0530 | [diff] [blame] | 1338 | * Static attribute for static syntax. |
| 1339 | */ |
| 1340 | public static final String STATIC = "static"; |
| 1341 | |
| 1342 | /** |
| 1343 | * Static attribute for final syntax. |
| 1344 | */ |
| 1345 | public static final String FINAL = "final"; |
| 1346 | |
| 1347 | /** |
| 1348 | * Static attribute for package syntax. |
| 1349 | */ |
| 1350 | public static final String PACKAGE = "package"; |
| 1351 | |
| 1352 | /** |
| 1353 | * Static attribute for import syntax. |
| 1354 | */ |
| 1355 | public static final String IMPORT = "import "; |
| 1356 | |
| 1357 | /** |
| 1358 | * Static attribute for null syntax. |
| 1359 | */ |
| 1360 | public static final String NULL = "null"; |
| 1361 | |
| 1362 | /** |
| 1363 | * Static attribute for return syntax. |
| 1364 | */ |
| 1365 | public static final String RETURN = "return"; |
| 1366 | |
| 1367 | /** |
| 1368 | * Static attribute for java new syntax. |
| 1369 | */ |
| 1370 | public static final String NEW = "new"; |
| 1371 | |
| 1372 | /** |
Bharat saraswal | 54e4bab | 2016-10-05 23:32:14 +0530 | [diff] [blame] | 1373 | * Static attribute for java new syntax. |
| 1374 | */ |
| 1375 | public static final String TO_STRING_METHOD = "toString"; |
| 1376 | |
| 1377 | /** |
Bharat saraswal | d532a4c | 2016-03-25 18:19:46 +0530 | [diff] [blame] | 1378 | * Static attribute for this syntax. |
| 1379 | */ |
| 1380 | public static final String THIS = "this"; |
| 1381 | |
| 1382 | /** |
| 1383 | * Static attribute for implements syntax. |
| 1384 | */ |
| 1385 | public static final String IMPLEMENTS = "implements"; |
| 1386 | |
| 1387 | /** |
| 1388 | * Static attribute for extends syntax. |
| 1389 | */ |
| 1390 | public static final String EXTEND = "extends"; |
| 1391 | |
| 1392 | /** |
Gaurav Agrawal | 02a60de | 2016-04-20 15:49:17 +0530 | [diff] [blame] | 1393 | * Static attribute for service interface suffix syntax. |
| 1394 | */ |
| 1395 | public static final String SERVICE_METHOD_STRING = "Service"; |
| 1396 | |
| 1397 | /** |
VinodKumarS-Huawei | 6266db3 | 2016-05-10 17:58:57 +0530 | [diff] [blame] | 1398 | * For event file generation. |
| 1399 | */ |
| 1400 | public static final String EVENT_STRING = "Event"; |
| 1401 | |
| 1402 | /** |
| 1403 | * For event listener file generation. |
| 1404 | */ |
Bharat saraswal | aab24b9 | 2016-08-02 18:43:16 +0530 | [diff] [blame] | 1405 | public static final String EVENT_LISTENER_STRING = "EventListener"; |
VinodKumarS-Huawei | 6266db3 | 2016-05-10 17:58:57 +0530 | [diff] [blame] | 1406 | |
| 1407 | /** |
Bharat saraswal | 715d3fc | 2016-05-17 19:59:16 +0530 | [diff] [blame] | 1408 | * For event subject file generation. |
| 1409 | */ |
| 1410 | public static final String EVENT_SUBJECT_NAME_SUFFIX = "EventSubject"; |
| 1411 | |
| 1412 | /** |
Bharat saraswal | d532a4c | 2016-03-25 18:19:46 +0530 | [diff] [blame] | 1413 | * Static attribute for build method syntax. |
| 1414 | */ |
| 1415 | public static final String BUILD = "build"; |
| 1416 | |
| 1417 | /** |
Bharat saraswal | 0663aff | 2016-10-18 23:16:14 +0530 | [diff] [blame] | 1418 | * Static attribute for build for filter in augment method syntax. |
| 1419 | */ |
| 1420 | public static final String BUILD_FOR_FILTER = "buildForFilter"; |
| 1421 | |
| 1422 | /** |
Bharat saraswal | d532a4c | 2016-03-25 18:19:46 +0530 | [diff] [blame] | 1423 | * Static attribute for object. |
| 1424 | */ |
| 1425 | public static final String OBJECT = "Object"; |
| 1426 | |
| 1427 | /** |
Shankara-Huawei | a1039e5 | 2016-07-14 16:53:09 +0530 | [diff] [blame] | 1428 | * Static attribute for app instance. |
| 1429 | */ |
| 1430 | public static final String APP_INSTANCE = "appInstance"; |
| 1431 | |
| 1432 | /** |
Bharat saraswal | e50edca | 2016-08-05 01:58:25 +0530 | [diff] [blame] | 1433 | * Static attribute for instance. |
| 1434 | */ |
| 1435 | public static final String INSTANCE = "instance"; |
| 1436 | |
| 1437 | /** |
Bharat saraswal | d532a4c | 2016-03-25 18:19:46 +0530 | [diff] [blame] | 1438 | * Static attribute for override annotation. |
| 1439 | */ |
| 1440 | public static final String OVERRIDE = "@Override"; |
| 1441 | |
| 1442 | /** |
Bharat saraswal | af413b8 | 2016-07-14 15:18:20 +0530 | [diff] [blame] | 1443 | * Static attribute for collections. |
Bharat saraswal | dedf9f8 | 2016-02-12 20:48:30 +0530 | [diff] [blame] | 1444 | */ |
b.janani | e6d43af | 2016-03-04 12:29:05 +0530 | [diff] [blame] | 1445 | public static final String COLLECTION_IMPORTS = "java.util"; |
Bharat saraswal | d532a4c | 2016-03-25 18:19:46 +0530 | [diff] [blame] | 1446 | |
| 1447 | /** |
Bharat saraswal | b41904b | 2016-10-20 19:22:36 +0530 | [diff] [blame] | 1448 | * Static attribute for reflect. |
Mahesh Poojary Huawei | 1025a17 | 2016-09-27 16:06:07 +0530 | [diff] [blame] | 1449 | */ |
Bharat saraswal | b41904b | 2016-10-20 19:22:36 +0530 | [diff] [blame] | 1450 | public static final String REFLECT_IMPORTS = "java.lang.reflect"; |
Mahesh Poojary Huawei | 1025a17 | 2016-09-27 16:06:07 +0530 | [diff] [blame] | 1451 | |
| 1452 | /** |
Bharat saraswal | af413b8 | 2016-07-14 15:18:20 +0530 | [diff] [blame] | 1453 | * Static attribute for map. |
| 1454 | */ |
| 1455 | public static final String MAP = "Map"; |
| 1456 | |
| 1457 | /** |
| 1458 | * Static attribute for hash map. |
| 1459 | */ |
| 1460 | public static final String HASH_MAP = "HashMap"; |
| 1461 | |
| 1462 | |
| 1463 | /** |
Bharat saraswal | d532a4c | 2016-03-25 18:19:46 +0530 | [diff] [blame] | 1464 | * Static attribute for more object import package. |
| 1465 | */ |
Gaurav Agrawal | 3b57f36 | 2016-09-07 13:16:35 +0530 | [diff] [blame] | 1466 | public static final String GOOGLE_MORE_OBJECT_IMPORT_PKG = |
| 1467 | "com.google.common.base"; |
Bharat saraswal | d532a4c | 2016-03-25 18:19:46 +0530 | [diff] [blame] | 1468 | |
| 1469 | /** |
| 1470 | * Static attribute for more object import class. |
| 1471 | */ |
Gaurav Agrawal | 3b57f36 | 2016-09-07 13:16:35 +0530 | [diff] [blame] | 1472 | public static final String GOOGLE_MORE_OBJECT_IMPORT_CLASS = |
Bharat saraswal | 9fab16b | 2016-09-23 23:27:24 +0530 | [diff] [blame] | 1473 | "MoreObjects"; |
Bharat saraswal | d532a4c | 2016-03-25 18:19:46 +0530 | [diff] [blame] | 1474 | |
| 1475 | /** |
Bharat saraswal | 54e4bab | 2016-10-05 23:32:14 +0530 | [diff] [blame] | 1476 | * Static attribute for more object import class. |
| 1477 | */ |
| 1478 | public static final String MORE_OBJ_ATTR = |
| 1479 | "MoreObjects.ToStringHelper helper = "; |
| 1480 | |
| 1481 | /** |
Bharat saraswal | d532a4c | 2016-03-25 18:19:46 +0530 | [diff] [blame] | 1482 | * Static attribute for to string method. |
| 1483 | */ |
Gaurav Agrawal | 3b57f36 | 2016-09-07 13:16:35 +0530 | [diff] [blame] | 1484 | public static final String GOOGLE_MORE_OBJECT_METHOD_STRING = |
Bharat saraswal | 9fab16b | 2016-09-23 23:27:24 +0530 | [diff] [blame] | 1485 | "MoreObjects.toStringHelper(getClass())"; |
Bharat saraswal | d532a4c | 2016-03-25 18:19:46 +0530 | [diff] [blame] | 1486 | |
| 1487 | /** |
Bharat saraswal | 94844d6 | 2016-10-13 13:28:03 +0530 | [diff] [blame] | 1488 | * Static attribute for to string method. |
| 1489 | */ |
| 1490 | public static final String GOOGLE_MORE_OBJECT_METHOD_STATIC_STRING = |
| 1491 | "MoreObjects.toStringHelper"; |
| 1492 | |
| 1493 | /** |
Bharat saraswal | d532a4c | 2016-03-25 18:19:46 +0530 | [diff] [blame] | 1494 | * Static attribute for java utilities import package. |
| 1495 | */ |
Bharat saraswal | 54e4bab | 2016-10-05 23:32:14 +0530 | [diff] [blame] | 1496 | public static final String JAVA_UTIL_PKG = "java.util"; |
| 1497 | |
| 1498 | /** |
| 1499 | * Static attribute for java utilities import package. |
| 1500 | */ |
| 1501 | public static final String JAVA_UTIL_REGEX_PKG = "java.util.regex"; |
| 1502 | |
| 1503 | /** |
| 1504 | * Static attribute for java utilities import package. |
| 1505 | */ |
| 1506 | public static final String SET_VALUE_PARA = "setValue"; |
| 1507 | |
| 1508 | /** |
Bharat saraswal | b41904b | 2016-10-20 19:22:36 +0530 | [diff] [blame] | 1509 | * Static attribute for Method. |
Bharat saraswal | 54e4bab | 2016-10-05 23:32:14 +0530 | [diff] [blame] | 1510 | */ |
Bharat saraswal | b41904b | 2016-10-20 19:22:36 +0530 | [diff] [blame] | 1511 | public static final String METHOD = "Method"; |
Bharat saraswal | d532a4c | 2016-03-25 18:19:46 +0530 | [diff] [blame] | 1512 | |
| 1513 | /** |
Shankara-Huawei | a1039e5 | 2016-07-14 16:53:09 +0530 | [diff] [blame] | 1514 | * Static attribute for bitset. |
| 1515 | */ |
| 1516 | public static final String BITSET = "BitSet"; |
| 1517 | |
| 1518 | /** |
Bharat saraswal | d532a4c | 2016-03-25 18:19:46 +0530 | [diff] [blame] | 1519 | * Static attribute for java utilities objects import class. |
| 1520 | */ |
Bharat saraswal | 9fab16b | 2016-09-23 23:27:24 +0530 | [diff] [blame] | 1521 | public static final String JAVA_UTIL_OBJECTS_IMPORT_CLASS = "Objects"; |
Bharat saraswal | d532a4c | 2016-03-25 18:19:46 +0530 | [diff] [blame] | 1522 | |
| 1523 | /** |
Bharat saraswal | e2bc60d | 2016-04-16 02:28:25 +0530 | [diff] [blame] | 1524 | * Static attribute for AugmentedInfo class. |
| 1525 | */ |
Bharat saraswal | af413b8 | 2016-07-14 15:18:20 +0530 | [diff] [blame] | 1526 | public static final String YANG_AUGMENTED_INFO = "YangAugmentedInfo"; |
Bharat saraswal | e2bc60d | 2016-04-16 02:28:25 +0530 | [diff] [blame] | 1527 | |
| 1528 | /** |
Bharat saraswal | 9fab16b | 2016-09-23 23:27:24 +0530 | [diff] [blame] | 1529 | * Static attribute for AugmentedInfo class. |
| 1530 | */ |
| 1531 | public static final String YANG_AUGMENTED_INFO_LOWER_CASE = |
| 1532 | "yangAugmentedInfo"; |
| 1533 | |
| 1534 | /** |
Bharat saraswal | 94844d6 | 2016-10-13 13:28:03 +0530 | [diff] [blame] | 1535 | * Static attribute for AugmentedInfo class. |
| 1536 | */ |
| 1537 | public static final String YANG_AUGMENTED_INFO_MAP = |
| 1538 | "yangAugmentedInfoMap"; |
| 1539 | |
| 1540 | /** |
Bharat saraswal | af413b8 | 2016-07-14 15:18:20 +0530 | [diff] [blame] | 1541 | * Static attribute for augmented. |
Bharat saraswal | 4aaab4d | 2016-05-17 14:19:38 +0530 | [diff] [blame] | 1542 | */ |
Bharat saraswal | af413b8 | 2016-07-14 15:18:20 +0530 | [diff] [blame] | 1543 | public static final String AUGMENTED = "Augmented"; |
VinodKumarS-Huawei | d81eccb | 2016-06-01 14:30:22 +0530 | [diff] [blame] | 1544 | |
Bharat saraswal | 4aaab4d | 2016-05-17 14:19:38 +0530 | [diff] [blame] | 1545 | /** |
Bharat saraswal | d532a4c | 2016-03-25 18:19:46 +0530 | [diff] [blame] | 1546 | * Static attribute for list. |
| 1547 | */ |
Bharat saraswal | dedf9f8 | 2016-02-12 20:48:30 +0530 | [diff] [blame] | 1548 | public static final String LIST = "List"; |
Bharat saraswal | d532a4c | 2016-03-25 18:19:46 +0530 | [diff] [blame] | 1549 | |
| 1550 | /** |
Vidyashree Rama | b367047 | 2016-08-06 15:49:56 +0530 | [diff] [blame] | 1551 | * Static attribute for queue. |
| 1552 | */ |
| 1553 | public static final String QUEUE = "Queue"; |
| 1554 | |
| 1555 | /** |
| 1556 | * Static attribute for set. |
| 1557 | */ |
| 1558 | public static final String SET = "Set"; |
| 1559 | |
| 1560 | /** |
Bharat saraswal | b41904b | 2016-10-20 19:22:36 +0530 | [diff] [blame] | 1561 | * Comment to be added for auto generated impl methods. |
VinodKumarS-Huawei | 6266db3 | 2016-05-10 17:58:57 +0530 | [diff] [blame] | 1562 | */ |
Gaurav Agrawal | 3b57f36 | 2016-09-07 13:16:35 +0530 | [diff] [blame] | 1563 | public static final String YANG_UTILS_TODO = |
| 1564 | "//TODO: YANG utils generated code"; |
VinodKumarS-Huawei | 6266db3 | 2016-05-10 17:58:57 +0530 | [diff] [blame] | 1565 | |
| 1566 | /** |
Bharat saraswal | 715d3fc | 2016-05-17 19:59:16 +0530 | [diff] [blame] | 1567 | * Static attribute for AbstractEvent. |
| 1568 | */ |
| 1569 | public static final String ABSTRACT_EVENT = "AbstractEvent"; |
| 1570 | |
| 1571 | /** |
| 1572 | * Static attribute for EventListener. |
| 1573 | */ |
| 1574 | public static final String EVENT_LISTENER = "EventListener"; |
| 1575 | |
| 1576 | /** |
Shankara-Huawei | a1039e5 | 2016-07-14 16:53:09 +0530 | [diff] [blame] | 1577 | * Static attribute for or operator. |
| 1578 | */ |
| 1579 | public static final String OR_OPERATION = "||"; |
| 1580 | |
| 1581 | /** |
VinodKumarS-Huawei | 9a91b48 | 2016-08-19 23:22:59 +0530 | [diff] [blame] | 1582 | * Static attribute for or operator. |
| 1583 | */ |
| 1584 | public static final String AND_OPERATION = "&&"; |
| 1585 | |
| 1586 | /** |
Vidyashree Rama | b624817 | 2016-05-17 16:16:15 +0530 | [diff] [blame] | 1587 | * Static attribute for YANG file error. |
| 1588 | */ |
| 1589 | public static final String YANG_FILE_ERROR = "YANG file error : "; |
| 1590 | |
| 1591 | /** |
| 1592 | * Static attribute for unsupported error information. |
| 1593 | */ |
Gaurav Agrawal | 3b57f36 | 2016-09-07 13:16:35 +0530 | [diff] [blame] | 1594 | public static final String UNSUPPORTED_YANG_CONSTRUCT = |
| 1595 | " is not supported."; |
Vidyashree Rama | b624817 | 2016-05-17 16:16:15 +0530 | [diff] [blame] | 1596 | |
| 1597 | /** |
Bharat saraswal | 9fab16b | 2016-09-23 23:27:24 +0530 | [diff] [blame] | 1598 | * Static attribute for "is invalid" information. |
| 1599 | */ |
| 1600 | public static final String IS_INVALID = " is invalid."; |
| 1601 | |
| 1602 | /** |
| 1603 | * Static attribute for data model tree error information. |
| 1604 | */ |
| 1605 | public static final String INVALID_TREE = "Internal datamodel error: " + |
| 1606 | "Datamodel tree is not correct"; |
| 1607 | |
| 1608 | /** |
Vidyashree Rama | b624817 | 2016-05-17 16:16:15 +0530 | [diff] [blame] | 1609 | * Static attribute for currently unsupported error information. |
| 1610 | */ |
Gaurav Agrawal | 3b57f36 | 2016-09-07 13:16:35 +0530 | [diff] [blame] | 1611 | public static final String CURRENTLY_UNSUPPORTED = |
| 1612 | " is not supported in current version, please check wiki" + |
| 1613 | " for YANG utils road map."; |
Vidyashree Rama | b624817 | 2016-05-17 16:16:15 +0530 | [diff] [blame] | 1614 | |
| 1615 | /** |
Bharat saraswal | 9fab16b | 2016-09-23 23:27:24 +0530 | [diff] [blame] | 1616 | * Static attribute for leaf ref target node error information. |
| 1617 | */ |
| 1618 | public static final String LEAFREF_ERROR = "YANG file error: The target" + |
| 1619 | " node, in the leafref path "; |
| 1620 | |
| 1621 | /** |
| 1622 | * Static attribute for leaf holder error information. |
| 1623 | */ |
| 1624 | public static final String LEAF_HOLDER_ERROR = "Referred node should be of" + |
| 1625 | " type leaves holder in "; |
| 1626 | |
| 1627 | /** |
| 1628 | * Static attribute for invalid resolve entity error information. |
| 1629 | */ |
| 1630 | public static final String INVALID_RESOLVED_ENTITY = "Data Model " + |
| 1631 | "Exception: Entity to resolved is other than type/uses"; |
| 1632 | |
| 1633 | /** |
| 1634 | * Static attribute for invalid resolve entity error information. |
| 1635 | */ |
| 1636 | public static final String INVALID_ENTITY = "Data Model Exception: Entity " + |
| 1637 | "to resolved is other than identityref"; |
| 1638 | |
| 1639 | /** |
| 1640 | * Static attribute for invalid state error information. |
| 1641 | */ |
| 1642 | public static final String INVALID_LINKER_STATE = "Data Model Exception: " + |
| 1643 | "Unsupported, linker state"; |
| 1644 | |
| 1645 | /** |
| 1646 | * Static attribute for leaf ref resolve entity error information. |
| 1647 | */ |
| 1648 | public static final String FAILED_TO_FIND_LEAD_INFO_HOLDER = "YANG file " + |
| 1649 | "error: Unable to find base leaf/leaf-list for given leafref path "; |
| 1650 | |
| 1651 | /** |
| 1652 | * Static attribute for compiler annotation resolve entity error |
| 1653 | * information. |
| 1654 | */ |
| 1655 | public static final String FAILED_TO_FIND_ANNOTATION = "Failed to link " + |
| 1656 | "compiler annotation "; |
| 1657 | |
| 1658 | /** |
| 1659 | * Static attribute for failed to link entity error information. |
| 1660 | */ |
| 1661 | public static final String FAILED_TO_LINK = "Failed to link "; |
| 1662 | |
| 1663 | /** |
| 1664 | * Static attribute for un-resolve entity error information. |
| 1665 | */ |
| 1666 | public static final String UNRESOLVABLE = "Data Model Exception: Entity " + |
| 1667 | "to resolved is not Resolvable"; |
| 1668 | |
| 1669 | /** |
| 1670 | * Static attribute for invalid resolve entity error information. |
| 1671 | */ |
| 1672 | public static final String LINKER_ERROR = "Data Model Exception: Entity" + |
| 1673 | " to resolved is other than type/uses/if-feature/leafref/base/identityref"; |
| 1674 | |
| 1675 | /** |
| 1676 | * Static attribute for invalid resolve entity error information. |
| 1677 | */ |
| 1678 | public static final String INVALID_TARGET = "Invalid target node type "; |
| 1679 | /** |
Vidyashree Rama | 5daea74 | 2016-05-20 16:29:25 +0530 | [diff] [blame] | 1680 | * Static attribute for typedef linker error information. |
| 1681 | */ |
Gaurav Agrawal | 3b57f36 | 2016-09-07 13:16:35 +0530 | [diff] [blame] | 1682 | public static final String TYPEDEF_LINKER_ERROR = |
| 1683 | "YANG file error: Unable to find base typedef for given type"; |
Vidyashree Rama | 5daea74 | 2016-05-20 16:29:25 +0530 | [diff] [blame] | 1684 | |
| 1685 | /** |
| 1686 | * Static attribute for grouping linker error information. |
| 1687 | */ |
Gaurav Agrawal | 3b57f36 | 2016-09-07 13:16:35 +0530 | [diff] [blame] | 1688 | public static final String GROUPING_LINKER_ERROR = |
| 1689 | "YANG file error: Unable to find base grouping for given uses"; |
Vidyashree Rama | 5daea74 | 2016-05-20 16:29:25 +0530 | [diff] [blame] | 1690 | |
| 1691 | /** |
janani b | 0e4e8ae | 2016-07-13 21:06:41 +0530 | [diff] [blame] | 1692 | * Static attribute for if-feature linker error information. |
Vidyashree Rama | 13b4c55 | 2016-06-20 15:12:43 +0530 | [diff] [blame] | 1693 | */ |
Gaurav Agrawal | 3b57f36 | 2016-09-07 13:16:35 +0530 | [diff] [blame] | 1694 | public static final String FEATURE_LINKER_ERROR = |
| 1695 | "YANG file error: Unable to find feature for given if-feature"; |
Vidyashree Rama | 13b4c55 | 2016-06-20 15:12:43 +0530 | [diff] [blame] | 1696 | |
| 1697 | /** |
janani b | 0e4e8ae | 2016-07-13 21:06:41 +0530 | [diff] [blame] | 1698 | * Static attribute for leafref linker error information. |
| 1699 | */ |
Gaurav Agrawal | 3b57f36 | 2016-09-07 13:16:35 +0530 | [diff] [blame] | 1700 | public static final String LEAFREF_LINKER_ERROR = |
| 1701 | "YANG file error: Unable to find base leaf/leaf-list for given " + |
| 1702 | "leafref"; |
janani b | 0e4e8ae | 2016-07-13 21:06:41 +0530 | [diff] [blame] | 1703 | |
| 1704 | /** |
Shankara-Huawei | 234cd09 | 2016-07-14 11:35:34 +0530 | [diff] [blame] | 1705 | * Static attribute for base linker error information. |
| 1706 | */ |
Gaurav Agrawal | 3b57f36 | 2016-09-07 13:16:35 +0530 | [diff] [blame] | 1707 | public static final String BASE_LINKER_ERROR = |
| 1708 | "YANG file error: Unable to find base identity for given base"; |
Shankara-Huawei | 234cd09 | 2016-07-14 11:35:34 +0530 | [diff] [blame] | 1709 | |
| 1710 | /** |
| 1711 | * Static attribute for identityref linker error information. |
| 1712 | */ |
Gaurav Agrawal | 3b57f36 | 2016-09-07 13:16:35 +0530 | [diff] [blame] | 1713 | public static final String IDENTITYREF_LINKER_ERROR = |
| 1714 | "YANG file error: Unable to find base identity for given base"; |
Shankara-Huawei | 234cd09 | 2016-07-14 11:35:34 +0530 | [diff] [blame] | 1715 | |
| 1716 | /** |
Bharat saraswal | c2d3be1 | 2016-06-16 00:29:12 +0530 | [diff] [blame] | 1717 | * Static attribute for jar. |
| 1718 | */ |
| 1719 | public static final String JAR = "jar"; |
| 1720 | |
| 1721 | /** |
Bharat saraswal | 039f59c | 2016-07-14 21:57:13 +0530 | [diff] [blame] | 1722 | * Static attribute for for. |
| 1723 | */ |
| 1724 | public static final String FOR = "for"; |
| 1725 | |
| 1726 | /** |
Bharat saraswal | 8beac34 | 2016-08-04 02:00:03 +0530 | [diff] [blame] | 1727 | * Static attribute for InvocationTargetException. |
Bharat saraswal | 039f59c | 2016-07-14 21:57:13 +0530 | [diff] [blame] | 1728 | */ |
Gaurav Agrawal | 3b57f36 | 2016-09-07 13:16:35 +0530 | [diff] [blame] | 1729 | public static final String INVOCATION_TARGET_EXCEPTION = |
| 1730 | "InvocationTargetException"; |
Bharat saraswal | 039f59c | 2016-07-14 21:57:13 +0530 | [diff] [blame] | 1731 | /** |
Bharat saraswal | 8beac34 | 2016-08-04 02:00:03 +0530 | [diff] [blame] | 1732 | * Static attribute for arrayList. |
Bharat saraswal | 039f59c | 2016-07-14 21:57:13 +0530 | [diff] [blame] | 1733 | */ |
Bharat saraswal | 51c5d67 | 2016-11-13 09:03:48 +0530 | [diff] [blame] | 1734 | public static final String ARRAY_LIST_INIT = "ArrayList<>()"; |
Bharat saraswal | 039f59c | 2016-07-14 21:57:13 +0530 | [diff] [blame] | 1735 | |
| 1736 | /** |
Bharat saraswal | 8beac34 | 2016-08-04 02:00:03 +0530 | [diff] [blame] | 1737 | * Static attribute for arrayList import. |
Bharat saraswal | 039f59c | 2016-07-14 21:57:13 +0530 | [diff] [blame] | 1738 | */ |
Gaurav Agrawal | 3b57f36 | 2016-09-07 13:16:35 +0530 | [diff] [blame] | 1739 | public static final String ARRAY_LIST_IMPORT = |
| 1740 | IMPORT + COLLECTION_IMPORTS + ".ArrayList;\n"; |
Gaurav Agrawal | 8a14752 | 2016-08-10 13:43:01 +0530 | [diff] [blame] | 1741 | |
| 1742 | /** |
| 1743 | * Static attribute for unused keyword. |
| 1744 | */ |
| 1745 | public static final String UNUSED = "UNUSED"; |
| 1746 | |
| 1747 | /** |
| 1748 | * Static attribute for 1 keyword. |
| 1749 | */ |
| 1750 | public static final String ONE = "1"; |
| 1751 | |
| 1752 | /** |
Gaurav Agrawal | 3b57f36 | 2016-09-07 13:16:35 +0530 | [diff] [blame] | 1753 | * Static attribute for YANG node operation type class. |
Vidyashree Rama | 1396065 | 2016-04-26 15:06:06 +0530 | [diff] [blame] | 1754 | */ |
Gaurav Agrawal | 3b57f36 | 2016-09-07 13:16:35 +0530 | [diff] [blame] | 1755 | public static final String OPERATION_TYPE_CLASS = |
Bharat saraswal | 94844d6 | 2016-10-13 13:28:03 +0530 | [diff] [blame] | 1756 | "OnosYangOpType"; |
Gaurav Agrawal | 3b57f36 | 2016-09-07 13:16:35 +0530 | [diff] [blame] | 1757 | |
| 1758 | /** |
| 1759 | * Static attribute for YANG node operation type attribute. |
| 1760 | */ |
| 1761 | public static final String OPERATION_TYPE_ATTRIBUTE = |
Bharat saraswal | 9fab16b | 2016-09-23 23:27:24 +0530 | [diff] [blame] | 1762 | "OpType"; |
Gaurav Agrawal | 3b57f36 | 2016-09-07 13:16:35 +0530 | [diff] [blame] | 1763 | |
| 1764 | /** |
janani b | 3c396f0 | 2016-09-27 18:45:23 +0530 | [diff] [blame] | 1765 | * Static attribute for input keyword to be suffixed with rpc name. |
| 1766 | */ |
| 1767 | public static final String INPUT_KEYWORD = "_input"; |
| 1768 | |
| 1769 | /** |
| 1770 | * Static attribute for output keyword to be suffixed with rpc name. |
| 1771 | */ |
| 1772 | public static final String OUTPUT_KEYWORD = "_output"; |
| 1773 | |
| 1774 | /** |
Gaurav Agrawal | 3b57f36 | 2016-09-07 13:16:35 +0530 | [diff] [blame] | 1775 | * Static attribute for event class. |
| 1776 | */ |
| 1777 | public static final String EVENT_CLASS = "event class"; |
| 1778 | |
| 1779 | /** |
| 1780 | * Static attribute for typedef class. |
| 1781 | */ |
| 1782 | public static final String TYPEDEF_CLASS = "typedef class"; |
| 1783 | |
| 1784 | /** |
| 1785 | * Static attribute for impl class. |
| 1786 | */ |
| 1787 | public static final String IMPL_CLASS = "impl class"; |
| 1788 | |
| 1789 | /** |
| 1790 | * Static attribute for union class. |
| 1791 | */ |
| 1792 | public static final String UNION_CLASS = "union class"; |
| 1793 | |
| 1794 | /** |
| 1795 | * Static attribute for enum class. |
| 1796 | */ |
| 1797 | public static final String ENUM_CLASS = "enum class"; |
| 1798 | |
| 1799 | /** |
| 1800 | * Static attribute for rpc class. |
| 1801 | */ |
| 1802 | public static final String RPC_CLASS = "rpc class"; |
| 1803 | |
| 1804 | /** |
| 1805 | * Static attribute for builder class. |
| 1806 | */ |
| 1807 | public static final String BUILDER_CLASS = "builder class"; |
| 1808 | |
| 1809 | /** |
| 1810 | * Static attribute for builder interface. |
| 1811 | */ |
| 1812 | public static final String BUILDER_INTERFACE = "builder interface"; |
| 1813 | |
| 1814 | /** |
Gaurav Agrawal | 3b57f36 | 2016-09-07 13:16:35 +0530 | [diff] [blame] | 1815 | * Static attribute for bits. |
| 1816 | */ |
| 1817 | public static final String BITS = "bits"; |
| 1818 | |
| 1819 | /** |
| 1820 | * Static attribute for YANG. |
| 1821 | */ |
| 1822 | public static final String YANG = "yang"; |
| 1823 | |
Bharat saraswal | 9fab16b | 2016-09-23 23:27:24 +0530 | [diff] [blame] | 1824 | /** |
| 1825 | * Static attribute for error msg. |
| 1826 | */ |
| 1827 | public static final String ERROR_MSG_FOR_GEN_CODE = "please check whether " + |
| 1828 | "multiple yang" + " files has same module/submodule" + |
| 1829 | " \"name\" and \"namespace\"" + "or You may have generated code of" + |
| 1830 | " previous build present in your directory."; |
| 1831 | |
| 1832 | /** |
| 1833 | * Static attribute for error msg. |
| 1834 | */ |
| 1835 | public static final String ERROR_MSG_JAVA_IDENTITY = "Expected java " + |
| 1836 | "identity instance node "; |
Bharat saraswal | 94844d6 | 2016-10-13 13:28:03 +0530 | [diff] [blame] | 1837 | |
| 1838 | /** |
| 1839 | * Static attribute for error msg. |
| 1840 | */ |
| 1841 | public static final String ERROR_MSG_FOR_AUGMENT_LINKING = "Augment " + |
| 1842 | "linking does not support linking when path contains " + |
| 1843 | "notification/grouping for path: "; |
| 1844 | |
Bharat saraswal | 9fab16b | 2016-09-23 23:27:24 +0530 | [diff] [blame] | 1845 | /** |
Bharat saraswal | 0663aff | 2016-10-18 23:16:14 +0530 | [diff] [blame] | 1846 | * Static attribute for error msg. |
| 1847 | */ |
| 1848 | public static final String VERSION_ERROR = "Onos-yang-tools " + |
| 1849 | "does not support maven version below \"3.3.9\" , your current " + |
| 1850 | "version is "; |
| 1851 | |
| 1852 | /** |
Bharat saraswal | 9fab16b | 2016-09-23 23:27:24 +0530 | [diff] [blame] | 1853 | * Static attribute for in. |
| 1854 | */ |
| 1855 | public static final String IN = " in "; |
| 1856 | |
| 1857 | /** |
| 1858 | * Static attribute for at. |
| 1859 | */ |
| 1860 | public static final String AT = " at "; |
| 1861 | |
Bharat saraswal | 0663aff | 2016-10-18 23:16:14 +0530 | [diff] [blame] | 1862 | /** |
| 1863 | * Static param for processChildNodesSubTreeFiltering. |
| 1864 | */ |
| 1865 | public static final String PROCESS_CHILD_NODE_STF_PARAM = |
| 1866 | "processChildNodesSubTreeFiltering"; |
Bharat saraswal | c2fd322 | 2016-10-19 16:10:27 +0530 | [diff] [blame] | 1867 | |
| 1868 | /** |
| 1869 | * Static param for processLeafListSubTreeFiltering. |
| 1870 | */ |
| 1871 | public static final String PROCESS_LEAF_LIST_STF_PARAM = |
| 1872 | "processLeafListSubTreeFiltering"; |
| 1873 | /** |
| 1874 | * Static param for processLeafListSubTreeFiltering. |
| 1875 | */ |
| 1876 | public static final String PROCESS_LEAF_STF_PARAM = |
| 1877 | "processLeafSubtreeFiltering"; |
Bharat saraswal | 0663aff | 2016-10-18 23:16:14 +0530 | [diff] [blame] | 1878 | /** |
| 1879 | * Static param for subTreeFilteringResultBuilder. |
| 1880 | */ |
| 1881 | public static final String STF_BUILDER_PARAM = |
| 1882 | "subTreeFilteringResultBuilder"; |
| 1883 | |
| 1884 | /** |
| 1885 | * Static param for isAnySelectOrContainmentNode. |
| 1886 | */ |
| 1887 | public static final String SELECT_OR_CONTAINMENT_NODE_PARAM = |
| 1888 | "isAnySelectOrContainmentNode"; |
| 1889 | /** |
| 1890 | * Static param for isSelectAllSchemaChild. |
| 1891 | */ |
| 1892 | public static final String SELECT_ALL_CHILD_SCHEMA_PARAM = |
| 1893 | "isSelectAllSchemaChild"; |
| 1894 | |
Bharat saraswal | c2fd322 | 2016-10-19 16:10:27 +0530 | [diff] [blame] | 1895 | //File type extension for java classes. |
| 1896 | public static final String JAVA_FILE_EXTENSION = ".java"; |
Bharat saraswal | 0663aff | 2016-10-18 23:16:14 +0530 | [diff] [blame] | 1897 | |
Bharat saraswal | 51c5d67 | 2016-11-13 09:03:48 +0530 | [diff] [blame] | 1898 | /** |
| 1899 | * Static param for typedef. |
| 1900 | */ |
| 1901 | public static final String HOLDER_TYPE_DEF = "typedef"; |
| 1902 | |
| 1903 | /** |
| 1904 | * Static param for last. |
| 1905 | */ |
| 1906 | public static final String LAST = "last"; |
| 1907 | |
Gaurav Agrawal | 3b57f36 | 2016-09-07 13:16:35 +0530 | [diff] [blame] | 1908 | // No instantiation. |
Vidyashree Rama | 1396065 | 2016-04-26 15:06:06 +0530 | [diff] [blame] | 1909 | private UtilConstants() { |
| 1910 | } |
Gaurav Agrawal | 3b57f36 | 2016-09-07 13:16:35 +0530 | [diff] [blame] | 1911 | |
| 1912 | /** |
| 1913 | * Represents operation type. |
| 1914 | */ |
| 1915 | public enum Operation { |
| 1916 | /** |
| 1917 | * Represents add operation. |
| 1918 | */ |
| 1919 | ADD, |
| 1920 | |
| 1921 | /** |
| 1922 | * Represents remove operation. |
| 1923 | */ |
| 1924 | REMOVE |
| 1925 | } |
Bharat saraswal | dedf9f8 | 2016-02-12 20:48:30 +0530 | [diff] [blame] | 1926 | } |