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