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 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 ER_EXTENSION_FUNCTION_CANNOT_BE_INVOKED = "ER_EXTENSION_FUNCTION_CANNOT_BE_INVOKED"; 331 public static final String ER_RESOLVE_VARIABLE_RETURNS_NULL = "ER_RESOLVE_VARIABLE_RETURNS_NULL"; 332 public static final String ER_UNSUPPORTED_RETURN_TYPE = "ER_UNSUPPORTED_RETURN_TYPE"; 333 public static final String ER_SOURCE_RETURN_TYPE_CANNOT_BE_NULL = "ER_SOURCE_RETURN_TYPE_CANNOT_BE_NULL"; 334 public static final String ER_ARG_CANNOT_BE_NULL = "ER_ARG_CANNOT_BE_NULL"; 335 336 public static final String ER_OBJECT_MODEL_NULL = "ER_OBJECT_MODEL_NULL"; 337 public static final String ER_OBJECT_MODEL_EMPTY = "ER_OBJECT_MODEL_EMPTY"; 338 public static final String ER_FEATURE_NAME_NULL = "ER_FEATURE_NAME_NULL"; 339 public static final String ER_FEATURE_UNKNOWN = "ER_FEATURE_UNKNOWN"; 340 public static final String ER_GETTING_NULL_FEATURE = "ER_GETTING_NULL_FEATURE"; 341 public static final String ER_GETTING_UNKNOWN_FEATURE = "ER_GETTING_UNKNOWN_FEATURE"; 342 public static final String ER_NULL_XPATH_FUNCTION_RESOLVER = "ER_NULL_XPATH_FUNCTION_RESOLVER"; 343 public static final String ER_NULL_XPATH_VARIABLE_RESOLVER = "ER_NULL_XPATH_VARIABLE_RESOLVER"; 344 345 347 public static final String WG_LOCALE_NAME_NOT_HANDLED = 348 "WG_LOCALE_NAME_NOT_HANDLED"; 349 public static final String WG_PROPERTY_NOT_SUPPORTED = 350 "WG_PROPERTY_NOT_SUPPORTED"; 351 public static final String WG_DONT_DO_ANYTHING_WITH_NS = 352 "WG_DONT_DO_ANYTHING_WITH_NS"; 353 public static final String WG_SECURITY_EXCEPTION = "WG_SECURITY_EXCEPTION"; 354 public static final String WG_QUO_NO_LONGER_DEFINED = 355 "WG_QUO_NO_LONGER_DEFINED"; 356 public static final String WG_NEED_DERIVED_OBJECT_TO_IMPLEMENT_NODETEST = 357 "WG_NEED_DERIVED_OBJECT_TO_IMPLEMENT_NODETEST"; 358 public static final String WG_FUNCTION_TOKEN_NOT_FOUND = 359 "WG_FUNCTION_TOKEN_NOT_FOUND"; 360 public static final String WG_COULDNOT_FIND_FUNCTION = 361 "WG_COULDNOT_FIND_FUNCTION"; 362 public static final String WG_CANNOT_MAKE_URL_FROM ="WG_CANNOT_MAKE_URL_FROM"; 363 public static final String WG_EXPAND_ENTITIES_NOT_SUPPORTED = 364 "WG_EXPAND_ENTITIES_NOT_SUPPORTED"; 365 public static final String WG_ILLEGAL_VARIABLE_REFERENCE = 366 "WG_ILLEGAL_VARIABLE_REFERENCE"; 367 public static final String WG_UNSUPPORTED_ENCODING ="WG_UNSUPPORTED_ENCODING"; 368 369 370 372 public static final Object [][] contents = { 373 374 375 376 378 { "ERROR0000" , "{0}" }, 379 380 381 382 384 { ER_CURRENT_NOT_ALLOWED_IN_MATCH, "The current() function is not allowed in a match pattern!" }, 385 386 387 389 { ER_CURRENT_TAKES_NO_ARGS, "The current() function does not accept arguments!" }, 390 391 392 { ER_DOCUMENT_REPLACED, 394 "document() function implementation has been replaced by com.sun.org.apache.xalan.internal.xslt.FuncDocument!"}, 395 396 397 398 400 { ER_CONTEXT_HAS_NO_OWNERDOC, 401 "context does not have an owner document!"}, 402 403 404 406 { ER_LOCALNAME_HAS_TOO_MANY_ARGS, 407 "local-name() has too many arguments."}, 408 409 410 412 { ER_NAMESPACEURI_HAS_TOO_MANY_ARGS, 413 "namespace-uri() has too many arguments."}, 414 415 416 { ER_NORMALIZESPACE_HAS_TOO_MANY_ARGS, 418 "normalize-space() has too many arguments."}, 419 420 421 423 { ER_NUMBER_HAS_TOO_MANY_ARGS, 424 "number() has too many arguments."}, 425 426 427 429 { ER_NAME_HAS_TOO_MANY_ARGS, 430 "name() has too many arguments."}, 431 432 433 435 { ER_STRING_HAS_TOO_MANY_ARGS, 436 "string() has too many arguments."}, 437 438 439 441 { ER_STRINGLENGTH_HAS_TOO_MANY_ARGS, 442 "string-length() has too many arguments."}, 443 444 445 447 { ER_TRANSLATE_TAKES_3_ARGS, 448 "The translate() function takes three arguments!"}, 449 450 451 453 { ER_UNPARSEDENTITYURI_TAKES_1_ARG, 454 "The unparsed-entity-uri function should take one argument!"}, 455 456 457 459 { ER_NAMESPACEAXIS_NOT_IMPLEMENTED, 460 "namespace axis not implemented yet!"}, 461 462 463 465 { ER_UNKNOWN_AXIS, 466 "unknown axis: {0}"}, 467 468 469 471 { ER_UNKNOWN_MATCH_OPERATION, 472 "unknown match operation!"}, 473 474 475 477 { ER_INCORRECT_ARG_LENGTH, 478 "Arg length of processing-instruction() node test is incorrect!"}, 479 480 481 483 { ER_CANT_CONVERT_TO_NUMBER, 484 "Can not convert {0} to a number"}, 485 486 487 489 { ER_CANT_CONVERT_TO_NODELIST, 490 "Can not convert {0} to a NodeList!"}, 491 492 493 495 { ER_CANT_CONVERT_TO_MUTABLENODELIST, 496 "Can not convert {0} to a NodeSetDTM!"}, 497 498 499 501 { ER_CANT_CONVERT_TO_TYPE, 502 "Can not convert {0} to a type#{1}"}, 503 504 505 507 { ER_EXPECTED_MATCH_PATTERN, 508 "Expected match pattern in getMatchScore!"}, 509 510 511 513 { ER_COULDNOT_GET_VAR_NAMED, 514 "Could not get variable named {0}"}, 515 516 517 519 { ER_UNKNOWN_OPCODE, 520 "ERROR! Unknown op code: {0}"}, 521 522 523 525 { ER_EXTRA_ILLEGAL_TOKENS, 526 "Extra illegal tokens: {0}"}, 527 528 529 531 { ER_EXPECTED_DOUBLE_QUOTE, 532 "misquoted literal... expected double quote!"}, 533 534 535 537 { ER_EXPECTED_SINGLE_QUOTE, 538 "misquoted literal... expected single quote!"}, 539 540 541 543 { ER_EMPTY_EXPRESSION, 544 "Empty expression!"}, 545 546 547 549 { ER_EXPECTED_BUT_FOUND, 550 "Expected {0}, but found: {1}"}, 551 552 553 555 { ER_INCORRECT_PROGRAMMER_ASSERTION, 556 "Programmer assertion is incorrect! - {0}"}, 557 558 559 561 { ER_BOOLEAN_ARG_NO_LONGER_OPTIONAL, 562 "boolean(...) argument is no longer optional with 19990709 XPath draft."}, 563 564 565 567 { ER_FOUND_COMMA_BUT_NO_PRECEDING_ARG, 568 "Found ',' but no preceding argument!"}, 569 570 571 573 { ER_FOUND_COMMA_BUT_NO_FOLLOWING_ARG, 574 "Found ',' but no following argument!"}, 575 576 577 579 { ER_PREDICATE_ILLEGAL_SYNTAX, 580 "'..[predicate]' or '.[predicate]' is illegal syntax. Use 'self::node()[predicate]' instead."}, 581 582 583 585 { ER_ILLEGAL_AXIS_NAME, 586 "illegal axis name: {0}"}, 587 588 589 591 { ER_UNKNOWN_NODETYPE, 592 "Unknown nodetype: {0}"}, 593 594 595 597 { ER_PATTERN_LITERAL_NEEDS_BE_QUOTED, 598 "Pattern literal ({0}) needs to be quoted!"}, 599 600 601 603 { ER_COULDNOT_BE_FORMATTED_TO_NUMBER, 604 "{0} could not be formatted to a number!"}, 605 606 607 609 { ER_COULDNOT_CREATE_XMLPROCESSORLIAISON, 610 "Could not create XML TransformerFactory Liaison: {0}"}, 611 612 613 615 { ER_DIDNOT_FIND_XPATH_SELECT_EXP, 616 "Error! Did not find xpath select expression (-select)."}, 617 618 619 621 { ER_COULDNOT_FIND_ENDOP_AFTER_OPLOCATIONPATH, 622 "ERROR! Could not find ENDOP after OP_LOCATIONPATH"}, 623 624 625 627 { ER_ERROR_OCCURED, 628 "Error occured!"}, 629 630 631 633 { ER_ILLEGAL_VARIABLE_REFERENCE, 634 "VariableReference given for variable out of context or without definition! Name = {0}"}, 635 636 637 639 { ER_AXES_NOT_ALLOWED, 640 "Only child:: and attribute:: axes are allowed in match patterns! Offending axes = {0}"}, 641 642 643 645 { ER_KEY_HAS_TOO_MANY_ARGS, 646 "key() has an incorrect number of arguments."}, 647 648 649 651 { ER_COUNT_TAKES_1_ARG, 652 "The count function should take one argument!"}, 653 654 655 657 { ER_COULDNOT_FIND_FUNCTION, 658 "Could not find function: {0}"}, 659 660 661 663 { ER_UNSUPPORTED_ENCODING, 664 "Unsupported encoding: {0}"}, 665 666 667 669 { ER_PROBLEM_IN_DTM_NEXTSIBLING, 670 "Problem occured in DTM in getNextSibling... trying to recover"}, 671 672 673 675 { ER_CANNOT_WRITE_TO_EMPTYNODELISTIMPL, 676 "Programmer error: EmptyNodeList can not be written to."}, 677 678 679 681 { ER_SETDOMFACTORY_NOT_SUPPORTED, 682 "setDOMFactory is not supported by XPathContext!"}, 683 684 685 687 { ER_PREFIX_MUST_RESOLVE, 688 "Prefix must resolve to a namespace: {0}"}, 689 690 691 693 { ER_PARSE_NOT_SUPPORTED, 694 "parse (InputSource source) not supported in XPathContext! Can not open {0}"}, 695 696 697 699 702 703 705 708 709 711 714 715 717 { ER_SAX_API_NOT_HANDLED, 718 "SAX API characters(char ch[]... not handled by the DTM!"}, 719 720 721 723 { ER_IGNORABLE_WHITESPACE_NOT_HANDLED, 724 "ignorableWhitespace(char ch[]... not handled by the DTM!"}, 725 726 727 729 { ER_DTM_CANNOT_HANDLE_NODES, 730 "DTMLiaison can not handle nodes of type {0}"}, 731 732 733 735 { ER_XERCES_CANNOT_HANDLE_NODES, 736 "DOM2Helper can not handle nodes of type {0}"}, 737 738 739 741 { ER_XERCES_PARSE_ERROR_DETAILS, 742 "DOM2Helper.parse error: SystemID - {0} line - {1}"}, 743 744 745 747 { ER_XERCES_PARSE_ERROR, 748 "DOM2Helper.parse error"}, 749 750 751 753 756 757 759 762 763 765 { ER_INVALID_UTF16_SURROGATE, 766 "Invalid UTF-16 surrogate detected: {0} ?"}, 767 768 769 771 { ER_OIERROR, 772 "IO error"}, 773 774 775 777 { ER_CANNOT_CREATE_URL, 778 "Cannot create url for: {0}"}, 779 780 781 783 { ER_XPATH_READOBJECT, 784 "In XPath.readObject: {0}"}, 785 786 787 789 { ER_FUNCTION_TOKEN_NOT_FOUND, 790 "function token not found."}, 791 792 793 795 798 799 801 { ER_CANNOT_DEAL_XPATH_TYPE, 802 "Can not deal with XPath type: {0}"}, 803 804 805 807 { ER_NODESET_NOT_MUTABLE, 808 "This NodeSet is not mutable"}, 809 810 811 813 { ER_NODESETDTM_NOT_MUTABLE, 814 "This NodeSetDTM is not mutable"}, 815 816 817 819 { ER_VAR_NOT_RESOLVABLE, 820 "Variable not resolvable: {0}"}, 821 822 823 825 { ER_NULL_ERROR_HANDLER, 826 "Null error handler"}, 827 828 829 831 { ER_PROG_ASSERT_UNKNOWN_OPCODE, 832 "Programmer''s assertion: unknown opcode: {0}"}, 833 834 835 837 { ER_ZERO_OR_ONE, 838 "0 or 1"}, 839 840 841 842 844 { ER_RTF_NOT_SUPPORTED_XRTREEFRAGSELECTWRAPPER, 845 "rtf() not supported by XRTreeFragSelectWrapper"}, 846 847 848 850 { ER_RTF_NOT_SUPPORTED_XRTREEFRAGSELECTWRAPPER, 851 "asNodeIterator() not supported by XRTreeFragSelectWrapper"}, 852 853 854 856 { ER_FSB_NOT_SUPPORTED_XSTRINGFORCHARS, 857 "fsb() not supported for XStringForChars"}, 858 859 860 862 { ER_COULD_NOT_FIND_VAR, 863 "Could not find variable with the name of {0}"}, 864 865 866 868 { ER_XSTRINGFORCHARS_CANNOT_TAKE_STRING, 869 "XStringForChars can not take a string for an argument"}, 870 871 872 874 { ER_FASTSTRINGBUFFER_CANNOT_BE_NULL, 875 "The FastStringBuffer argument can not be null"}, 876 877 878 879 881 { ER_TWO_OR_THREE, 882 "2 or 3"}, 883 884 885 887 { ER_VARIABLE_ACCESSED_BEFORE_BIND, 888 "Variable accessed before it is bound!"}, 889 890 891 893 { ER_FSB_CANNOT_TAKE_STRING, 894 "XStringForFSB can not take a string for an argument!"}, 895 896 897 899 { ER_SETTING_WALKER_ROOT_TO_NULL, 900 "\n !!!! Error! Setting the root of a walker to null!!!"}, 901 902 903 905 { ER_NODESETDTM_CANNOT_ITERATE, 906 "This NodeSetDTM can not iterate to a previous node!"}, 907 908 909 911 { ER_NODESET_CANNOT_ITERATE, 912 "This NodeSet can not iterate to a previous node!"}, 913 914 915 917 { ER_NODESETDTM_CANNOT_INDEX, 918 "This NodeSetDTM can not do indexing or counting functions!"}, 919 920 921 923 { ER_NODESET_CANNOT_INDEX, 924 "This NodeSet can not do indexing or counting functions!"}, 925 926 927 929 { ER_CANNOT_CALL_SETSHOULDCACHENODE, 930 "Can not call setShouldCacheNodes after nextNode has been called!"}, 931 932 933 935 { ER_ONLY_ALLOWS, 936 "{0} only allows {1} arguments"}, 937 938 939 941 { ER_UNKNOWN_STEP, 942 "Programmer''s assertion in getNextStepPos: unknown stepType: {0}"}, 943 944 948 949 951 { ER_EXPECTED_REL_LOC_PATH, 952 "A relative location path was expected following the '/' or '//' token."}, 953 954 958 959 961 { ER_EXPECTED_LOC_PATH, 962 "A location path was expected, but the following token was encountered\u003a {0}"}, 963 964 968 969 971 { ER_EXPECTED_LOC_STEP, 972 "A location step was expected following the '/' or '//' token."}, 973 974 979 980 982 { ER_EXPECTED_NODE_TEST, 983 "A node test that matches either NCName:* or QName was expected."}, 984 985 989 990 992 { ER_EXPECTED_STEP_PATTERN, 993 "A step pattern was expected, but '/' was encountered."}, 994 995 999 1000 1002 { ER_EXPECTED_REL_PATH_PATTERN, 1003 "A relative path pattern was expected."}, 1004 1005 1009 1010 1012 1015 1019 1020 1022 1025 1029 1030 1032 { ER_CANT_CONVERT_TO_BOOLEAN, 1033 "Cannot convert {0} to a boolean."}, 1034 1035 1038 1039 1041 { ER_CANT_CONVERT_TO_SINGLENODE, 1042 "Cannot convert {0} to a single node. This getter applies to types ANY_UNORDERED_NODE_TYPE and FIRST_ORDERED_NODE_TYPE."}, 1043 1044 1047 1048 1050 { ER_CANT_GET_SNAPSHOT_LENGTH, 1051 "Cannot get snapshot length on type: {0}. This getter applies to types UNORDERED_NODE_SNAPSHOT_TYPE and ORDERED_NODE_SNAPSHOT_TYPE."}, 1052 1053 1054 1056 { ER_NON_ITERATOR_TYPE, 1057 "Cannot iterate over non-iterator type: {0}"}, 1058 1059 1063 1064 1066 { ER_DOC_MUTATED, 1067 "Document mutated since result was returned. Iterator is invalid."}, 1068 1069 1070 1072 { ER_INVALID_XPATH_TYPE, 1073 "Invalid XPath type argument: {0}"}, 1074 1075 1076 1078 { ER_EMPTY_XPATH_RESULT, 1079 "Empty XPath result object"}, 1080 1081 1082 1084 { ER_INCOMPATIBLE_TYPES, 1085 "The returned type: {0} cannot be coerced into the specified type: {1}"}, 1086 1087 1088 1090 { ER_NULL_RESOLVER, 1091 "Unable to resolve prefix with null prefix resolver."}, 1092 1093 1097 1098 1100 { ER_CANT_CONVERT_TO_STRING, 1101 "Cannot convert {0} to a string."}, 1102 1103 1106 1107 1109 { ER_NON_SNAPSHOT_TYPE, 1110 "Cannot call snapshotItem on type: {0}. This method applies to types UNORDERED_NODE_SNAPSHOT_TYPE and ORDERED_NODE_SNAPSHOT_TYPE."}, 1111 1112 1117 1118 1120 { ER_WRONG_DOCUMENT, 1121 "Context node does not belong to the document that is bound to this XPathEvaluator."}, 1122 1123 1126 1128 { ER_WRONG_NODETYPE, 1129 "The context node type is not supported."}, 1130 1131 1132 1134 { ER_XPATH_ERROR, 1135 "Unknown error in XPath."}, 1136 1137 1139 1140 1141 { ER_EXTENSION_FUNCTION_CANNOT_BE_INVOKED, 1142 "Extension function: {0} can not be invoked when XPathConstants.FEATURE_SECURE_PROCESSING feature is set to true"}, 1143 1144 1145 1146 { ER_RESOLVE_VARIABLE_RETURNS_NULL, 1147 "resolveVariable for variable {0} returning null"}, 1148 1149 1150 1151 { ER_UNSUPPORTED_RETURN_TYPE, 1152 "UnSupported Return Type : {0}"}, 1153 1154 1155 1156 { ER_SOURCE_RETURN_TYPE_CANNOT_BE_NULL, 1157 "Source and/or Return Type can not be null"}, 1158 1159 1160 1161 { ER_SOURCE_RETURN_TYPE_CANNOT_BE_NULL, 1162 "Source and/or Return Type can not be null"}, 1163 1164 1165 1166 { ER_ARG_CANNOT_BE_NULL, 1167 "{0} argument can not be null"}, 1168 1169 1170 1171 { ER_OBJECT_MODEL_NULL, 1172 "{0}#isObjectModelSupported( String objectModel ) cannot be called with objectModel == null"}, 1173 1174 1175 1176 { ER_OBJECT_MODEL_EMPTY, 1177 "{0}#isObjectModelSupported( String objectModel ) cannot be called with objectModel == \"\""}, 1178 1179 1180 1181 { ER_FEATURE_NAME_NULL, 1182 "Trying to set a feature with a null name: {0}#setFeature( null, {1})"}, 1183 1184 1185 1186 { ER_FEATURE_UNKNOWN, 1187 "Trying to set the unknown feature \"{0}\":{1}#setFeature({0},{2})"}, 1188 1189 1190 1191 { ER_GETTING_NULL_FEATURE, 1192 "Trying to get a feature with a null name: {0}#getFeature(null)"}, 1193 1194 1195 1196 { ER_GETTING_UNKNOWN_FEATURE, 1197 "Trying to get the unknown feature \"{0}\":{1}#getFeature({0})"}, 1198 1199 1200 1201 { ER_NULL_XPATH_FUNCTION_RESOLVER, 1202 "Attempting to set a null XPathFunctionResolver:{0}#setXPathFunctionResolver(null)"}, 1203 1204 1205 1206 { ER_NULL_XPATH_VARIABLE_RESOLVER, 1207 "Attempting to set a null XPathVariableResolver:{0}#setXPathVariableResolver(null)"}, 1208 1209 1211 1213 1214 1216 { WG_LOCALE_NAME_NOT_HANDLED, 1217 "locale name in the format-number function not yet handled!"}, 1218 1219 1220 1222 { WG_PROPERTY_NOT_SUPPORTED, 1223 "XSL Property not supported: {0}"}, 1224 1225 1226 1228 { WG_DONT_DO_ANYTHING_WITH_NS, 1229 "Do not currently do anything with namespace {0} in property: {1}"}, 1230 1231 1232 1234 { WG_SECURITY_EXCEPTION, 1235 "SecurityException when trying to access XSL system property: {0}"}, 1236 1237 1238 1240 { WG_QUO_NO_LONGER_DEFINED, 1241 "Old syntax: quo(...) is no longer defined in XPath."}, 1242 1243 1244 1246 { WG_NEED_DERIVED_OBJECT_TO_IMPLEMENT_NODETEST, 1247 "XPath needs a derived object to implement nodeTest!"}, 1248 1249 1250 1252 { WG_FUNCTION_TOKEN_NOT_FOUND, 1253 "function token not found."}, 1254 1255 1256 1258 { WG_COULDNOT_FIND_FUNCTION, 1259 "Could not find function: {0}"}, 1260 1261 1262 1264 { WG_CANNOT_MAKE_URL_FROM, 1265 "Can not make URL from: {0}"}, 1266 1267 1268 1270 { WG_EXPAND_ENTITIES_NOT_SUPPORTED, 1271 "-E option not supported for DTM parser"}, 1272 1273 1274 1276 { WG_ILLEGAL_VARIABLE_REFERENCE, 1277 "VariableReference given for variable out of context or without definition! Name = {0}"}, 1278 1279 1280 1282 { WG_UNSUPPORTED_ENCODING, 1283 "Unsupported encoding: {0}"}, 1284 1285 1286 1287 { "ui_language", "en"}, 1289 { "help_language", "en"}, 1290 { "language", "en"}, 1291 { "BAD_CODE", "Parameter to createMessage was out of bounds"}, 1292 { "FORMAT_FAILED", "Exception thrown during messageFormat call"}, 1293 { "version", ">>>>>>> Xalan Version "}, 1294 { "version2", "<<<<<<<"}, 1295 { "yes", "yes"}, 1296 { "line", "Line #"}, 1297 { "column", "Column #"}, 1298 { "xsldone", "XSLProcessor: done"}, 1299 { "xpath_option", "xpath options: "}, 1300 { "optionIN", " [-in inputXMLURL]"}, 1301 { "optionSelect", " [-select xpath expression]"}, 1302 { "optionMatch", " [-match match pattern (for match diagnostics)]"}, 1303 { "optionAnyExpr", "Or just an xpath expression will do a diagnostic dump"}, 1304 { "noParsermsg1", "XSL Process was not successful."}, 1305 { "noParsermsg2", "** Could not find parser **"}, 1306 { "noParsermsg3", "Please check your classpath."}, 1307 { "noParsermsg4", "If you don't have IBM's XML Parser for Java, you can download it from"}, 1308 { "noParsermsg5", "IBM's AlphaWorks: http://www.alphaworks.ibm.com/formula/xml"}, 1309 { "gtone", ">1" }, 1310 { "zero", "0" }, 1311 { "one", "1" }, 1312 { "two" , "2" }, 1313 { "three", "3" } 1314 1315 }; 1316 1317 1318 1320 1321 public static final String BAD_CODE = "BAD_CODE"; 1322 1323 1324 public static final String FORMAT_FAILED = "FORMAT_FAILED"; 1325 1326 1327 public static final String ERROR_RESOURCES = 1328 "com.sun.org.apache.xpath.internal.res.XPATHErrorResources"; 1329 1330 1331 public static final String ERROR_STRING = "#error"; 1332 1333 1334 public static final String ERROR_HEADER = "Error: "; 1335 1336 1337 public static final String WARNING_HEADER = "Warning: "; 1338 1339 1340 public static final String XSL_HEADER = "XSL "; 1341 1342 1343 public static final String XML_HEADER = "XML "; 1344 1345 1346 public static final String QUERY_HEADER = "PATTERN "; 1347 1348 1353 protected Object [][] getContents() { 1354 Object [][] msgCopy = new Object [contents.length][2]; 1358 for (int i = 0; i < contents.length; i++) { 1359 msgCopy[i][0] = contents[i][0]; 1360 msgCopy[i][1] = contents[i][1]; 1361 } 1362 return msgCopy; 1363 } 1364 1365 1376 public static final XPATHErrorResources loadResourceBundle(String className) 1377 throws MissingResourceException 1378 { 1379 1380 Locale locale = Locale.getDefault(); 1381 String suffix = getResourceSuffix(locale); 1382 1383 try 1384 { 1385 1386 return (XPATHErrorResources) ResourceBundle.getBundle(className 1388 + suffix, locale); 1389 } 1390 catch (MissingResourceException e) 1391 { 1392 try { 1394 1395 return (XPATHErrorResources) ResourceBundle.getBundle(className, 1398 new Locale ("en", "US")); 1399 } 1400 catch (MissingResourceException e2) 1401 { 1402 1403 throw new MissingResourceException ( 1406 "Could not load any resource bundles.", className, ""); 1407 } 1408 } 1409 } 1410 1411 1419 private static final String getResourceSuffix(Locale locale) 1420 { 1421 1422 String suffix = "_" + locale.getLanguage(); 1423 String country = locale.getCountry(); 1424 1425 if (country.equals("TW")) 1426 suffix += "_" + country; 1427 1428 return suffix; 1429 } 1430 1431} 1432 | Popular Tags |