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