1 16 19 package com.sun.org.apache.xpath.internal.res; 20 21 import java.util.ListResourceBundle ; 22 import java.util.Locale ; 23 import java.util.MissingResourceException ; 24 import java.util.ResourceBundle ; 25 26 36 public class XPATHErrorResources_zh_CN extends ListResourceBundle 37 { 38 39 85 86 87 public static final int MAX_CODE = 108; 89 90 public static final int MAX_WARNING = 11; 92 93 public static final int MAX_OTHERS = 20; 94 95 96 public static final int MAX_MESSAGES = MAX_CODE + MAX_WARNING + 1; 97 98 99 102 public static final String ERROR0000 = "ERROR0000"; 103 public static final String ER_CURRENT_NOT_ALLOWED_IN_MATCH = 104 "ER_CURRENT_NOT_ALLOWED_IN_MATCH"; 105 public static final String ER_CURRENT_TAKES_NO_ARGS = 106 "ER_CURRENT_TAKES_NO_ARGS"; 107 public static final String ER_DOCUMENT_REPLACED = "ER_DOCUMENT_REPLACED"; 108 public static final String ER_CONTEXT_HAS_NO_OWNERDOC = 109 "ER_CONTEXT_HAS_NO_OWNERDOC"; 110 public static final String ER_LOCALNAME_HAS_TOO_MANY_ARGS = 111 "ER_LOCALNAME_HAS_TOO_MANY_ARGS"; 112 public static final String ER_NAMESPACEURI_HAS_TOO_MANY_ARGS = 113 "ER_NAMESPACEURI_HAS_TOO_MANY_ARGS"; 114 public static final String ER_NORMALIZESPACE_HAS_TOO_MANY_ARGS = 115 "ER_NORMALIZESPACE_HAS_TOO_MANY_ARGS"; 116 public static final String ER_NUMBER_HAS_TOO_MANY_ARGS = 117 "ER_NUMBER_HAS_TOO_MANY_ARGS"; 118 public static final String ER_NAME_HAS_TOO_MANY_ARGS = 119 "ER_NAME_HAS_TOO_MANY_ARGS"; 120 public static final String ER_STRING_HAS_TOO_MANY_ARGS = 121 "ER_STRING_HAS_TOO_MANY_ARGS"; 122 public static final String ER_STRINGLENGTH_HAS_TOO_MANY_ARGS = 123 "ER_STRINGLENGTH_HAS_TOO_MANY_ARGS"; 124 public static final String ER_TRANSLATE_TAKES_3_ARGS = 125 "ER_TRANSLATE_TAKES_3_ARGS"; 126 public static final String ER_UNPARSEDENTITYURI_TAKES_1_ARG = 127 "ER_UNPARSEDENTITYURI_TAKES_1_ARG"; 128 public static final String ER_NAMESPACEAXIS_NOT_IMPLEMENTED = 129 "ER_NAMESPACEAXIS_NOT_IMPLEMENTED"; 130 public static final String ER_UNKNOWN_AXIS = "ER_UNKNOWN_AXIS"; 131 public static final String ER_UNKNOWN_MATCH_OPERATION = 132 "ER_UNKNOWN_MATCH_OPERATION"; 133 public static final String ER_INCORRECT_ARG_LENGTH ="ER_INCORRECT_ARG_LENGTH"; 134 public static final String ER_CANT_CONVERT_TO_NUMBER = 135 "ER_CANT_CONVERT_TO_NUMBER"; 136 public static final String ER_CANT_CONVERT_TO_NODELIST = 137 "ER_CANT_CONVERT_TO_NODELIST"; 138 public static final String ER_CANT_CONVERT_TO_MUTABLENODELIST = 139 "ER_CANT_CONVERT_TO_MUTABLENODELIST"; 140 public static final String ER_CANT_CONVERT_TO_TYPE ="ER_CANT_CONVERT_TO_TYPE"; 141 public static final String ER_EXPECTED_MATCH_PATTERN = 142 "ER_EXPECTED_MATCH_PATTERN"; 143 public static final String ER_COULDNOT_GET_VAR_NAMED = 144 "ER_COULDNOT_GET_VAR_NAMED"; 145 public static final String ER_UNKNOWN_OPCODE = "ER_UNKNOWN_OPCODE"; 146 public static final String ER_EXTRA_ILLEGAL_TOKENS ="ER_EXTRA_ILLEGAL_TOKENS"; 147 public static final String ER_EXPECTED_DOUBLE_QUOTE = 148 "ER_EXPECTED_DOUBLE_QUOTE"; 149 public static final String ER_EXPECTED_SINGLE_QUOTE = 150 "ER_EXPECTED_SINGLE_QUOTE"; 151 public static final String ER_EMPTY_EXPRESSION = "ER_EMPTY_EXPRESSION"; 152 public static final String ER_EXPECTED_BUT_FOUND = "ER_EXPECTED_BUT_FOUND"; 153 public static final String ER_INCORRECT_PROGRAMMER_ASSERTION = 154 "ER_INCORRECT_PROGRAMMER_ASSERTION"; 155 public static final String ER_BOOLEAN_ARG_NO_LONGER_OPTIONAL = 156 "ER_BOOLEAN_ARG_NO_LONGER_OPTIONAL"; 157 public static final String ER_FOUND_COMMA_BUT_NO_PRECEDING_ARG = 158 "ER_FOUND_COMMA_BUT_NO_PRECEDING_ARG"; 159 public static final String ER_FOUND_COMMA_BUT_NO_FOLLOWING_ARG = 160 "ER_FOUND_COMMA_BUT_NO_FOLLOWING_ARG"; 161 public static final String ER_PREDICATE_ILLEGAL_SYNTAX = 162 "ER_PREDICATE_ILLEGAL_SYNTAX"; 163 public static final String ER_ILLEGAL_AXIS_NAME = "ER_ILLEGAL_AXIS_NAME"; 164 public static final String ER_UNKNOWN_NODETYPE = "ER_UNKNOWN_NODETYPE"; 165 public static final String ER_PATTERN_LITERAL_NEEDS_BE_QUOTED = 166 "ER_PATTERN_LITERAL_NEEDS_BE_QUOTED"; 167 public static final String ER_COULDNOT_BE_FORMATTED_TO_NUMBER = 168 "ER_COULDNOT_BE_FORMATTED_TO_NUMBER"; 169 public static final String ER_COULDNOT_CREATE_XMLPROCESSORLIAISON = 170 "ER_COULDNOT_CREATE_XMLPROCESSORLIAISON"; 171 public static final String ER_DIDNOT_FIND_XPATH_SELECT_EXP = 172 "ER_DIDNOT_FIND_XPATH_SELECT_EXP"; 173 public static final String ER_COULDNOT_FIND_ENDOP_AFTER_OPLOCATIONPATH = 174 "ER_COULDNOT_FIND_ENDOP_AFTER_OPLOCATIONPATH"; 175 public static final String ER_ERROR_OCCURED = "ER_ERROR_OCCURED"; 176 public static final String ER_ILLEGAL_VARIABLE_REFERENCE = 177 "ER_ILLEGAL_VARIABLE_REFERENCE"; 178 public static final String ER_AXES_NOT_ALLOWED = "ER_AXES_NOT_ALLOWED"; 179 public static final String ER_KEY_HAS_TOO_MANY_ARGS = 180 "ER_KEY_HAS_TOO_MANY_ARGS"; 181 public static final String ER_COUNT_TAKES_1_ARG = "ER_COUNT_TAKES_1_ARG"; 182 public static final String ER_COULDNOT_FIND_FUNCTION = 183 "ER_COULDNOT_FIND_FUNCTION"; 184 public static final String ER_UNSUPPORTED_ENCODING ="ER_UNSUPPORTED_ENCODING"; 185 public static final String ER_PROBLEM_IN_DTM_NEXTSIBLING = 186 "ER_PROBLEM_IN_DTM_NEXTSIBLING"; 187 public static final String ER_CANNOT_WRITE_TO_EMPTYNODELISTIMPL = 188 "ER_CANNOT_WRITE_TO_EMPTYNODELISTIMPL"; 189 public static final String ER_SETDOMFACTORY_NOT_SUPPORTED = 190 "ER_SETDOMFACTORY_NOT_SUPPORTED"; 191 public static final String ER_PREFIX_MUST_RESOLVE = "ER_PREFIX_MUST_RESOLVE"; 192 public static final String ER_PARSE_NOT_SUPPORTED = "ER_PARSE_NOT_SUPPORTED"; 193 public static final String ER_SAX_API_NOT_HANDLED = "ER_SAX_API_NOT_HANDLED"; 200 public static final String ER_IGNORABLE_WHITESPACE_NOT_HANDLED = 201 "ER_IGNORABLE_WHITESPACE_NOT_HANDLED"; 202 public static final String ER_DTM_CANNOT_HANDLE_NODES = 203 "ER_DTM_CANNOT_HANDLE_NODES"; 204 public static final String ER_XERCES_CANNOT_HANDLE_NODES = 205 "ER_XERCES_CANNOT_HANDLE_NODES"; 206 public static final String ER_XERCES_PARSE_ERROR_DETAILS = 207 "ER_XERCES_PARSE_ERROR_DETAILS"; 208 public static final String ER_XERCES_PARSE_ERROR = "ER_XERCES_PARSE_ERROR"; 209 public static final String ER_INVALID_UTF16_SURROGATE = 214 "ER_INVALID_UTF16_SURROGATE"; 215 public static final String ER_OIERROR = "ER_OIERROR"; 216 public static final String ER_CANNOT_CREATE_URL = "ER_CANNOT_CREATE_URL"; 217 public static final String ER_XPATH_READOBJECT = "ER_XPATH_READOBJECT"; 218 public static final String ER_FUNCTION_TOKEN_NOT_FOUND = 219 "ER_FUNCTION_TOKEN_NOT_FOUND"; 220 public static final String ER_CANNOT_DEAL_XPATH_TYPE = 222 "ER_CANNOT_DEAL_XPATH_TYPE"; 223 public static final String ER_NODESET_NOT_MUTABLE = "ER_NODESET_NOT_MUTABLE"; 224 public static final String ER_NODESETDTM_NOT_MUTABLE = 225 "ER_NODESETDTM_NOT_MUTABLE"; 226 227 public static final String ER_VAR_NOT_RESOLVABLE = "ER_VAR_NOT_RESOLVABLE"; 228 229 public static final String ER_NULL_ERROR_HANDLER = "ER_NULL_ERROR_HANDLER"; 230 231 public static final String ER_PROG_ASSERT_UNKNOWN_OPCODE = 232 "ER_PROG_ASSERT_UNKNOWN_OPCODE"; 233 234 public static final String ER_ZERO_OR_ONE = "ER_ZERO_OR_ONE"; 235 236 public static final String ER_RTF_NOT_SUPPORTED_XRTREEFRAGSELECTWRAPPER = 237 "ER_RTF_NOT_SUPPORTED_XRTREEFRAGSELECTWRAPPER"; 238 239 public static final String ER_ASNODEITERATOR_NOT_SUPPORTED_XRTREEFRAGSELECTWRAPPER = "ER_ASNODEITERATOR_NOT_SUPPORTED_XRTREEFRAGSELECTWRAPPER"; 240 241 public static final String ER_FSB_NOT_SUPPORTED_XSTRINGFORCHARS = 242 "ER_FSB_NOT_SUPPORTED_XSTRINGFORCHARS"; 243 244 public static final String ER_COULD_NOT_FIND_VAR = "ER_COULD_NOT_FIND_VAR"; 245 246 public static final String ER_XSTRINGFORCHARS_CANNOT_TAKE_STRING = 247 "ER_XSTRINGFORCHARS_CANNOT_TAKE_STRING"; 248 249 public static final String ER_FASTSTRINGBUFFER_CANNOT_BE_NULL = 250 "ER_FASTSTRINGBUFFER_CANNOT_BE_NULL"; 251 252 public static final String ER_TWO_OR_THREE = "ER_TWO_OR_THREE"; 253 254 public static final String ER_VARIABLE_ACCESSED_BEFORE_BIND = 255 "ER_VARIABLE_ACCESSED_BEFORE_BIND"; 256 257 public static final String ER_FSB_CANNOT_TAKE_STRING = 258 "ER_FSB_CANNOT_TAKE_STRING"; 259 260 public static final String ER_SETTING_WALKER_ROOT_TO_NULL = 261 "ER_SETTING_WALKER_ROOT_TO_NULL"; 262 263 public static final String ER_NODESETDTM_CANNOT_ITERATE = 264 "ER_NODESETDTM_CANNOT_ITERATE"; 265 266 public static final String ER_NODESET_CANNOT_ITERATE = 267 "ER_NODESET_CANNOT_ITERATE"; 268 269 public static final String ER_NODESETDTM_CANNOT_INDEX = 270 "ER_NODESETDTM_CANNOT_INDEX"; 271 272 public static final String ER_NODESET_CANNOT_INDEX = 273 "ER_NODESET_CANNOT_INDEX"; 274 275 public static final String ER_CANNOT_CALL_SETSHOULDCACHENODE = 276 "ER_CANNOT_CALL_SETSHOULDCACHENODE"; 277 278 public static final String ER_ONLY_ALLOWS = "ER_ONLY_ALLOWS"; 279 280 public static final String ER_UNKNOWN_STEP = "ER_UNKNOWN_STEP"; 281 282 public static final String ER_EXPECTED_REL_LOC_PATH = 283 "ER_EXPECTED_REL_LOC_PATH"; 284 285 public static final String ER_EXPECTED_LOC_PATH = "ER_EXPECTED_LOC_PATH"; 286 287 public static final String ER_EXPECTED_LOC_STEP = "ER_EXPECTED_LOC_STEP"; 288 289 public static final String ER_EXPECTED_NODE_TEST = "ER_EXPECTED_NODE_TEST"; 290 291 public static final String ER_EXPECTED_STEP_PATTERN = 292 "ER_EXPECTED_STEP_PATTERN"; 293 294 public static final String ER_EXPECTED_REL_PATH_PATTERN = 295 "ER_EXPECTED_REL_PATH_PATTERN"; 296 297 300 302 public static final String ER_CANT_CONVERT_TO_BOOLEAN = 303 "ER_CANT_CONVERT_TO_BOOLEAN"; 304 305 public static final String ER_CANT_CONVERT_TO_SINGLENODE = 306 "ER_CANT_CONVERT_TO_SINGLENODE"; 307 308 public static final String ER_CANT_GET_SNAPSHOT_LENGTH = 309 "ER_CANT_GET_SNAPSHOT_LENGTH"; 310 311 public static final String ER_NON_ITERATOR_TYPE = "ER_NON_ITERATOR_TYPE"; 312 313 public static final String ER_DOC_MUTATED = "ER_DOC_MUTATED"; 314 public static final String ER_INVALID_XPATH_TYPE = "ER_INVALID_XPATH_TYPE"; 315 public static final String ER_EMPTY_XPATH_RESULT = "ER_EMPTY_XPATH_RESULT"; 316 public static final String ER_INCOMPATIBLE_TYPES = "ER_INCOMPATIBLE_TYPES"; 317 public static final String ER_NULL_RESOLVER = "ER_NULL_RESOLVER"; 318 public static final String ER_CANT_CONVERT_TO_STRING = 319 "ER_CANT_CONVERT_TO_STRING"; 320 public static final String ER_NON_SNAPSHOT_TYPE = "ER_NON_SNAPSHOT_TYPE"; 321 public static final String ER_WRONG_DOCUMENT = "ER_WRONG_DOCUMENT"; 322 325 326 public static final String ER_WRONG_NODETYPE = "ER_WRONG_NODETYPE"; 327 public static final String ER_XPATH_ERROR = "ER_XPATH_ERROR"; 328 329 public static final String WG_LOCALE_NAME_NOT_HANDLED = 330 "WG_LOCALE_NAME_NOT_HANDLED"; 331 public static final String WG_PROPERTY_NOT_SUPPORTED = 332 "WG_PROPERTY_NOT_SUPPORTED"; 333 public static final String WG_DONT_DO_ANYTHING_WITH_NS = 334 "WG_DONT_DO_ANYTHING_WITH_NS"; 335 public static final String WG_SECURITY_EXCEPTION = "WG_SECURITY_EXCEPTION"; 336 public static final String WG_QUO_NO_LONGER_DEFINED = 337 "WG_QUO_NO_LONGER_DEFINED"; 338 public static final String WG_NEED_DERIVED_OBJECT_TO_IMPLEMENT_NODETEST = 339 "WG_NEED_DERIVED_OBJECT_TO_IMPLEMENT_NODETEST"; 340 public static final String WG_FUNCTION_TOKEN_NOT_FOUND = 341 "WG_FUNCTION_TOKEN_NOT_FOUND"; 342 public static final String WG_COULDNOT_FIND_FUNCTION = 343 "WG_COULDNOT_FIND_FUNCTION"; 344 public static final String WG_CANNOT_MAKE_URL_FROM ="WG_CANNOT_MAKE_URL_FROM"; 345 public static final String WG_EXPAND_ENTITIES_NOT_SUPPORTED = 346 "WG_EXPAND_ENTITIES_NOT_SUPPORTED"; 347 public static final String WG_ILLEGAL_VARIABLE_REFERENCE = 348 "WG_ILLEGAL_VARIABLE_REFERENCE"; 349 public static final String WG_UNSUPPORTED_ENCODING ="WG_UNSUPPORTED_ENCODING"; 350 351 352 354 public static final Object [][] contents = { 355 356 357 358 360 { "ERROR0000" , "{0}" }, 361 362 363 364 366 { ER_CURRENT_NOT_ALLOWED_IN_MATCH, "\u5339\u914d\u6a21\u5f0f\u4e2d\u4e0d\u5141\u8bb8\u51fa\u73b0 current() \u51fd\u6570\uff01" }, 367 368 369 371 { ER_CURRENT_TAKES_NO_ARGS, "current() \u51fd\u6570\u4e0d\u63a5\u53d7\u81ea\u53d8\u91cf\uff01" }, 372 373 374 { ER_DOCUMENT_REPLACED, 376 "document() \u51fd\u6570\u5b9e\u73b0\u5df2\u88ab com.sun.org.apache.xalan.internal.xslt.FuncDocument \u66ff\u6362\uff01"}, 377 378 379 380 382 { ER_CONTEXT_HAS_NO_OWNERDOC, 383 "\u4e0a\u4e0b\u6587\u6ca1\u6709\u6240\u6709\u8005\u6587\u6863\uff01"}, 384 385 386 388 { ER_LOCALNAME_HAS_TOO_MANY_ARGS, 389 "local-name() \u7684\u81ea\u53d8\u91cf\u592a\u591a\u3002"}, 390 391 392 394 { ER_NAMESPACEURI_HAS_TOO_MANY_ARGS, 395 "namespace-uri() \u7684\u81ea\u53d8\u91cf\u592a\u591a\u3002"}, 396 397 398 { ER_NORMALIZESPACE_HAS_TOO_MANY_ARGS, 400 "normalize-space() \u7684\u81ea\u53d8\u91cf\u592a\u591a\u3002"}, 401 402 403 405 { ER_NUMBER_HAS_TOO_MANY_ARGS, 406 "number() \u7684\u81ea\u53d8\u91cf\u592a\u591a\u3002"}, 407 408 409 411 { ER_NAME_HAS_TOO_MANY_ARGS, 412 "name() \u7684\u81ea\u53d8\u91cf\u592a\u591a\u3002"}, 413 414 415 417 { ER_STRING_HAS_TOO_MANY_ARGS, 418 "string() \u7684\u81ea\u53d8\u91cf\u592a\u591a\u3002"}, 419 420 421 423 { ER_STRINGLENGTH_HAS_TOO_MANY_ARGS, 424 "string-length() \u7684\u81ea\u53d8\u91cf\u592a\u591a\u3002"}, 425 426 427 429 { ER_TRANSLATE_TAKES_3_ARGS, 430 "translate() \u51fd\u6570\u6709\u4e09\u4e2a\u81ea\u53d8\u91cf\uff01"}, 431 432 433 435 { ER_UNPARSEDENTITYURI_TAKES_1_ARG, 436 "unparsed-entity-uri \u51fd\u6570\u5e94\u6709\u4e00\u4e2a\u81ea\u53d8\u91cf\uff01"}, 437 438 439 441 { ER_NAMESPACEAXIS_NOT_IMPLEMENTED, 442 "\u540d\u79f0\u7a7a\u95f4\u8f74\u5c1a\u672a\u5b9e\u73b0\uff01"}, 443 444 445 447 { ER_UNKNOWN_AXIS, 448 "\u672a\u77e5\u8f74\uff1a{0}"}, 449 450 451 453 { ER_UNKNOWN_MATCH_OPERATION, 454 "\u672a\u77e5\u7684\u5339\u914d\u64cd\u4f5c\uff01"}, 455 456 457 459 { ER_INCORRECT_ARG_LENGTH, 460 "processing-instruction() \u8282\u70b9\u6d4b\u8bd5\u7684\u81ea\u53d8\u91cf\u957f\u5ea6\u4e0d\u6b63\u786e\uff01"}, 461 462 463 465 { ER_CANT_CONVERT_TO_NUMBER, 466 "\u65e0\u6cd5\u5c06 {0} \u8f6c\u6362\u6210\u6570\u5b57"}, 467 468 469 471 { ER_CANT_CONVERT_TO_NODELIST, 472 "\u65e0\u6cd5\u5c06 {0} \u8f6c\u6362\u6210 NodeList\uff01"}, 473 474 475 477 { ER_CANT_CONVERT_TO_MUTABLENODELIST, 478 "\u65e0\u6cd5\u5c06 {0} \u8f6c\u6362\u6210 NodeSetDTM\uff01"}, 479 480 481 483 { ER_CANT_CONVERT_TO_TYPE, 484 "\u65e0\u6cd5\u5c06 {0} \u8f6c\u6362\u6210 type#{1}"}, 485 486 487 489 { ER_EXPECTED_MATCH_PATTERN, 490 "getMatchScore \u4e2d\u671f\u671b\u7684\u5339\u914d\u6a21\u5f0f\uff01"}, 491 492 493 495 { ER_COULDNOT_GET_VAR_NAMED, 496 "\u65e0\u6cd5\u83b7\u53d6\u540d\u4e3a {0} \u7684\u53d8\u91cf"}, 497 498 499 501 { ER_UNKNOWN_OPCODE, 502 "\u9519\u8bef\uff01\u672a\u77e5\u64cd\u4f5c\u7801\uff1a{0}"}, 503 504 505 507 { ER_EXTRA_ILLEGAL_TOKENS, 508 "\u989d\u5916\u7684\u975e\u6cd5\u6807\u8bb0\uff1a{0}"}, 509 510 511 513 { ER_EXPECTED_DOUBLE_QUOTE, 514 "\u9519\u8bef\u5f15\u7528\u7684\u6587\u5b57... \u671f\u671b\u4e3a\u53cc\u5f15\u53f7\uff01"}, 515 516 517 519 { ER_EXPECTED_SINGLE_QUOTE, 520 "\u9519\u8bef\u5f15\u7528\u7684\u6587\u5b57... \u671f\u671b\u4e3a\u5355\u5f15\u53f7\uff01"}, 521 522 523 525 { ER_EMPTY_EXPRESSION, 526 "\u7a7a\u8868\u8fbe\u5f0f\uff01"}, 527 528 529 531 { ER_EXPECTED_BUT_FOUND, 532 "\u671f\u671b {0}\uff0c\u4f46\u627e\u5230\u4e86\uff1a{1}"}, 533 534 535 537 { ER_INCORRECT_PROGRAMMER_ASSERTION, 538 "\u7a0b\u5e8f\u5458\u7684\u65ad\u5b9a\u4e0d\u6b63\u786e\uff01\u2015 {0}"}, 539 540 541 543 { ER_BOOLEAN_ARG_NO_LONGER_OPTIONAL, 544 "19990709 XPath \u8349\u7a3f\u4e2d\uff0c\u5e03\u5c14\uff08...\uff09\u81ea\u53d8\u91cf\u4e0d\u518d\u662f\u53ef\u9009\u7684\u4e86\u3002"}, 545 546 547 549 { ER_FOUND_COMMA_BUT_NO_PRECEDING_ARG, 550 "\u5df2\u627e\u5230\u201c\uff0c\u201d\u4f46\u524d\u9762\u6ca1\u6709\u81ea\u53d8\u91cf\uff01"}, 551 552 553 555 { ER_FOUND_COMMA_BUT_NO_FOLLOWING_ARG, 556 "\u5df2\u627e\u5230\u201c\uff0c\u201d\u4f46\u540e\u9762\u6ca1\u6709\u81ea\u53d8\u91cf\uff01"}, 557 558 559 561 { ER_PREDICATE_ILLEGAL_SYNTAX, 562 "\u201c..[predicate]\u201d\u6216\u201c.[predicate]\u201d\u662f\u975e\u6cd5\u7684\u8bed\u6cd5\u3002\u8bf7\u6539\u4e3a\u4f7f\u7528\u201cself::node()[predicate]\u201d\u3002"}, 563 564 565 567 { ER_ILLEGAL_AXIS_NAME, 568 "\u975e\u6cd5\u7684\u8f74\u540d\u79f0\uff1a{0}"}, 569 570 571 573 { ER_UNKNOWN_NODETYPE, 574 "\u672a\u77e5\u8282\u70b9\u7c7b\u578b\uff1a{0}"}, 575 576 577 579 { ER_PATTERN_LITERAL_NEEDS_BE_QUOTED, 580 "\u9700\u8981\u5f15\u7528\u6a21\u5f0f\u6587\u5b57\uff08{0}\uff09\uff01"}, 581 582 583 585 { ER_COULDNOT_BE_FORMATTED_TO_NUMBER, 586 "{0} \u65e0\u6cd5\u683c\u5f0f\u5316\u4e3a\u6570\u5b57\uff01"}, 587 588 589 591 { ER_COULDNOT_CREATE_XMLPROCESSORLIAISON, 592 "\u65e0\u6cd5\u521b\u5efa XML TransformerFactory \u8054\u7cfb\uff1a{0}"}, 593 594 595 597 { ER_DIDNOT_FIND_XPATH_SELECT_EXP, 598 "\u9519\u8bef\uff01\u627e\u4e0d\u5230 xpath \u9009\u62e9\u8868\u8fbe\u5f0f\uff08-select\uff09\u3002"}, 599 600 601 603 { ER_COULDNOT_FIND_ENDOP_AFTER_OPLOCATIONPATH, 604 "\u9519\u8bef\uff01\u5728 OP_LOCATIONPATH \u4e4b\u540e\u627e\u4e0d\u5230 ENDOP"}, 605 606 607 609 { ER_ERROR_OCCURED, 610 "\u51fa\u73b0\u9519\u8bef\uff01"}, 611 612 613 615 { ER_ILLEGAL_VARIABLE_REFERENCE, 616 "\u5c06 VariableReference \u8d4b\u7ed9\u4e0a\u4e0b\u6587\u5916\u7684\u53d8\u91cf\u6216\u6ca1\u6709\u5b9a\u4e49\u7684\u53d8\u91cf\uff01\u540d\u79f0 = {0}"}, 617 618 619 621 { ER_AXES_NOT_ALLOWED, 622 "\u5728\u5339\u914d\u6a21\u5f0f\u4e2d\u53ea\u5141\u8bb8 child:: \u548c attribute:: \u8f74\uff01\u8fdd\u53cd\u7684\u8f74 = {0}"}, 623 624 625 627 { ER_KEY_HAS_TOO_MANY_ARGS, 628 "key() \u7684\u81ea\u53d8\u91cf\u4e2a\u6570\u4e0d\u6b63\u786e\u3002"}, 629 630 631 633 { ER_COUNT_TAKES_1_ARG, 634 "count \u51fd\u6570\u5e94\u8be5\u6709\u4e00\u4e2a\u81ea\u53d8\u91cf\uff01"}, 635 636 637 639 { ER_COULDNOT_FIND_FUNCTION, 640 "\u627e\u4e0d\u5230\u51fd\u6570\uff1a{0}"}, 641 642 643 645 { ER_UNSUPPORTED_ENCODING, 646 "\u4e0d\u53d7\u652f\u6301\u7684\u7f16\u7801\uff1a{0}"}, 647 648 649 651 { ER_PROBLEM_IN_DTM_NEXTSIBLING, 652 "getNextSibling \u8fc7\u7a0b\u4e2d\uff0cDTM \u4e2d\u51fa\u73b0\u95ee\u9898...\u6b63\u5728\u5c1d\u8bd5\u6062\u590d"}, 653 654 655 657 { ER_CANNOT_WRITE_TO_EMPTYNODELISTIMPL, 658 "\u7a0b\u5e8f\u5458\u9519\u8bef\uff1aEmptyNodeList \u4e0d\u53ef\u5199\u3002"}, 659 660 661 663 { ER_SETDOMFACTORY_NOT_SUPPORTED, 664 "XPathContext \u4e0d\u652f\u6301 setDOMFactory\uff01"}, 665 666 667 669 { ER_PREFIX_MUST_RESOLVE, 670 "\u524d\u7f00\u5fc5\u987b\u89e3\u6790\u4e3a\u540d\u79f0\u7a7a\u95f4\uff1a{0}"}, 671 672 673 675 { ER_PARSE_NOT_SUPPORTED, 676 "XPathContext \u4e2d\u4e0d\u652f\u6301 parse (InputSource source)\uff01\u65e0\u6cd5\u6253\u5f00 {0}"}, 677 678 679 681 684 685 687 690 691 693 696 697 699 { ER_SAX_API_NOT_HANDLED, 700 "DTM \u4e0d\u5904\u7406 SAX API characters(char ch[]...\uff01"}, 701 702 703 705 { ER_IGNORABLE_WHITESPACE_NOT_HANDLED, 706 "DTM \u4e0d\u5904\u7406 ignorableWhitespace(char ch[]...\uff01"}, 707 708 709 711 { ER_DTM_CANNOT_HANDLE_NODES, 712 "DTMLiaison \u4e0d\u80fd\u5904\u7406\u7c7b\u578b {0} \u7684\u8282\u70b9"}, 713 714 715 717 { ER_XERCES_CANNOT_HANDLE_NODES, 718 "DOM2Helper \u4e0d\u80fd\u5904\u7406\u7c7b\u578b {0} \u7684\u8282\u70b9"}, 719 720 721 723 { ER_XERCES_PARSE_ERROR_DETAILS, 724 "DOM2Helper.parse \u9519\u8bef\uff1aSystemID \uff0d \u7b2c {0} \u884c \uff0d {1}"}, 725 726 727 729 { ER_XERCES_PARSE_ERROR, 730 "DOM2Helper.parse \u9519\u8bef"}, 731 732 733 735 738 739 741 744 745 747 { ER_INVALID_UTF16_SURROGATE, 748 "\u68c0\u6d4b\u5230\u65e0\u6548\u7684 UTF-16 \u66ff\u4ee3\u8005\uff1a{0}\uff1f"}, 749 750 751 753 { ER_OIERROR, 754 "IO \u9519\u8bef"}, 755 756 757 759 { ER_CANNOT_CREATE_URL, 760 "\u65e0\u6cd5\u4e3a {0} \u521b\u5efa URL"}, 761 762 763 765 { ER_XPATH_READOBJECT, 766 "\u5728 XPath.readObject \u4e2d\uff1a{0}"}, 767 768 769 771 { ER_FUNCTION_TOKEN_NOT_FOUND, 772 "\u627e\u4e0d\u5230\u51fd\u6570\u4ee4\u724c\u3002"}, 773 774 775 777 780 781 783 { ER_CANNOT_DEAL_XPATH_TYPE, 784 "\u65e0\u6cd5\u5904\u7406 XPath \u7c7b\u578b\uff1a{0}"}, 785 786 787 789 { ER_NODESET_NOT_MUTABLE, 790 "\u6b64 NodeSet \u662f\u4e0d\u6613\u53d8\u7684"}, 791 792 793 795 { ER_NODESETDTM_NOT_MUTABLE, 796 "\u6b64 NodeSetDTM \u662f\u4e0d\u6613\u53d8\u7684"}, 797 798 799 801 { ER_VAR_NOT_RESOLVABLE, 802 "\u53d8\u91cf\u4e0d\u53ef\u89e3\u6790\uff1a{0}"}, 803 804 805 807 { ER_NULL_ERROR_HANDLER, 808 "\u9519\u8bef\u5904\u7406\u7a0b\u5e8f\u4e3a\u7a7a"}, 809 810 811 813 { ER_PROG_ASSERT_UNKNOWN_OPCODE, 814 "\u7a0b\u5e8f\u5458\u65ad\u8a00\uff1a\u672a\u77e5\u64cd\u4f5c\u7801\uff1a{0}"}, 815 816 817 819 { ER_ZERO_OR_ONE, 820 "0 \u6216 1"}, 821 822 823 824 826 { ER_RTF_NOT_SUPPORTED_XRTREEFRAGSELECTWRAPPER, 827 "XRTreeFragSelectWrapper \u4e0d\u652f\u6301 rtf()"}, 828 829 830 832 { ER_RTF_NOT_SUPPORTED_XRTREEFRAGSELECTWRAPPER, 833 "XRTreeFragSelectWrapper \u4e0d\u652f\u6301 asNodeIterator()"}, 834 835 836 838 { ER_FSB_NOT_SUPPORTED_XSTRINGFORCHARS, 839 "XStringForChars \u4e0d\u652f\u6301 fsb()"}, 840 841 842 844 { ER_COULD_NOT_FIND_VAR, 845 "\u627e\u4e0d\u5230\u540d\u4e3a {0} \u7684\u53d8\u91cf"}, 846 847 848 850 { ER_XSTRINGFORCHARS_CANNOT_TAKE_STRING, 851 "XStringForChars \u65e0\u6cd5\u5c06\u5b57\u7b26\u4e32\u4f5c\u4e3a\u81ea\u53d8\u91cf"}, 852 853 854 856 { ER_FASTSTRINGBUFFER_CANNOT_BE_NULL, 857 "FastStringBuffer \u81ea\u53d8\u91cf\u4e0d\u80fd\u4e3a\u7a7a"}, 858 859 860 861 863 { ER_TWO_OR_THREE, 864 "2 \u6216 3"}, 865 866 867 869 { ER_VARIABLE_ACCESSED_BEFORE_BIND, 870 "\u5728\u7ed1\u5b9a\u524d\u5df2\u8bbf\u95ee\u53d8\u91cf\uff01"}, 871 872 873 875 { ER_FSB_CANNOT_TAKE_STRING, 876 "XStringForFSB \u65e0\u6cd5\u5c06\u5b57\u7b26\u4e32\u4f5c\u4e3a\u81ea\u53d8\u91cf\uff01"}, 877 878 879 881 { ER_SETTING_WALKER_ROOT_TO_NULL, 882 "\n \uff01\uff01\uff01\uff01\u9519\u8bef\uff01\u6b63\u5728\u5c06\u6b65\u884c\u7a0b\u5e8f\u7684\u6839\u8bbe\u7f6e\u4e3a\u7a7a\uff01\uff01\uff01"}, 883 884 885 887 { ER_NODESETDTM_CANNOT_ITERATE, 888 "\u6b64 NodeSetDTM \u65e0\u6cd5\u8fed\u4ee3\u5230\u5148\u524d\u7684\u8282\u70b9\uff01"}, 889 890 891 893 { ER_NODESET_CANNOT_ITERATE, 894 "\u6b64 NodeSet \u65e0\u6cd5\u8fed\u4ee3\u5230\u5148\u524d\u7684\u8282\u70b9\uff01"}, 895 896 897 899 { ER_NODESETDTM_CANNOT_INDEX, 900 "\u6b64 NodeSetDTM \u65e0\u6cd5\u6267\u884c\u7d22\u5f15\u6216\u8ba1\u6570\u529f\u80fd\uff01"}, 901 902 903 905 { ER_NODESET_CANNOT_INDEX, 906 "\u6b64 NodeSet \u65e0\u6cd5\u6267\u884c\u7d22\u5f15\u6216\u8ba1\u6570\u529f\u80fd\uff01"}, 907 908 909 911 { ER_CANNOT_CALL_SETSHOULDCACHENODE, 912 "\u5df2\u7ecf\u8c03\u7528 nextNode \u540e\u65e0\u6cd5\u8c03\u7528 setShouldCacheNodes\uff01"}, 913 914 915 917 { ER_ONLY_ALLOWS, 918 "{0} \u4ec5\u5141\u8bb8 {1} \u4e2a\u81ea\u53d8\u91cf"}, 919 920 921 923 { ER_UNKNOWN_STEP, 924 "\u7a0b\u5e8f\u5458\u5728 getNextStepPos \u4e2d\u7684\u65ad\u8a00\uff1a\u672a\u77e5\u7684 stepType\uff1a{0}"}, 925 926 930 931 933 { ER_EXPECTED_REL_LOC_PATH, 934 "\u5728\u201c/\u201d\u6216\u201c//\u201d\u6807\u8bb0\u540e\u671f\u671b\u51fa\u73b0\u76f8\u5bf9\u4f4d\u7f6e\u8def\u5f84\u3002"}, 935 936 940 941 943 { ER_EXPECTED_LOC_PATH, 944 "\u671f\u671b\u51fa\u73b0\u4f4d\u7f6e\u8def\u5f84\uff0c\u4f46\u9047\u5230\u4ee5\u4e0b\u6807\u8bb0\u003a{0}"}, 945 946 950 951 953 { ER_EXPECTED_LOC_STEP, 954 "\u201c/\u201d\u6216\u201c//\u201d\u6807\u8bb0\u540e\u671f\u671b\u51fa\u73b0\u4f4d\u7f6e\u6b65\u9aa4\u3002"}, 955 956 961 962 964 { ER_EXPECTED_NODE_TEST, 965 "\u671f\u671b\u51fa\u73b0\u4e0e NCName:* \u6216 QName \u5339\u914d\u7684\u8282\u70b9\u6d4b\u8bd5\u3002"}, 966 967 971 972 974 { ER_EXPECTED_STEP_PATTERN, 975 "\u671f\u671b\u51fa\u73b0\u6b65\u9aa4\u6a21\u5f0f\uff0c\u4f46\u9047\u5230\u4e86\u201c/\u201d\u3002"}, 976 977 981 982 984 { ER_EXPECTED_REL_PATH_PATTERN, 985 "\u671f\u671b\u51fa\u73b0\u76f8\u5bf9\u8def\u5f84\u6a21\u5f0f\u3002"}, 986 987 991 992 994 997 1001 1002 1004 1007 1011 1012 1014 { ER_CANT_CONVERT_TO_BOOLEAN, 1015 "\u65e0\u6cd5\u5c06 {0} \u8f6c\u6362\u6210\u5e03\u5c14\u578b\u3002"}, 1016 1017 1020 1021 1023 { ER_CANT_CONVERT_TO_SINGLENODE, 1024 "\u65e0\u6cd5\u5c06 {0} \u8f6c\u6362\u6210\u5355\u8282\u70b9\u3002\u6b64\u83b7\u53d6\u65b9\u6cd5\u5e94\u7528\u4e8e\u7c7b\u578b ANY_UNORDERED_NODE_TYPE \u548c FIRST_ORDERED_NODE_TYPE\u3002"}, 1025 1026 1029 1030 1032 { ER_CANT_GET_SNAPSHOT_LENGTH, 1033 "\u65e0\u6cd5\u5728\u7c7b\u578b {0} \u4e0a\u83b7\u53d6\u5feb\u7167\u957f\u5ea6\u3002\u6b64\u83b7\u53d6\u65b9\u6cd5\u5e94\u7528\u4e8e\u7c7b\u578b UNORDERED_NODE_SNAPSHOT_TYPE \u548c ORDERED_NODE_SNAPSHOT_TYPE\u3002"}, 1034 1035 1036 1038 { ER_NON_ITERATOR_TYPE, 1039 "\u65e0\u6cd5\u5bf9\u975e\u8fed\u4ee3\u7c7b\u578b {0} \u8fdb\u884c\u8fed\u4ee3"}, 1040 1041 1045 1046 1048 { ER_DOC_MUTATED, 1049 "\u8fd4\u56de\u7ed3\u679c\u540e\u6587\u6863\u53d1\u751f\u53d8\u5316\u3002\u8fed\u4ee3\u5668\u65e0\u6548\u3002"}, 1050 1051 1052 1054 { ER_INVALID_XPATH_TYPE, 1055 "\u65e0\u6548\u7684 XPath \u7c7b\u578b\u81ea\u53d8\u91cf\uff1a{0}"}, 1056 1057 1058 1060 { ER_EMPTY_XPATH_RESULT, 1061 "\u7a7a\u7684 XPath \u7ed3\u679c\u5bf9\u8c61"}, 1062 1063 1064 1066 { ER_INCOMPATIBLE_TYPES, 1067 "\u8fd4\u56de\u7c7b\u578b {0} \u65e0\u6cd5\u5f3a\u5236\u8f6c\u6362\u4e3a\u6307\u5b9a\u7684\u7c7b\u578b\uff1a{1}"}, 1068 1069 1070 1072 { ER_NULL_RESOLVER, 1073 "\u65e0\u6cd5\u4f7f\u7528\u7a7a\u524d\u7f00\u89e3\u6790\u5668\u89e3\u6790\u524d\u7f00\u3002"}, 1074 1075 1079 1080 1082 { ER_CANT_CONVERT_TO_STRING, 1083 "\u65e0\u6cd5\u5c06 {0} \u8f6c\u6362\u6210\u5b57\u7b26\u4e32\u3002"}, 1084 1085 1088 1089 1091 { ER_NON_SNAPSHOT_TYPE, 1092 "\u65e0\u6cd5\u5728\u7c7b\u578b {0} \u4e0a\u8c03\u7528 snapshotItem\u3002\u6b64\u65b9\u6cd5\u5e94\u7528\u4e8e\u7c7b\u578b UNORDERED_NODE_SNAPSHOT_TYPE \u548c ORDERED_NODE_SNAPSHOT_TYPE\u3002"}, 1093 1094 1099 1100 1102 { ER_WRONG_DOCUMENT, 1103 "\u4e0a\u4e0b\u6587\u8282\u70b9\u4e0d\u5c5e\u4e8e\u7ed1\u5b9a\u5230\u6b64 XPathEvaluator \u7684\u6587\u6863\u3002"}, 1104 1105 1108 1110 { ER_WRONG_NODETYPE, 1111 "\u4e0d\u652f\u6301\u4e0a\u4e0b\u6587\u8282\u70b9\u7c7b\u578b\u3002"}, 1112 1113 1114 1116 { ER_XPATH_ERROR, 1117 "XPath \u672a\u77e5\u9519\u8bef"}, 1118 1119 1120 1122 1123 1125 { WG_LOCALE_NAME_NOT_HANDLED, 1126 "format-number \u51fd\u6570\u4e2d\u672a\u5904\u7406\u8fc7\u7684\u8bed\u8a00\u73af\u5883\u540d\uff01"}, 1127 1128 1129 1131 { WG_PROPERTY_NOT_SUPPORTED, 1132 "\u4e0d\u652f\u6301 XSL \u5c5e\u6027\uff1a{0}"}, 1133 1134 1135 1137 { WG_DONT_DO_ANYTHING_WITH_NS, 1138 "\u5f53\u524d\u4e0d\u8981\u5728\u5c5e\u6027 {1} \u4e2d\u5bf9\u540d\u79f0\u7a7a\u95f4 {0} \u8fdb\u884c\u4efb\u4f55\u5904\u7406"}, 1139 1140 1141 1143 { WG_SECURITY_EXCEPTION, 1144 "\u5728\u8bd5\u56fe\u8bbf\u95ee XSL \u7cfb\u7edf\u5c5e\u6027 {0} \u65f6\u53d1\u751f SecurityException \u5f02\u5e38"}, 1145 1146 1147 1149 { WG_QUO_NO_LONGER_DEFINED, 1150 "XPath \u4e2d\u4e0d\u518d\u5b9a\u4e49\u65e7\u8bed\u6cd5\uff1aquo(...)\u3002"}, 1151 1152 1153 1155 { WG_NEED_DERIVED_OBJECT_TO_IMPLEMENT_NODETEST, 1156 "XPath \u9700\u8981\u4e00\u4e2a\u6d3e\u751f\u7684\u5bf9\u8c61\u4ee5\u5b9e\u73b0 nodeTest\uff01"}, 1157 1158 1159 1161 { WG_FUNCTION_TOKEN_NOT_FOUND, 1162 "\u627e\u4e0d\u5230\u51fd\u6570\u4ee4\u724c\u3002"}, 1163 1164 1165 1167 { WG_COULDNOT_FIND_FUNCTION, 1168 "\u627e\u4e0d\u5230\u51fd\u6570\uff1a{0}"}, 1169 1170 1171 1173 { WG_CANNOT_MAKE_URL_FROM, 1174 "\u65e0\u6cd5\u4ece {0} \u751f\u6210 URL"}, 1175 1176 1177 1179 { WG_EXPAND_ENTITIES_NOT_SUPPORTED, 1180 "DTM \u89e3\u6790\u5668\u4e0d\u652f\u6301 -E \u9009\u9879"}, 1181 1182 1183 1185 { WG_ILLEGAL_VARIABLE_REFERENCE, 1186 "\u5c06 VariableReference \u8d4b\u7ed9\u4e0a\u4e0b\u6587\u5916\u7684\u53d8\u91cf\u6216\u6ca1\u6709\u5b9a\u4e49\u7684\u53d8\u91cf\uff01\u540d\u79f0 = {0}"}, 1187 1188 1189 1191 { WG_UNSUPPORTED_ENCODING, 1192 "\u4e0d\u53d7\u652f\u6301\u7684\u7f16\u7801\uff1a{0}"}, 1193 1194 1195 1196 { "ui_language", "zh"}, 1198 { "help_language", "zh"}, 1199 { "language", "zh"}, 1200 { "BAD_CODE", "createMessage \u7684\u53c2\u6570\u8d85\u51fa\u8303\u56f4"}, 1201 { "FORMAT_FAILED", "\u5728 messageFormat \u8c03\u7528\u8fc7\u7a0b\u4e2d\u629b\u51fa\u7684\u5f02\u5e38"}, 1202 { "version", ">>>>>>> Xalan \u7248\u672c"}, 1203 { "version2", "<<<<<<<"}, 1204 { "yes", "\u662f"}, 1205 { "line", "\u884c\u53f7"}, 1206 { "column", "\u5217\u53f7"}, 1207 { "xsldone", "XSLProcessor\uff1a\u5b8c\u6210"}, 1208 { "xpath_option", "xpath \u9009\u9879\uff1a"}, 1209 { "optionIN", "[-in inputXMLURL]"}, 1210 { "optionSelect", "[-select xpath \u8868\u8fbe\u5f0f]"}, 1211 { "optionMatch", "[-match \u5339\u914d\u6a21\u5f0f\uff08\u7528\u4e8e\u5339\u914d\u8bca\u65ad\uff09]"}, 1212 { "optionAnyExpr", "\u6216\u8005\u4ec5\u4e00\u4e2a xpath \u8868\u8fbe\u5f0f\u5c31\u5c06\u5b8c\u6210\u4e00\u4e2a\u8bca\u65ad\u8f6c\u50a8"}, 1213 { "noParsermsg1", "XSL \u5904\u7406\u4e0d\u6210\u529f\u3002"}, 1214 { "noParsermsg2", "** \u627e\u4e0d\u5230\u89e3\u6790\u5668 **"}, 1215 { "noParsermsg3", "\u8bf7\u68c0\u67e5\u60a8\u7684\u7c7b\u8def\u5f84\u3002"}, 1216 { "noParsermsg4", "\u5982\u679c\u6ca1\u6709 IBM \u7684 XML Parser for Java\uff0c\u60a8\u53ef\u4ee5\u4ece\u4ee5\u4e0b\u4f4d\u7f6e\u4e0b\u8f7d\u5b83\uff1a"}, 1217 { "noParsermsg5", "IBM \u7684 AlphaWorks\uff1ahttp://www.alphaworks.ibm.com/formula/xml"}, 1218 { "gtone", ">1" }, 1219 { "zero", "0" }, 1220 { "one", "1" }, 1221 { "two" , "2" }, 1222 { "three", "3" } 1223 1224 }; 1225 1226 1227 1229 1230 public static final String BAD_CODE = "BAD_CODE"; 1231 1232 1233 public static final String FORMAT_FAILED = "FORMAT_FAILED"; 1234 1235 1236 public static final String ERROR_RESOURCES = 1237 "com.sun.org.apache.xpath.internal.res.XPATHErrorResources"; 1238 1239 1240 public static final String ERROR_STRING = "#\u9519\u8bef"; 1241 1242 1243 public static final String ERROR_HEADER = "\u9519\u8bef:"; 1244 1245 1246 public static final String WARNING_HEADER = "\u8b66\u544a:"; 1247 1248 1249 public static final String XSL_HEADER = "XSL "; 1250 1251 1252 public static final String XML_HEADER = "XML "; 1253 1254 1255 public static final String QUERY_HEADER = "PATTERN "; 1256 1257 1262 protected Object [][] getContents() { 1263 Object [][] msgCopy = new Object [contents.length][2]; 1267 for (int i = 0; i < contents.length; i++) { 1268 msgCopy[i][0] = contents[i][0]; 1269 msgCopy[i][1] = contents[i][1]; 1270 } 1271 return msgCopy; 1272 } 1273 1274 1285 public static final XPATHErrorResources loadResourceBundle(String className) 1286 throws MissingResourceException 1287 { 1288 1289 Locale locale = Locale.getDefault(); 1290 String suffix = getResourceSuffix(locale); 1291 1292 try 1293 { 1294 1295 return (XPATHErrorResources) ResourceBundle.getBundle(className 1297 + suffix, locale); 1298 } 1299 catch (MissingResourceException e) 1300 { 1301 try { 1303 1304 return (XPATHErrorResources) ResourceBundle.getBundle(className, 1307 new Locale ("zh", "CN")); 1308 } 1309 catch (MissingResourceException e2) 1310 { 1311 1312 throw new MissingResourceException ( 1315 "\u65e0\u6cd5\u88c5\u5165\u4efb\u4f55\u8d44\u6e90\u5305\u3002", className, ""); 1316 } 1317 } 1318 } 1319 1320 1328 private static final String getResourceSuffix(Locale locale) 1329 { 1330 1331 String suffix = "_" + locale.getLanguage(); 1332 String country = locale.getCountry(); 1333 1334 if (country.equals("TW")) 1335 suffix += "_" + country; 1336 1337 return suffix; 1338 } 1339 1340} 1341 | Popular Tags |