0001: /*
0002: * Copyright 1999-2004 The Apache Software Foundation.
0003: *
0004: * Licensed under the Apache License, Version 2.0 (the "License");
0005: * you may not use this file except in compliance with the License.
0006: * You may obtain a copy of the License at
0007: *
0008: * http://www.apache.org/licenses/LICENSE-2.0
0009: *
0010: * Unless required by applicable law or agreed to in writing, software
0011: * distributed under the License is distributed on an "AS IS" BASIS,
0012: * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
0013: * See the License for the specific language governing permissions and
0014: * limitations under the License.
0015: */
0016: /*
0017: * $Id: XPATHErrorResources_cs.java,v 1.5 2005/01/23 01:39:54 mcnamara Exp $
0018: */
0019: package org.apache.xpath.res;
0020:
0021: import java.util.ListResourceBundle;
0022: import java.util.Locale;
0023: import java.util.MissingResourceException;
0024: import java.util.ResourceBundle;
0025:
0026: /**
0027: * Set up error messages.
0028: * We build a two dimensional array of message keys and
0029: * message strings. In order to add a new message here,
0030: * you need to first add a Static string constant for the
0031: * Key and update the contents array with Key, Value pair
0032: * Also you need to update the count of messages(MAX_CODE)or
0033: * the count of warnings(MAX_WARNING) [ Information purpose only]
0034: * @xsl.usage advanced
0035: */
0036: public class XPATHErrorResources_cs extends ListResourceBundle {
0037:
0038: /*
0039: * General notes to translators:
0040: *
0041: * This file contains error and warning messages related to XPath Error
0042: * Handling.
0043: *
0044: * 1) Xalan (or more properly, Xalan-interpretive) and XSLTC are names of
0045: * components.
0046: * XSLT is an acronym for "XML Stylesheet Language: Transformations".
0047: * XSLTC is an acronym for XSLT Compiler.
0048: *
0049: * 2) A stylesheet is a description of how to transform an input XML document
0050: * into a resultant XML document (or HTML document or text). The
0051: * stylesheet itself is described in the form of an XML document.
0052: *
0053: * 3) A template is a component of a stylesheet that is used to match a
0054: * particular portion of an input document and specifies the form of the
0055: * corresponding portion of the output document.
0056: *
0057: * 4) An element is a mark-up tag in an XML document; an attribute is a
0058: * modifier on the tag. For example, in <elem attr='val' attr2='val2'>
0059: * "elem" is an element name, "attr" and "attr2" are attribute names with
0060: * the values "val" and "val2", respectively.
0061: *
0062: * 5) A namespace declaration is a special attribute that is used to associate
0063: * a prefix with a URI (the namespace). The meanings of element names and
0064: * attribute names that use that prefix are defined with respect to that
0065: * namespace.
0066: *
0067: * 6) "Translet" is an invented term that describes the class file that
0068: * results from compiling an XML stylesheet into a Java class.
0069: *
0070: * 7) XPath is a specification that describes a notation for identifying
0071: * nodes in a tree-structured representation of an XML document. An
0072: * instance of that notation is referred to as an XPath expression.
0073: *
0074: * 8) The context node is the node in the document with respect to which an
0075: * XPath expression is being evaluated.
0076: *
0077: * 9) An iterator is an object that traverses nodes in the tree, one at a time.
0078: *
0079: * 10) NCName is an XML term used to describe a name that does not contain a
0080: * colon (a "no-colon name").
0081: *
0082: * 11) QName is an XML term meaning "qualified name".
0083: */
0084:
0085: /** Field MAX_CODE */
0086: public static final int MAX_CODE = 108; // this is needed to keep track of the number of messages
0087:
0088: /** Field MAX_WARNING */
0089: public static final int MAX_WARNING = 11; // this is needed to keep track of the number of warnings
0090:
0091: /** Field MAX_OTHERS */
0092: public static final int MAX_OTHERS = 20;
0093:
0094: /** Field MAX_MESSAGES */
0095: public static final int MAX_MESSAGES = MAX_CODE + MAX_WARNING + 1;
0096:
0097: /*
0098: * static variables
0099: */
0100: public static final String ERROR0000 = "ERROR0000";
0101: public static final String ER_CURRENT_NOT_ALLOWED_IN_MATCH = "ER_CURRENT_NOT_ALLOWED_IN_MATCH";
0102: public static final String ER_CURRENT_TAKES_NO_ARGS = "ER_CURRENT_TAKES_NO_ARGS";
0103: public static final String ER_DOCUMENT_REPLACED = "ER_DOCUMENT_REPLACED";
0104: public static final String ER_CONTEXT_HAS_NO_OWNERDOC = "ER_CONTEXT_HAS_NO_OWNERDOC";
0105: public static final String ER_LOCALNAME_HAS_TOO_MANY_ARGS = "ER_LOCALNAME_HAS_TOO_MANY_ARGS";
0106: public static final String ER_NAMESPACEURI_HAS_TOO_MANY_ARGS = "ER_NAMESPACEURI_HAS_TOO_MANY_ARGS";
0107: public static final String ER_NORMALIZESPACE_HAS_TOO_MANY_ARGS = "ER_NORMALIZESPACE_HAS_TOO_MANY_ARGS";
0108: public static final String ER_NUMBER_HAS_TOO_MANY_ARGS = "ER_NUMBER_HAS_TOO_MANY_ARGS";
0109: public static final String ER_NAME_HAS_TOO_MANY_ARGS = "ER_NAME_HAS_TOO_MANY_ARGS";
0110: public static final String ER_STRING_HAS_TOO_MANY_ARGS = "ER_STRING_HAS_TOO_MANY_ARGS";
0111: public static final String ER_STRINGLENGTH_HAS_TOO_MANY_ARGS = "ER_STRINGLENGTH_HAS_TOO_MANY_ARGS";
0112: public static final String ER_TRANSLATE_TAKES_3_ARGS = "ER_TRANSLATE_TAKES_3_ARGS";
0113: public static final String ER_UNPARSEDENTITYURI_TAKES_1_ARG = "ER_UNPARSEDENTITYURI_TAKES_1_ARG";
0114: public static final String ER_NAMESPACEAXIS_NOT_IMPLEMENTED = "ER_NAMESPACEAXIS_NOT_IMPLEMENTED";
0115: public static final String ER_UNKNOWN_AXIS = "ER_UNKNOWN_AXIS";
0116: public static final String ER_UNKNOWN_MATCH_OPERATION = "ER_UNKNOWN_MATCH_OPERATION";
0117: public static final String ER_INCORRECT_ARG_LENGTH = "ER_INCORRECT_ARG_LENGTH";
0118: public static final String ER_CANT_CONVERT_TO_NUMBER = "ER_CANT_CONVERT_TO_NUMBER";
0119: public static final String ER_CANT_CONVERT_TO_NODELIST = "ER_CANT_CONVERT_TO_NODELIST";
0120: public static final String ER_CANT_CONVERT_TO_MUTABLENODELIST = "ER_CANT_CONVERT_TO_MUTABLENODELIST";
0121: public static final String ER_CANT_CONVERT_TO_TYPE = "ER_CANT_CONVERT_TO_TYPE";
0122: public static final String ER_EXPECTED_MATCH_PATTERN = "ER_EXPECTED_MATCH_PATTERN";
0123: public static final String ER_COULDNOT_GET_VAR_NAMED = "ER_COULDNOT_GET_VAR_NAMED";
0124: public static final String ER_UNKNOWN_OPCODE = "ER_UNKNOWN_OPCODE";
0125: public static final String ER_EXTRA_ILLEGAL_TOKENS = "ER_EXTRA_ILLEGAL_TOKENS";
0126: public static final String ER_EXPECTED_DOUBLE_QUOTE = "ER_EXPECTED_DOUBLE_QUOTE";
0127: public static final String ER_EXPECTED_SINGLE_QUOTE = "ER_EXPECTED_SINGLE_QUOTE";
0128: public static final String ER_EMPTY_EXPRESSION = "ER_EMPTY_EXPRESSION";
0129: public static final String ER_EXPECTED_BUT_FOUND = "ER_EXPECTED_BUT_FOUND";
0130: public static final String ER_INCORRECT_PROGRAMMER_ASSERTION = "ER_INCORRECT_PROGRAMMER_ASSERTION";
0131: public static final String ER_BOOLEAN_ARG_NO_LONGER_OPTIONAL = "ER_BOOLEAN_ARG_NO_LONGER_OPTIONAL";
0132: public static final String ER_FOUND_COMMA_BUT_NO_PRECEDING_ARG = "ER_FOUND_COMMA_BUT_NO_PRECEDING_ARG";
0133: public static final String ER_FOUND_COMMA_BUT_NO_FOLLOWING_ARG = "ER_FOUND_COMMA_BUT_NO_FOLLOWING_ARG";
0134: public static final String ER_PREDICATE_ILLEGAL_SYNTAX = "ER_PREDICATE_ILLEGAL_SYNTAX";
0135: public static final String ER_ILLEGAL_AXIS_NAME = "ER_ILLEGAL_AXIS_NAME";
0136: public static final String ER_UNKNOWN_NODETYPE = "ER_UNKNOWN_NODETYPE";
0137: public static final String ER_PATTERN_LITERAL_NEEDS_BE_QUOTED = "ER_PATTERN_LITERAL_NEEDS_BE_QUOTED";
0138: public static final String ER_COULDNOT_BE_FORMATTED_TO_NUMBER = "ER_COULDNOT_BE_FORMATTED_TO_NUMBER";
0139: public static final String ER_COULDNOT_CREATE_XMLPROCESSORLIAISON = "ER_COULDNOT_CREATE_XMLPROCESSORLIAISON";
0140: public static final String ER_DIDNOT_FIND_XPATH_SELECT_EXP = "ER_DIDNOT_FIND_XPATH_SELECT_EXP";
0141: public static final String ER_COULDNOT_FIND_ENDOP_AFTER_OPLOCATIONPATH = "ER_COULDNOT_FIND_ENDOP_AFTER_OPLOCATIONPATH";
0142: public static final String ER_ERROR_OCCURED = "ER_ERROR_OCCURED";
0143: public static final String ER_ILLEGAL_VARIABLE_REFERENCE = "ER_ILLEGAL_VARIABLE_REFERENCE";
0144: public static final String ER_AXES_NOT_ALLOWED = "ER_AXES_NOT_ALLOWED";
0145: public static final String ER_KEY_HAS_TOO_MANY_ARGS = "ER_KEY_HAS_TOO_MANY_ARGS";
0146: public static final String ER_COUNT_TAKES_1_ARG = "ER_COUNT_TAKES_1_ARG";
0147: public static final String ER_COULDNOT_FIND_FUNCTION = "ER_COULDNOT_FIND_FUNCTION";
0148: public static final String ER_UNSUPPORTED_ENCODING = "ER_UNSUPPORTED_ENCODING";
0149: public static final String ER_PROBLEM_IN_DTM_NEXTSIBLING = "ER_PROBLEM_IN_DTM_NEXTSIBLING";
0150: public static final String ER_CANNOT_WRITE_TO_EMPTYNODELISTIMPL = "ER_CANNOT_WRITE_TO_EMPTYNODELISTIMPL";
0151: public static final String ER_SETDOMFACTORY_NOT_SUPPORTED = "ER_SETDOMFACTORY_NOT_SUPPORTED";
0152: public static final String ER_PREFIX_MUST_RESOLVE = "ER_PREFIX_MUST_RESOLVE";
0153: public static final String ER_PARSE_NOT_SUPPORTED = "ER_PARSE_NOT_SUPPORTED";
0154: //public static final String ER_CREATEDOCUMENT_NOT_SUPPORTED =
0155: // "ER_CREATEDOCUMENT_NOT_SUPPORTED";
0156: //public static final String ER_CHILD_HAS_NO_OWNER_DOCUMENT =
0157: // "ER_CHILD_HAS_NO_OWNER_DOCUMENT";
0158: //public static final String ER_CHILD_HAS_NO_OWNER_DOCUMENT_ELEMENT =
0159: // "ER_CHILD_HAS_NO_OWNER_DOCUMENT_ELEMENT";
0160: public static final String ER_SAX_API_NOT_HANDLED = "ER_SAX_API_NOT_HANDLED";
0161: public static final String ER_IGNORABLE_WHITESPACE_NOT_HANDLED = "ER_IGNORABLE_WHITESPACE_NOT_HANDLED";
0162: public static final String ER_DTM_CANNOT_HANDLE_NODES = "ER_DTM_CANNOT_HANDLE_NODES";
0163: public static final String ER_XERCES_CANNOT_HANDLE_NODES = "ER_XERCES_CANNOT_HANDLE_NODES";
0164: public static final String ER_XERCES_PARSE_ERROR_DETAILS = "ER_XERCES_PARSE_ERROR_DETAILS";
0165: public static final String ER_XERCES_PARSE_ERROR = "ER_XERCES_PARSE_ERROR";
0166: //public static final String ER_CANT_OUTPUT_TEXT_BEFORE_DOC =
0167: // "ER_CANT_OUTPUT_TEXT_BEFORE_DOC";
0168: //public static final String ER_CANT_HAVE_MORE_THAN_ONE_ROOT =
0169: // "ER_CANT_HAVE_MORE_THAN_ONE_ROOT";
0170: public static final String ER_INVALID_UTF16_SURROGATE = "ER_INVALID_UTF16_SURROGATE";
0171: public static final String ER_OIERROR = "ER_OIERROR";
0172: public static final String ER_CANNOT_CREATE_URL = "ER_CANNOT_CREATE_URL";
0173: public static final String ER_XPATH_READOBJECT = "ER_XPATH_READOBJECT";
0174: public static final String ER_FUNCTION_TOKEN_NOT_FOUND = "ER_FUNCTION_TOKEN_NOT_FOUND";
0175: //public static final String ER_ARG_LOCALNAME_NULL = "ER_ARG_LOCALNAME_NULL";
0176: public static final String ER_CANNOT_DEAL_XPATH_TYPE = "ER_CANNOT_DEAL_XPATH_TYPE";
0177: public static final String ER_NODESET_NOT_MUTABLE = "ER_NODESET_NOT_MUTABLE";
0178: public static final String ER_NODESETDTM_NOT_MUTABLE = "ER_NODESETDTM_NOT_MUTABLE";
0179: /** Variable not resolvable: */
0180: public static final String ER_VAR_NOT_RESOLVABLE = "ER_VAR_NOT_RESOLVABLE";
0181: /** Null error handler */
0182: public static final String ER_NULL_ERROR_HANDLER = "ER_NULL_ERROR_HANDLER";
0183: /** Programmer's assertion: unknown opcode */
0184: public static final String ER_PROG_ASSERT_UNKNOWN_OPCODE = "ER_PROG_ASSERT_UNKNOWN_OPCODE";
0185: /** 0 or 1 */
0186: public static final String ER_ZERO_OR_ONE = "ER_ZERO_OR_ONE";
0187: /** rtf() not supported by XRTreeFragSelectWrapper */
0188: public static final String ER_RTF_NOT_SUPPORTED_XRTREEFRAGSELECTWRAPPER = "ER_RTF_NOT_SUPPORTED_XRTREEFRAGSELECTWRAPPER";
0189: /** asNodeIterator() not supported by XRTreeFragSelectWrapper */
0190: public static final String ER_ASNODEITERATOR_NOT_SUPPORTED_XRTREEFRAGSELECTWRAPPER = "ER_ASNODEITERATOR_NOT_SUPPORTED_XRTREEFRAGSELECTWRAPPER";
0191: /** fsb() not supported for XStringForChars */
0192: public static final String ER_FSB_NOT_SUPPORTED_XSTRINGFORCHARS = "ER_FSB_NOT_SUPPORTED_XSTRINGFORCHARS";
0193: /** Could not find variable with the name of */
0194: public static final String ER_COULD_NOT_FIND_VAR = "ER_COULD_NOT_FIND_VAR";
0195: /** XStringForChars can not take a string for an argument */
0196: public static final String ER_XSTRINGFORCHARS_CANNOT_TAKE_STRING = "ER_XSTRINGFORCHARS_CANNOT_TAKE_STRING";
0197: /** The FastStringBuffer argument can not be null */
0198: public static final String ER_FASTSTRINGBUFFER_CANNOT_BE_NULL = "ER_FASTSTRINGBUFFER_CANNOT_BE_NULL";
0199: /** 2 or 3 */
0200: public static final String ER_TWO_OR_THREE = "ER_TWO_OR_THREE";
0201: /** Variable accessed before it is bound! */
0202: public static final String ER_VARIABLE_ACCESSED_BEFORE_BIND = "ER_VARIABLE_ACCESSED_BEFORE_BIND";
0203: /** XStringForFSB can not take a string for an argument! */
0204: public static final String ER_FSB_CANNOT_TAKE_STRING = "ER_FSB_CANNOT_TAKE_STRING";
0205: /** Error! Setting the root of a walker to null! */
0206: public static final String ER_SETTING_WALKER_ROOT_TO_NULL = "ER_SETTING_WALKER_ROOT_TO_NULL";
0207: /** This NodeSetDTM can not iterate to a previous node! */
0208: public static final String ER_NODESETDTM_CANNOT_ITERATE = "ER_NODESETDTM_CANNOT_ITERATE";
0209: /** This NodeSet can not iterate to a previous node! */
0210: public static final String ER_NODESET_CANNOT_ITERATE = "ER_NODESET_CANNOT_ITERATE";
0211: /** This NodeSetDTM can not do indexing or counting functions! */
0212: public static final String ER_NODESETDTM_CANNOT_INDEX = "ER_NODESETDTM_CANNOT_INDEX";
0213: /** This NodeSet can not do indexing or counting functions! */
0214: public static final String ER_NODESET_CANNOT_INDEX = "ER_NODESET_CANNOT_INDEX";
0215: /** Can not call setShouldCacheNodes after nextNode has been called! */
0216: public static final String ER_CANNOT_CALL_SETSHOULDCACHENODE = "ER_CANNOT_CALL_SETSHOULDCACHENODE";
0217: /** {0} only allows {1} arguments */
0218: public static final String ER_ONLY_ALLOWS = "ER_ONLY_ALLOWS";
0219: /** Programmer's assertion in getNextStepPos: unknown stepType: {0} */
0220: public static final String ER_UNKNOWN_STEP = "ER_UNKNOWN_STEP";
0221: /** Problem with RelativeLocationPath */
0222: public static final String ER_EXPECTED_REL_LOC_PATH = "ER_EXPECTED_REL_LOC_PATH";
0223: /** Problem with LocationPath */
0224: public static final String ER_EXPECTED_LOC_PATH = "ER_EXPECTED_LOC_PATH";
0225: /** Problem with Step */
0226: public static final String ER_EXPECTED_LOC_STEP = "ER_EXPECTED_LOC_STEP";
0227: /** Problem with NodeTest */
0228: public static final String ER_EXPECTED_NODE_TEST = "ER_EXPECTED_NODE_TEST";
0229: /** Expected step pattern */
0230: public static final String ER_EXPECTED_STEP_PATTERN = "ER_EXPECTED_STEP_PATTERN";
0231: /** Expected relative path pattern */
0232: public static final String ER_EXPECTED_REL_PATH_PATTERN = "ER_EXPECTED_REL_PATH_PATTERN";
0233: /** localname in QNAME should be a valid NCName */
0234: //public static final String ER_ARG_LOCALNAME_INVALID =
0235: // "ER_ARG_LOCALNAME_INVALID";
0236: /** prefix in QNAME should be a valid NCName */
0237: //public static final String ER_ARG_PREFIX_INVALID = "ER_ARG_PREFIX_INVALID";
0238: /** Field ER_CANT_CONVERT_TO_BOOLEAN */
0239: public static final String ER_CANT_CONVERT_TO_BOOLEAN = "ER_CANT_CONVERT_TO_BOOLEAN";
0240: /** Field ER_CANT_CONVERT_TO_SINGLENODE */
0241: public static final String ER_CANT_CONVERT_TO_SINGLENODE = "ER_CANT_CONVERT_TO_SINGLENODE";
0242: /** Field ER_CANT_GET_SNAPSHOT_LENGTH */
0243: public static final String ER_CANT_GET_SNAPSHOT_LENGTH = "ER_CANT_GET_SNAPSHOT_LENGTH";
0244: /** Field ER_NON_ITERATOR_TYPE */
0245: public static final String ER_NON_ITERATOR_TYPE = "ER_NON_ITERATOR_TYPE";
0246: /** Field ER_DOC_MUTATED */
0247: public static final String ER_DOC_MUTATED = "ER_DOC_MUTATED";
0248: public static final String ER_INVALID_XPATH_TYPE = "ER_INVALID_XPATH_TYPE";
0249: public static final String ER_EMPTY_XPATH_RESULT = "ER_EMPTY_XPATH_RESULT";
0250: public static final String ER_INCOMPATIBLE_TYPES = "ER_INCOMPATIBLE_TYPES";
0251: public static final String ER_NULL_RESOLVER = "ER_NULL_RESOLVER";
0252: public static final String ER_CANT_CONVERT_TO_STRING = "ER_CANT_CONVERT_TO_STRING";
0253: public static final String ER_NON_SNAPSHOT_TYPE = "ER_NON_SNAPSHOT_TYPE";
0254: public static final String ER_WRONG_DOCUMENT = "ER_WRONG_DOCUMENT";
0255: /* Note to translators: The XPath expression cannot be evaluated with respect
0256: * to this type of node.
0257: */
0258: /** Field ER_WRONG_NODETYPE */
0259: public static final String ER_WRONG_NODETYPE = "ER_WRONG_NODETYPE";
0260: public static final String ER_XPATH_ERROR = "ER_XPATH_ERROR";
0261:
0262: public static final String WG_LOCALE_NAME_NOT_HANDLED = "WG_LOCALE_NAME_NOT_HANDLED";
0263: public static final String WG_PROPERTY_NOT_SUPPORTED = "WG_PROPERTY_NOT_SUPPORTED";
0264: public static final String WG_DONT_DO_ANYTHING_WITH_NS = "WG_DONT_DO_ANYTHING_WITH_NS";
0265: public static final String WG_SECURITY_EXCEPTION = "WG_SECURITY_EXCEPTION";
0266: public static final String WG_QUO_NO_LONGER_DEFINED = "WG_QUO_NO_LONGER_DEFINED";
0267: public static final String WG_NEED_DERIVED_OBJECT_TO_IMPLEMENT_NODETEST = "WG_NEED_DERIVED_OBJECT_TO_IMPLEMENT_NODETEST";
0268: public static final String WG_FUNCTION_TOKEN_NOT_FOUND = "WG_FUNCTION_TOKEN_NOT_FOUND";
0269: public static final String WG_COULDNOT_FIND_FUNCTION = "WG_COULDNOT_FIND_FUNCTION";
0270: public static final String WG_CANNOT_MAKE_URL_FROM = "WG_CANNOT_MAKE_URL_FROM";
0271: public static final String WG_EXPAND_ENTITIES_NOT_SUPPORTED = "WG_EXPAND_ENTITIES_NOT_SUPPORTED";
0272: public static final String WG_ILLEGAL_VARIABLE_REFERENCE = "WG_ILLEGAL_VARIABLE_REFERENCE";
0273: public static final String WG_UNSUPPORTED_ENCODING = "WG_UNSUPPORTED_ENCODING";
0274:
0275: // Error messages...
0276:
0277: /**
0278: * Get the association list.
0279: *
0280: * @return The association list.
0281: */
0282: public Object[][] getContents() {
0283: return new Object[][] {
0284:
0285: /** Field ERROR0000 */
0286:
0287: // public static final int ERROR0000 = 0;
0288: { "ERROR0000", "{0}" },
0289:
0290: /** Field ER_CURRENT_NOT_ALLOWED_IN_MATCH */
0291: // public static final int ER_CURRENT_NOT_ALLOWED_IN_MATCH = 1;
0292: { ER_CURRENT_NOT_ALLOWED_IN_MATCH,
0293: "Funkce current() nen\u00ed ve vzorku shody povolena!" },
0294:
0295: /** Field ER_CURRENT_TAKES_NO_ARGS */
0296: //public static final int ER_CURRENT_TAKES_NO_ARGS = 2;
0297: { ER_CURRENT_TAKES_NO_ARGS,
0298: "Funkce current() neakceptuje argumenty!" },
0299:
0300: /** Field ER_DOCUMENT_REPLACED */
0301: // public static final int ER_DOCUMENT_REPLACED = 3;
0302: {
0303: ER_DOCUMENT_REPLACED,
0304: "implementace funkce document() byla nahrazena funkc\u00ed org.apache.xalan.xslt.FuncDocument!" },
0305:
0306: /** Field ER_CONTEXT_HAS_NO_OWNERDOC */
0307: // public static final int ER_CONTEXT_HAS_NO_OWNERDOC = 4;
0308: { ER_CONTEXT_HAS_NO_OWNERDOC,
0309: "Parametr context nem\u00e1 dokument vlastn\u00edka!" },
0310:
0311: /** Field ER_LOCALNAME_HAS_TOO_MANY_ARGS */
0312: // public static final int ER_LOCALNAME_HAS_TOO_MANY_ARGS = 5;
0313: { ER_LOCALNAME_HAS_TOO_MANY_ARGS,
0314: "P\u0159\u00edli\u0161 mnoho argument\u016f funkce local-name()." },
0315:
0316: /** Field ER_NAMESPACEURI_HAS_TOO_MANY_ARGS */
0317: //public static final int ER_NAMESPACEURI_HAS_TOO_MANY_ARGS = 6;
0318: { ER_NAMESPACEURI_HAS_TOO_MANY_ARGS,
0319: "P\u0159\u00edli\u0161 mnoho argument\u016f funkce namespace-uri()." },
0320:
0321: /** Field ER_NORMALIZESPACE_HAS_TOO_MANY_ARGS */
0322: // public static final int ER_NORMALIZESPACE_HAS_TOO_MANY_ARGS = 7;
0323: { ER_NORMALIZESPACE_HAS_TOO_MANY_ARGS,
0324: "P\u0159\u00edli\u0161 mnoho argument\u016f funkce normalize-space()." },
0325:
0326: /** Field ER_NUMBER_HAS_TOO_MANY_ARGS */
0327: // public static final int ER_NUMBER_HAS_TOO_MANY_ARGS = 8;
0328: { ER_NUMBER_HAS_TOO_MANY_ARGS,
0329: "P\u0159\u00edli\u0161 mnoho argument\u016f funkce number()." },
0330:
0331: /** Field ER_NAME_HAS_TOO_MANY_ARGS */
0332: // public static final int ER_NAME_HAS_TOO_MANY_ARGS = 9;
0333: { ER_NAME_HAS_TOO_MANY_ARGS,
0334: "P\u0159\u00edli\u0161 mnoho argument\u016f funkce name()." },
0335:
0336: /** Field ER_STRING_HAS_TOO_MANY_ARGS */
0337: // public static final int ER_STRING_HAS_TOO_MANY_ARGS = 10;
0338: { ER_STRING_HAS_TOO_MANY_ARGS,
0339: "P\u0159\u00edli\u0161 mnoho argument\u016f funkce string()." },
0340:
0341: /** Field ER_STRINGLENGTH_HAS_TOO_MANY_ARGS */
0342: // public static final int ER_STRINGLENGTH_HAS_TOO_MANY_ARGS = 11;
0343: { ER_STRINGLENGTH_HAS_TOO_MANY_ARGS,
0344: "P\u0159\u00edli\u0161 mnoho argument\u016f funkce string-length()." },
0345:
0346: /** Field ER_TRANSLATE_TAKES_3_ARGS */
0347: // public static final int ER_TRANSLATE_TAKES_3_ARGS = 12;
0348: { ER_TRANSLATE_TAKES_3_ARGS,
0349: "Funkce translate() akceptuje t\u0159i argumenty!" },
0350:
0351: /** Field ER_UNPARSEDENTITYURI_TAKES_1_ARG */
0352: // public static final int ER_UNPARSEDENTITYURI_TAKES_1_ARG = 13;
0353: { ER_UNPARSEDENTITYURI_TAKES_1_ARG,
0354: "Funkce unparsed-entity-uri mus\u00ed akceptovat jeden argument!" },
0355:
0356: /** Field ER_NAMESPACEAXIS_NOT_IMPLEMENTED */
0357: // public static final int ER_NAMESPACEAXIS_NOT_IMPLEMENTED = 14;
0358: { ER_NAMESPACEAXIS_NOT_IMPLEMENTED,
0359: "Obor n\u00e1zv\u016f axis nebyl je\u0161t\u011b implementov\u00e1n!" },
0360:
0361: /** Field ER_UNKNOWN_AXIS */
0362: // public static final int ER_UNKNOWN_AXIS = 15;
0363: { ER_UNKNOWN_AXIS,
0364: "nezn\u00e1m\u00fd parametr axis: {0}" },
0365:
0366: /** Field ER_UNKNOWN_MATCH_OPERATION */
0367: // public static final int ER_UNKNOWN_MATCH_OPERATION = 16;
0368: { ER_UNKNOWN_MATCH_OPERATION,
0369: "nezn\u00e1m\u00e1 operace shody!" },
0370:
0371: /** Field ER_INCORRECT_ARG_LENGTH */
0372: // public static final int ER_INCORRECT_ARG_LENGTH = 17;
0373: { ER_INCORRECT_ARG_LENGTH,
0374: "Nespr\u00e1vn\u00e1 d\u00e9lka argumentu testu uzlu processing-instruction()!" },
0375:
0376: /** Field ER_CANT_CONVERT_TO_NUMBER */
0377: // public static final int ER_CANT_CONVERT_TO_NUMBER = 18;
0378: { ER_CANT_CONVERT_TO_NUMBER,
0379: "{0} nelze p\u0159ev\u00e9st na parametr number" },
0380:
0381: /** Field ER_CANT_CONVERT_TO_NODELIST */
0382: //public static final int ER_CANT_CONVERT_TO_NODELIST = 19;
0383: { ER_CANT_CONVERT_TO_NODELIST,
0384: "{0} nelze p\u0159ev\u00e9st na parametr NodeList!" },
0385:
0386: /** Field ER_CANT_CONVERT_TO_MUTABLENODELIST */
0387: // public static final int ER_CANT_CONVERT_TO_MUTABLENODELIST = 20;
0388: { ER_CANT_CONVERT_TO_MUTABLENODELIST,
0389: "{0} nelze p\u0159ev\u00e9st na parametr NodeSetDTM!" },
0390:
0391: /** Field ER_CANT_CONVERT_TO_TYPE */
0392: // public static final int ER_CANT_CONVERT_TO_TYPE = 21;
0393: { ER_CANT_CONVERT_TO_TYPE,
0394: "{0} nelze p\u0159ev\u00e9st na parametr type#{1}" },
0395:
0396: /** Field ER_EXPECTED_MATCH_PATTERN */
0397: // public static final int ER_EXPECTED_MATCH_PATTERN = 22;
0398: { ER_EXPECTED_MATCH_PATTERN,
0399: "Funkce getMatchScore o\u010dek\u00e1v\u00e1 parametr!" },
0400:
0401: /** Field ER_COULDNOT_GET_VAR_NAMED */
0402: // public static final int ER_COULDNOT_GET_VAR_NAMED = 23;
0403: { ER_COULDNOT_GET_VAR_NAMED,
0404: "Nelze z\u00edskat prom\u011bnnou s n\u00e1zvem {0}" },
0405:
0406: /** Field ER_UNKNOWN_OPCODE */
0407: // public static final int ER_UNKNOWN_OPCODE = 24;
0408: { ER_UNKNOWN_OPCODE,
0409: "Chyba! Nezn\u00e1m\u00fd k\u00f3d operace: {0}" },
0410:
0411: /** Field ER_EXTRA_ILLEGAL_TOKENS */
0412: // public static final int ER_EXTRA_ILLEGAL_TOKENS = 25;
0413: { ER_EXTRA_ILLEGAL_TOKENS,
0414: "Dal\u0161\u00ed nepovolen\u00e9 tokeny: {0}" },
0415:
0416: /** Field ER_EXPECTED_DOUBLE_QUOTE */
0417: // public static final int ER_EXPECTED_DOUBLE_QUOTE = 26;
0418: {
0419: ER_EXPECTED_DOUBLE_QUOTE,
0420: "nespr\u00e1vn\u011b uveden\u00fd liter\u00e1l... Byly o\u010dek\u00e1v\u00e1ny uvozovky!" },
0421:
0422: /** Field ER_EXPECTED_SINGLE_QUOTE */
0423: // public static final int ER_EXPECTED_SINGLE_QUOTE = 27;
0424: {
0425: ER_EXPECTED_SINGLE_QUOTE,
0426: "nespr\u00e1vn\u011b uveden\u00fd liter\u00e1l... Byly o\u010dek\u00e1v\u00e1ny jednoduch\u00e9 uvozovky!" },
0427:
0428: /** Field ER_EMPTY_EXPRESSION */
0429: // public static final int ER_EMPTY_EXPRESSION = 28;
0430: { ER_EMPTY_EXPRESSION, "Pr\u00e1zdn\u00fd v\u00fdraz!" },
0431:
0432: /** Field ER_EXPECTED_BUT_FOUND */
0433: // public static final int ER_EXPECTED_BUT_FOUND = 29;
0434: { ER_EXPECTED_BUT_FOUND,
0435: "O\u010dek\u00e1v\u00e1no: {0}, ale nalezeno: {1}" },
0436:
0437: /** Field ER_INCORRECT_PROGRAMMER_ASSERTION */
0438: // public static final int ER_INCORRECT_PROGRAMMER_ASSERTION = 30;
0439: { ER_INCORRECT_PROGRAMMER_ASSERTION,
0440: "Nespr\u00e1vn\u00e9 tvrzen\u00ed program\u00e1tora! - {0}" },
0441:
0442: /** Field ER_BOOLEAN_ARG_NO_LONGER_OPTIONAL */
0443: // public static final int ER_BOOLEAN_ARG_NO_LONGER_OPTIONAL = 31;
0444: {
0445: ER_BOOLEAN_ARG_NO_LONGER_OPTIONAL,
0446: "booleovsk\u00fd(...) argument ji\u017e nen\u00ed v n\u00e1vrhu 19990709 XPath voliteln\u00fd." },
0447:
0448: /** Field ER_FOUND_COMMA_BUT_NO_PRECEDING_ARG */
0449: // public static final int ER_FOUND_COMMA_BUT_NO_PRECEDING_ARG = 32;
0450: { ER_FOUND_COMMA_BUT_NO_PRECEDING_ARG,
0451: "Byl nalezen znak ',' bez p\u0159edchoz\u00edho argumentu!" },
0452:
0453: /** Field ER_FOUND_COMMA_BUT_NO_FOLLOWING_ARG */
0454: // public static final int ER_FOUND_COMMA_BUT_NO_FOLLOWING_ARG = 33;
0455: { ER_FOUND_COMMA_BUT_NO_FOLLOWING_ARG,
0456: "Byl nalezen znak ',' bez n\u00e1sleduj\u00edc\u00edho argumentu!" },
0457:
0458: /** Field ER_PREDICATE_ILLEGAL_SYNTAX */
0459: // public static final int ER_PREDICATE_ILLEGAL_SYNTAX = 34;
0460: {
0461: ER_PREDICATE_ILLEGAL_SYNTAX,
0462: "V\u00fdraz '..[predicate]' nebo '.[predicate]' m\u00e1 nespr\u00e1vnou syntaxi. Pou\u017eijte m\u00edsto toho 'self::node()[predicate]'." },
0463:
0464: /** Field ER_ILLEGAL_AXIS_NAME */
0465: // public static final int ER_ILLEGAL_AXIS_NAME = 35;
0466: { ER_ILLEGAL_AXIS_NAME,
0467: "nepovolen\u00fd n\u00e1zev osy: {0}" },
0468:
0469: /** Field ER_UNKNOWN_NODETYPE */
0470: // public static final int ER_UNKNOWN_NODETYPE = 36;
0471: { ER_UNKNOWN_NODETYPE,
0472: "Nezn\u00e1m\u00fd typ uzlu: {0}" },
0473:
0474: /** Field ER_PATTERN_LITERAL_NEEDS_BE_QUOTED */
0475: // public static final int ER_PATTERN_LITERAL_NEEDS_BE_QUOTED = 37;
0476: { ER_PATTERN_LITERAL_NEEDS_BE_QUOTED,
0477: "Je nutno uv\u00e9st vzorek liter\u00e1lu ({0})!" },
0478:
0479: /** Field ER_COULDNOT_BE_FORMATTED_TO_NUMBER */
0480: // public static final int ER_COULDNOT_BE_FORMATTED_TO_NUMBER = 38;
0481: { ER_COULDNOT_BE_FORMATTED_TO_NUMBER,
0482: "{0} nelze zform\u00e1tovat jako \u010d\u00edslo!" },
0483:
0484: /** Field ER_COULDNOT_CREATE_XMLPROCESSORLIAISON */
0485: // public static final int ER_COULDNOT_CREATE_XMLPROCESSORLIAISON = 39;
0486: { ER_COULDNOT_CREATE_XMLPROCESSORLIAISON,
0487: "Nelze vytvo\u0159it prvek XML TransformerFactory Liaison: {0}" },
0488:
0489: /** Field ER_DIDNOT_FIND_XPATH_SELECT_EXP */
0490: // public static final int ER_DIDNOT_FIND_XPATH_SELECT_EXP = 40;
0491: { ER_DIDNOT_FIND_XPATH_SELECT_EXP,
0492: "Chyba! Nebyl nalezen v\u00fdraz v\u00fdb\u011bru xpath (-select)." },
0493:
0494: /** Field ER_COULDNOT_FIND_ENDOP_AFTER_OPLOCATIONPATH */
0495: // public static final int ER_COULDNOT_FIND_ENDOP_AFTER_OPLOCATIONPATH = 41;
0496: { ER_COULDNOT_FIND_ENDOP_AFTER_OPLOCATIONPATH,
0497: "Chyba! Nebyl nalezen v\u00fdraz ENDOP po OP_LOCATIONPATH" },
0498:
0499: /** Field ER_ERROR_OCCURED */
0500: // public static final int ER_ERROR_OCCURED = 42;
0501: { ER_ERROR_OCCURED, "Do\u0161lo k chyb\u011b!" },
0502:
0503: /** Field ER_ILLEGAL_VARIABLE_REFERENCE */
0504: // public static final int ER_ILLEGAL_VARIABLE_REFERENCE = 43;
0505: {
0506: ER_ILLEGAL_VARIABLE_REFERENCE,
0507: "Odkaz VariableReference uveden k prom\u011bnn\u00e9 mimo kontext nebo bez definice! N\u00e1zev = {0}" },
0508:
0509: /** Field ER_AXES_NOT_ALLOWED */
0510: // public static final int ER_AXES_NOT_ALLOWED = 44;
0511: {
0512: ER_AXES_NOT_ALLOWED,
0513: "Ve vzorc\u00edch shody jsou povoleny pouze osy child:: a attribute::! Nepovolen\u00e9 osy = {0}" },
0514:
0515: /** Field ER_KEY_HAS_TOO_MANY_ARGS */
0516: // public static final int ER_KEY_HAS_TOO_MANY_ARGS = 45;
0517: { ER_KEY_HAS_TOO_MANY_ARGS,
0518: "nespr\u00e1vn\u00fd po\u010det argument\u016f parametru key()." },
0519:
0520: /** Field ER_COUNT_TAKES_1_ARG */
0521: // public static final int ER_COUNT_TAKES_1_ARG = 46;
0522: { ER_COUNT_TAKES_1_ARG,
0523: "Funkce count mus\u00ed obsahovat jeden argument!" },
0524:
0525: /** Field ER_COULDNOT_FIND_FUNCTION */
0526: // public static final int ER_COULDNOT_FIND_FUNCTION = 47;
0527: { ER_COULDNOT_FIND_FUNCTION,
0528: "Nelze nal\u00e9zt funkci: {0}" },
0529:
0530: /** Field ER_UNSUPPORTED_ENCODING */
0531: // public static final int ER_UNSUPPORTED_ENCODING = 48;
0532: { ER_UNSUPPORTED_ENCODING,
0533: "Nepodporovan\u00e9 k\u00f3dov\u00e1n\u00ed: {0}" },
0534:
0535: /** Field ER_PROBLEM_IN_DTM_NEXTSIBLING */
0536: // public static final int ER_PROBLEM_IN_DTM_NEXTSIBLING = 49;
0537: {
0538: ER_PROBLEM_IN_DTM_NEXTSIBLING,
0539: "Ve funkci getNextSibling do\u0161lo v DTM k chyb\u011b... Prob\u00edh\u00e1 pokus o obnovu" },
0540:
0541: /** Field ER_CANNOT_WRITE_TO_EMPTYNODELISTIMPL */
0542: // public static final int ER_CANNOT_WRITE_TO_EMPTYNODELISTIMPL = 50;
0543: { ER_CANNOT_WRITE_TO_EMPTYNODELISTIMPL,
0544: "Chyba program\u00e1tora: Do funkce EmptyNodeList nelze zapisovat." },
0545:
0546: /** Field ER_SETDOMFACTORY_NOT_SUPPORTED */
0547: // public static final int ER_SETDOMFACTORY_NOT_SUPPORTED = 51;
0548: { ER_SETDOMFACTORY_NOT_SUPPORTED,
0549: "Funkce XPathContext nepodporuje funkci setDOMFactory!" },
0550:
0551: /** Field ER_PREFIX_MUST_RESOLVE */
0552: // public static final int ER_PREFIX_MUST_RESOLVE = 52;
0553: {
0554: ER_PREFIX_MUST_RESOLVE,
0555: "P\u0159edponu mus\u00ed b\u00fdt mo\u017eno p\u0159elo\u017eit do oboru n\u00e1zv\u016f: {0}" },
0556:
0557: /** Field ER_PARSE_NOT_SUPPORTED */
0558: // public static final int ER_PARSE_NOT_SUPPORTED = 53;
0559: {
0560: ER_PARSE_NOT_SUPPORTED,
0561: "Funkce XPathContext nepodporuje anal\u00fdzu (InputSource source)! {0} - nelze otev\u0159\u00edt" },
0562:
0563: /** Field ER_CREATEDOCUMENT_NOT_SUPPORTED */
0564: // public static final int ER_CREATEDOCUMENT_NOT_SUPPORTED = 54;
0565: //{ ER_CREATEDOCUMENT_NOT_SUPPORTED,
0566: // "createDocument() not supported in XPathContext!"},
0567: /** Field ER_CHILD_HAS_NO_OWNER_DOCUMENT */
0568: // public static final int ER_CHILD_HAS_NO_OWNER_DOCUMENT = 55;
0569: //{ ER_CHILD_HAS_NO_OWNER_DOCUMENT,
0570: // "Attribute child does not have an owner document!"},
0571: /** Field ER_CHILD_HAS_NO_OWNER_DOCUMENT_ELEMENT */
0572: // public static final int ER_CHILD_HAS_NO_OWNER_DOCUMENT_ELEMENT = 56;
0573: //{ ER_CHILD_HAS_NO_OWNER_DOCUMENT_ELEMENT,
0574: // "Attribute child does not have an owner document element!"},
0575: /** Field ER_SAX_API_NOT_HANDLED */
0576: // public static final int ER_SAX_API_NOT_HANDLED = 57;
0577: { ER_SAX_API_NOT_HANDLED,
0578: "Znaky SAX API (char ch[]... nejsou v DTM zpracov\u00e1v\u00e1ny!" },
0579:
0580: /** Field ER_IGNORABLE_WHITESPACE_NOT_HANDLED */
0581: //public static final int ER_IGNORABLE_WHITESPACE_NOT_HANDLED = 58;
0582: {
0583: ER_IGNORABLE_WHITESPACE_NOT_HANDLED,
0584: "Funkce ignorableWhitespace(char ch[]... nen\u00ed v DTM zpracov\u00e1v\u00e1na!" },
0585:
0586: /** Field ER_DTM_CANNOT_HANDLE_NODES */
0587: // public static final int ER_DTM_CANNOT_HANDLE_NODES = 59;
0588: { ER_DTM_CANNOT_HANDLE_NODES,
0589: "Funkce DTMLiaison nem\u016f\u017ee zpracov\u00e1vat uzly typu {0}" },
0590:
0591: /** Field ER_XERCES_CANNOT_HANDLE_NODES */
0592: // public static final int ER_XERCES_CANNOT_HANDLE_NODES = 60;
0593: { ER_XERCES_CANNOT_HANDLE_NODES,
0594: "Funkce DOM2Helper nem\u016f\u017ee zpracov\u00e1vat uzly typu {0}" },
0595:
0596: /** Field ER_XERCES_PARSE_ERROR_DETAILS */
0597: // public static final int ER_XERCES_PARSE_ERROR_DETAILS = 61;
0598: { ER_XERCES_PARSE_ERROR_DETAILS,
0599: "Chyba funkce DOM2Helper.parse: SystemID - {0} \u0159\u00e1dek - {1}" },
0600:
0601: /** Field ER_XERCES_PARSE_ERROR */
0602: // public static final int ER_XERCES_PARSE_ERROR = 62;
0603: { ER_XERCES_PARSE_ERROR,
0604: "Chyba funkce DOM2Helper.parse" },
0605:
0606: /** Field ER_CANT_OUTPUT_TEXT_BEFORE_DOC */
0607: // public static final int ER_CANT_OUTPUT_TEXT_BEFORE_DOC = 63;
0608: //{ ER_CANT_OUTPUT_TEXT_BEFORE_DOC,
0609: // "Warning: can't output text before document element! Ignoring..."},
0610: /** Field ER_CANT_HAVE_MORE_THAN_ONE_ROOT */
0611: // public static final int ER_CANT_HAVE_MORE_THAN_ONE_ROOT = 64;
0612: //{ ER_CANT_HAVE_MORE_THAN_ONE_ROOT,
0613: // "Can't have more than one root on a DOM!"},
0614: /** Field ER_INVALID_UTF16_SURROGATE */
0615: // public static final int ER_INVALID_UTF16_SURROGATE = 65;
0616: { ER_INVALID_UTF16_SURROGATE,
0617: "Byla zji\u0161t\u011bna neplatn\u00e1 n\u00e1hrada UTF-16: {0} ?" },
0618:
0619: /** Field ER_OIERROR */
0620: //public static final int ER_OIERROR = 66;
0621: { ER_OIERROR, "Chyba vstupu/v\u00fdstupu" },
0622:
0623: /** Field ER_CANNOT_CREATE_URL */
0624: //public static final int ER_CANNOT_CREATE_URL = 67;
0625: { ER_CANNOT_CREATE_URL,
0626: "Nelze vytvo\u0159it url pro: {0}" },
0627:
0628: /** Field ER_XPATH_READOBJECT */
0629: // public static final int ER_XPATH_READOBJECT = 68;
0630: { ER_XPATH_READOBJECT,
0631: "Ve funkci XPath.readObject: {0}" },
0632:
0633: /** Field ER_FUNCTION_TOKEN_NOT_FOUND */
0634: // public static final int ER_FUNCTION_TOKEN_NOT_FOUND = 69;
0635: { ER_FUNCTION_TOKEN_NOT_FOUND,
0636: "nebyl nalezen token funkce." },
0637:
0638: /** Argument 'localName' is null */
0639: // public static final int ER_ARG_LOCALNAME_NULL = 70;
0640: //{ ER_ARG_LOCALNAME_NULL,
0641: // "Argument 'localName' is null"},
0642: /** Can not deal with XPath type: */
0643: // public static final int ER_CANNOT_DEAL_XPATH_TYPE = 71;
0644: { ER_CANNOT_DEAL_XPATH_TYPE,
0645: "Nelze pracovat s typem XPath: {0}" },
0646:
0647: /** This NodeSet is not mutable */
0648: // public static final int ER_NODESET_NOT_MUTABLE = 72;
0649: { ER_NODESET_NOT_MUTABLE,
0650: "Tento prvek NodeSet nelze m\u011bnit" },
0651:
0652: /** This NodeSetDTM is not mutable */
0653: // public static final int ER_NODESETDTM_NOT_MUTABLE = 73;
0654: { ER_NODESETDTM_NOT_MUTABLE,
0655: "Tento prvek NodeSetDTM nelze m\u011bnit" },
0656:
0657: /** Variable not resolvable: */
0658: // public static final int ER_VAR_NOT_RESOLVABLE = 74;
0659: { ER_VAR_NOT_RESOLVABLE,
0660: "Prom\u011bnnou nelze p\u0159elo\u017eit: {0}" },
0661:
0662: /** Null error handler */
0663: // public static final int ER_NULL_ERROR_HANDLER = 75;
0664: { ER_NULL_ERROR_HANDLER,
0665: "Obslu\u017en\u00fd program pro zpracov\u00e1n\u00ed chyb hodnoty null" },
0666:
0667: /** Programmer's assertion: unknown opcode */
0668: // public static final int ER_PROG_ASSERT_UNKNOWN_OPCODE = 76;
0669: { ER_PROG_ASSERT_UNKNOWN_OPCODE,
0670: "Tvrzen\u00ed program\u00e1tora: nezn\u00e1m\u00fd k\u00f3d operace: {0}" },
0671:
0672: /** 0 or 1 */
0673: // public static final int ER_ZERO_OR_ONE = 77;
0674: { ER_ZERO_OR_ONE, "0 nebo 1" },
0675:
0676: /** rtf() not supported by XRTreeFragSelectWrapper */
0677: //public static final int ER_RTF_NOT_SUPPORTED_XRTREEFRAGSELECTWRAPPER = 78;
0678: { ER_RTF_NOT_SUPPORTED_XRTREEFRAGSELECTWRAPPER,
0679: "Funkce XRTreeFragSelectWrapper nepodporuje rtf()" },
0680:
0681: /** asNodeIterator() not supported by XRTreeFragSelectWrapper */
0682: //public static final int ER_ASNODEITERATOR_NOT_SUPPORTED_XRTREEFRAGSELECTWRAPPER = 79;
0683: { ER_RTF_NOT_SUPPORTED_XRTREEFRAGSELECTWRAPPER,
0684: "Funkce XRTreeFragSelectWrapper nepodporuje asNodeIterator()" },
0685:
0686: /** fsb() not supported for XStringForChars */
0687: // public static final int ER_FSB_NOT_SUPPORTED_XSTRINGFORCHARS = 80;
0688: { ER_FSB_NOT_SUPPORTED_XSTRINGFORCHARS,
0689: "Funkce XStringForChars nepodporuje funkci fsb()" },
0690:
0691: /** Could not find variable with the name of */
0692: // public static final int ER_COULD_NOT_FIND_VAR = 81;
0693: { ER_COULD_NOT_FIND_VAR,
0694: "Nelze nal\u00e9zt prom\u011bnnou s n\u00e1zvem {0}" },
0695:
0696: /** XStringForChars can not take a string for an argument */
0697: // public static final int ER_XSTRINGFORCHARS_CANNOT_TAKE_STRING = 82;
0698: { ER_XSTRINGFORCHARS_CANNOT_TAKE_STRING,
0699: "Argumentem funkce XStringForChars nem\u016f\u017ee b\u00fdt \u0159et\u011bzec" },
0700:
0701: /** The FastStringBuffer argument can not be null */
0702: // public static final int ER_FASTSTRINGBUFFER_CANNOT_BE_NULL = 83;
0703: { ER_FASTSTRINGBUFFER_CANNOT_BE_NULL,
0704: "Argument funkce FastStringBuffer nem\u016f\u017ee m\u00edt hodnotu null" },
0705:
0706: /* MANTIS_XALAN CHANGE: BEGIN */
0707: /** 2 or 3 */
0708: // public static final int ER_TWO_OR_THREE = 84;
0709: { ER_TWO_OR_THREE, "2 nebo 3" },
0710:
0711: /** Variable accessed before it is bound! */
0712: // public static final int ER_VARIABLE_ACCESSED_BEFORE_BIND = 85;
0713: {
0714: ER_VARIABLE_ACCESSED_BEFORE_BIND,
0715: "P\u0159\u00edstup k prom\u011bnn\u00e9 p\u0159edt\u00edm, ne\u017e je z\u00e1vazn\u00e1!" },
0716:
0717: /** XStringForFSB can not take a string for an argument! */
0718: // public static final int ER_FSB_CANNOT_TAKE_STRING = 86;
0719: { ER_FSB_CANNOT_TAKE_STRING,
0720: "Argumentem funkce XStringForFSB nem\u016f\u017ee b\u00fdt \u0159et\u011bzec!" },
0721:
0722: /** Error! Setting the root of a walker to null! */
0723: // public static final int ER_SETTING_WALKER_ROOT_TO_NULL = 87;
0724: { ER_SETTING_WALKER_ROOT_TO_NULL,
0725: "\n !!!! Chyba! Nastaven\u00ed ko\u0159ene objektu walker na hodnotu null!!!" },
0726:
0727: /** This NodeSetDTM can not iterate to a previous node! */
0728: // public static final int ER_NODESETDTM_CANNOT_ITERATE = 88;
0729: {
0730: ER_NODESETDTM_CANNOT_ITERATE,
0731: "Tato funkce NodeSetDTM nem\u016f\u017ee b\u00fdt stejn\u00e1 jako p\u0159edch\u00e1zej\u00edc\u00ed uzel!" },
0732:
0733: /** This NodeSet can not iterate to a previous node! */
0734: // public static final int ER_NODESET_CANNOT_ITERATE = 89;
0735: {
0736: ER_NODESET_CANNOT_ITERATE,
0737: "Tato funkce NodeSet nem\u016f\u017ee b\u00fdt stejn\u00e1 jako p\u0159edch\u00e1zej\u00edc\u00ed uzel!" },
0738:
0739: /** This NodeSetDTM can not do indexing or counting functions! */
0740: // public static final int ER_NODESETDTM_CANNOT_INDEX = 90;
0741: {
0742: ER_NODESETDTM_CANNOT_INDEX,
0743: "Tato funkce NodeSetDTM nem\u016f\u017ee prov\u00e1d\u011bt indexovac\u00ed nebo po\u010detn\u00ed funkce!" },
0744:
0745: /** This NodeSet can not do indexing or counting functions! */
0746: // public static final int ER_NODESET_CANNOT_INDEX = 91;
0747: {
0748: ER_NODESET_CANNOT_INDEX,
0749: "Tato funkce NodeSet nem\u016f\u017ee prov\u00e1d\u011bt indexovac\u00ed nebo po\u010detn\u00ed funkce!" },
0750:
0751: /** Can not call setShouldCacheNodes after nextNode has been called! */
0752: // public static final int ER_CANNOT_CALL_SETSHOULDCACHENODE = 92;
0753: {
0754: ER_CANNOT_CALL_SETSHOULDCACHENODE,
0755: "Nelze volat funkci setShouldCacheNodes pot\u00e9, co byla vol\u00e1na funkce nextNode!" },
0756:
0757: /** {0} only allows {1} arguments */
0758: // public static final int ER_ONLY_ALLOWS = 93;
0759: { ER_ONLY_ALLOWS,
0760: "{0} povoluje pouze {1} argument\u016f" },
0761:
0762: /** Programmer's assertion in getNextStepPos: unknown stepType: {0} */
0763: // public static final int ER_UNKNOWN_STEP = 94;
0764: {
0765: ER_UNKNOWN_STEP,
0766: "Tvrzen\u00ed program\u00e1tora v getNextStepPos: nezn\u00e1m\u00fd stepType: {0}" },
0767:
0768: //Note to translators: A relative location path is a form of XPath expression.
0769: // The message indicates that such an expression was expected following the
0770: // characters '/' or '//', but was not found.
0771:
0772: /** Problem with RelativeLocationPath */
0773: // public static final int ER_EXPECTED_REL_LOC_PATH = 95;
0774: {
0775: ER_EXPECTED_REL_LOC_PATH,
0776: "Po tokenu '/' nebo '//' byla o\u010dek\u00e1v\u00e1na cesta relativn\u00edho um\u00edst\u011bn\u00ed." },
0777:
0778: // Note to translators: A location path is a form of XPath expression.
0779: // The message indicates that syntactically such an expression was expected,but
0780: // the characters specified by the substitution text were encountered instead.
0781:
0782: /** Problem with LocationPath */
0783: // public static final int ER_EXPECTED_LOC_PATH = 96;
0784: {
0785: ER_EXPECTED_LOC_PATH,
0786: "O\u010dek\u00e1vala se cesta um\u00edst\u011bn\u00ed, av\u0161ak byl zaznamen\u00e1n n\u00e1sleduj\u00edc\u00ed token\u003a {0}" },
0787:
0788: // Note to translators: A location step is part of an XPath expression.
0789: // The message indicates that syntactically such an expression was expected
0790: // following the specified characters.
0791:
0792: /** Problem with Step */
0793: // public static final int ER_EXPECTED_LOC_STEP = 97;
0794: {
0795: ER_EXPECTED_LOC_STEP,
0796: "Po tokenu '/' nebo '//' byl o\u010dek\u00e1v\u00e1n krok um\u00edst\u011bn\u00ed" },
0797:
0798: // Note to translators: A node test is part of an XPath expression that is
0799: // used to test for particular kinds of nodes. In this case, a node test that
0800: // consists of an NCName followed by a colon and an asterisk or that consists
0801: // of a QName was expected, but was not found.
0802:
0803: /** Problem with NodeTest */
0804: // public static final int ER_EXPECTED_NODE_TEST = 98;
0805: {
0806: ER_EXPECTED_NODE_TEST,
0807: "Byl o\u010dek\u00e1v\u00e1n test uzlu, kter\u00fd odpov\u00edd\u00e1 bu\u010f prvk\u016fm NCName:* nebo QName." },
0808:
0809: // Note to translators: A step pattern is part of an XPath expression.
0810: // The message indicates that syntactically such an expression was expected,
0811: // but the specified character was found in the expression instead.
0812:
0813: /** Expected step pattern */
0814: // public static final int ER_EXPECTED_STEP_PATTERN = 99;
0815: {
0816: ER_EXPECTED_STEP_PATTERN,
0817: "Byl o\u010dek\u00e1v\u00e1n vzorek kroku, av\u0161ak byl zaznamen\u00e1n znak '/'." },
0818:
0819: // Note to translators: A relative path pattern is part of an XPath expression.
0820: // The message indicates that syntactically such an expression was expected,
0821: // but was not found.
0822:
0823: /** Expected relative path pattern */
0824: // public static final int ER_EXPECTED_REL_PATH_PATTERN = 100;
0825: { ER_EXPECTED_REL_PATH_PATTERN,
0826: "Byl o\u010dek\u00e1v\u00e1n vzorek relativn\u00ed cesty." },
0827:
0828: // Note to translators: A QNAME has the syntactic form [NCName:]NCName
0829: // The localname is the portion after the optional colon; the message indicates
0830: // that there is a problem with that part of the QNAME.
0831:
0832: /** localname in QNAME should be a valid NCName */
0833: // public static final int ER_ARG_LOCALNAME_INVALID = 101;
0834: //{ ER_ARG_LOCALNAME_INVALID,
0835: // "Localname in QNAME should be a valid NCName"},
0836: // Note to translators: A QNAME has the syntactic form [NCName:]NCName
0837: // The prefix is the portion before the optional colon; the message indicates
0838: // that there is a problem with that part of the QNAME.
0839: /** prefix in QNAME should be a valid NCName */
0840: // public static final int ER_ARG_PREFIX_INVALID = 102;
0841: //{ ER_ARG_PREFIX_INVALID,
0842: // "Prefix in QNAME should be a valid NCName"},
0843: // Note to translators: The substitution text is the name of a data type. The
0844: // message indicates that a value of a particular type could not be converted
0845: // to a value of type string.
0846: /** Field ER_CANT_CONVERT_TO_BOOLEAN */
0847: // public static final int ER_CANT_CONVERT_TO_BOOLEAN = 103;
0848: { ER_CANT_CONVERT_TO_BOOLEAN,
0849: "Nelze p\u0159ev\u00e9st {0} na booleovsk\u00fd typ." },
0850:
0851: // Note to translators: Do not translate ANY_UNORDERED_NODE_TYPE and
0852: // FIRST_ORDERED_NODE_TYPE.
0853:
0854: /** Field ER_CANT_CONVERT_TO_SINGLENODE */
0855: //public static final int ER_CANT_CONVERT_TO_SINGLENODE = 104;
0856: {
0857: ER_CANT_CONVERT_TO_SINGLENODE,
0858: "Nelze p\u0159ev\u00e9st {0} na jednoduch\u00fd uzel. Tento zp\u016fsob lze l\u00e9pe pou\u017e\u00edt pro typy ANY_UNORDERED_NODE_TYPE a FIRST_ORDERED_NODE_TYPE." },
0859:
0860: // Note to translators: Do not translate UNORDERED_NODE_SNAPSHOT_TYPE and
0861: // ORDERED_NODE_SNAPSHOT_TYPE.
0862:
0863: /** Field ER_CANT_GET_SNAPSHOT_LENGTH */
0864: // public static final int ER_CANT_GET_SNAPSHOT_LENGTH = 105;
0865: {
0866: ER_CANT_GET_SNAPSHOT_LENGTH,
0867: "Nelze sejmout d\u00e9lku typu: {0}. Tento zp\u016fsob se l\u00e9pe pou\u017e\u00edv\u00e1 pro typy UNORDERED_NODE_SNAPSHOT_TYPE a ORDERED_NODE_SNAPSHOT_TYPE." },
0868:
0869: /** Field ER_NON_ITERATOR_TYPE */
0870: //public static final int ER_NON_ITERATOR_TYPE = 106;
0871: {
0872: ER_NON_ITERATOR_TYPE,
0873: "Nelze prov\u00e9st iteraci prost\u0159ednictv\u00edm typu, kter\u00fd nen\u00ed iter\u00e1tor: {0}" },
0874:
0875: // Note to translators: This message indicates that the document being operated
0876: // upon changed, so the iterator object that was being used to traverse the
0877: // document has now become invalid.
0878:
0879: /** Field ER_DOC_MUTATED */
0880: // public static final int ER_DOC_MUTATED = 107;
0881: {
0882: ER_DOC_MUTATED,
0883: "Dokument se od doby, kdy byly vr\u00e1ceny v\u00fdsledky, zm\u011bnil. Iter\u00e1tor je neplatn\u00fd." },
0884:
0885: /** Field ER_INVALID_XPATH_TYPE */
0886: // public static final int ER_INVALID_XPATH_TYPE = 108;
0887: { ER_INVALID_XPATH_TYPE,
0888: "Neplatn\u00fd argument typu XPath: {0}" },
0889:
0890: /** Field ER_EMPTY_XPATH_RESULT */
0891: // public static final int ER_EMPTY_XPATH_RESULT = 109;
0892: { ER_EMPTY_XPATH_RESULT,
0893: "Pr\u00e1zdn\u00fd objekt v\u00fdsledku XPath" },
0894:
0895: /** Field ER_INCOMPATIBLE_TYPES */
0896: // public static final int ER_INCOMPATIBLE_TYPES = 110;
0897: {
0898: ER_INCOMPATIBLE_TYPES,
0899: "Vr\u00e1cen\u00fd typ: {0} nem\u016f\u017ee b\u00fdt vynucen na ur\u010den\u00fd typ: {1}" },
0900:
0901: /** Field ER_NULL_RESOLVER */
0902: // public static final int ER_NULL_RESOLVER = 111;
0903: {
0904: ER_NULL_RESOLVER,
0905: "Nelze \u0159e\u0161it p\u0159edponu \u0159e\u0161itelem (resolver) s p\u0159edponou hodnoty null." },
0906:
0907: // Note to translators: The substitution text is the name of a data type. The
0908: // message indicates that a value of a particular type could not be converted
0909: // to a value of type string.
0910:
0911: /** Field ER_CANT_CONVERT_TO_STRING */
0912: // public static final int ER_CANT_CONVERT_TO_STRING = 112;
0913: { ER_CANT_CONVERT_TO_STRING,
0914: "Nelze p\u0159ev\u00e9st {0} na \u0159et\u011bzec." },
0915:
0916: // Note to translators: Do not translate snapshotItem,
0917: // UNORDERED_NODE_SNAPSHOT_TYPE and ORDERED_NODE_SNAPSHOT_TYPE.
0918:
0919: /** Field ER_NON_SNAPSHOT_TYPE */
0920: // public static final int ER_NON_SNAPSHOT_TYPE = 113;
0921: {
0922: ER_NON_SNAPSHOT_TYPE,
0923: "Nelze volat snapshotItem na typ: {0}. Tato metoda se pou\u017e\u00edv\u00e1 pro typy UNORDERED_NODE_SNAPSHOT_TYPE a ORDERED_NODE_SNAPSHOT_TYPE." },
0924:
0925: // Note to translators: XPathEvaluator is a Java interface name. An
0926: // XPathEvaluator is created with respect to a particular XML document, and in
0927: // this case the expression represented by this object was being evaluated with
0928: // respect to a context node from a different document.
0929:
0930: /** Field ER_WRONG_DOCUMENT */
0931: // public static final int ER_WRONG_DOCUMENT = 114;
0932: {
0933: ER_WRONG_DOCUMENT,
0934: "Uzel kontextu nepat\u0159\u00ed mezi dokumenty, kter\u00e9 jsou v\u00e1z\u00e1ny k XPathEvaluator." },
0935:
0936: // Note to translators: The XPath expression cannot be evaluated with respect
0937: // to this type of node.
0938: /** Field ER_WRONG_NODETYPE */
0939: // public static final int ER_WRONG_NODETYPE = 115;
0940: { ER_WRONG_NODETYPE,
0941: "Typ uzlu kontextu nen\u00ed podporov\u00e1n." },
0942:
0943: /** Field ER_XPATH_ERROR */
0944: // public static final int ER_XPATH_ERROR = 116;
0945: { ER_XPATH_ERROR,
0946: "Nezn\u00e1m\u00e1 chyba objektu XPath." },
0947:
0948: // Warnings...
0949:
0950: /** Field WG_LOCALE_NAME_NOT_HANDLED */
0951: // public static final int WG_LOCALE_NAME_NOT_HANDLED = 1;
0952: {
0953: WG_LOCALE_NAME_NOT_HANDLED,
0954: "funkce format-number prozat\u00edm nezpracovala n\u00e1zev n\u00e1rodn\u00edho prost\u0159ed\u00ed (locale)!" },
0955:
0956: /** Field WG_PROPERTY_NOT_SUPPORTED */
0957: // public static final int WG_PROPERTY_NOT_SUPPORTED = 2;
0958: { WG_PROPERTY_NOT_SUPPORTED,
0959: "Vlastnost XSL nen\u00ed podporov\u00e1na: {0}" },
0960:
0961: /** Field WG_DONT_DO_ANYTHING_WITH_NS */
0962: // public static final int WG_DONT_DO_ANYTHING_WITH_NS = 3;
0963: {
0964: WG_DONT_DO_ANYTHING_WITH_NS,
0965: "Aktu\u00e1ln\u011b ned\u011blejte nic s oborem n\u00e1zv\u016f {0} vlastnosti: {1}" },
0966:
0967: /** Field WG_SECURITY_EXCEPTION */
0968: // public static final int WG_SECURITY_EXCEPTION = 4;
0969: {
0970: WG_SECURITY_EXCEPTION,
0971: "P\u0159i pokusu o p\u0159\u00edstup k syst\u00e9mov\u00e9 vlastnosti XSL do\u0161lo k v\u00fdjimce SecurityException: {0}" },
0972:
0973: /** Field WG_QUO_NO_LONGER_DEFINED */
0974: // public static final int WG_QUO_NO_LONGER_DEFINED = 5;
0975: { WG_QUO_NO_LONGER_DEFINED,
0976: "Zastaral\u00e1 syntaxe: quo(...) ji\u017e nen\u00ed v XPath definov\u00e1no." },
0977:
0978: /** Field WG_NEED_DERIVED_OBJECT_TO_IMPLEMENT_NODETEST */
0979: // public static final int WG_NEED_DERIVED_OBJECT_TO_IMPLEMENT_NODETEST = 6;
0980: { WG_NEED_DERIVED_OBJECT_TO_IMPLEMENT_NODETEST,
0981: "XPath pot\u0159ebuje k implementaci funkce nodeTest odvozen\u00fd objekt!" },
0982:
0983: /** Field WG_FUNCTION_TOKEN_NOT_FOUND */
0984: // public static final int WG_FUNCTION_TOKEN_NOT_FOUND = 7;
0985: { WG_FUNCTION_TOKEN_NOT_FOUND,
0986: "nebyl nalezen token funkce." },
0987:
0988: /** Field WG_COULDNOT_FIND_FUNCTION */
0989: // public static final int WG_COULDNOT_FIND_FUNCTION = 8;
0990: { WG_COULDNOT_FIND_FUNCTION,
0991: "Nelze nal\u00e9zt funkci: {0}" },
0992:
0993: /** Field WG_CANNOT_MAKE_URL_FROM */
0994: // public static final int WG_CANNOT_MAKE_URL_FROM = 9;
0995: { WG_CANNOT_MAKE_URL_FROM,
0996: "Nelze vytvo\u0159it adresu URL z: {0}" },
0997:
0998: /** Field WG_EXPAND_ENTITIES_NOT_SUPPORTED */
0999: // public static final int WG_EXPAND_ENTITIES_NOT_SUPPORTED = 10;
1000: { WG_EXPAND_ENTITIES_NOT_SUPPORTED,
1001: "Analyz\u00e1tor DTM nepodporuje volbu -E" },
1002:
1003: /** Field WG_ILLEGAL_VARIABLE_REFERENCE */
1004: // public static final int WG_ILLEGAL_VARIABLE_REFERENCE = 11;
1005: {
1006: WG_ILLEGAL_VARIABLE_REFERENCE,
1007: "Odkaz VariableReference uveden k prom\u011bnn\u00e9 mimo kontext nebo bez definice! N\u00e1zev = {0}" },
1008:
1009: /** Field WG_UNSUPPORTED_ENCODING */
1010: // public static final int WG_UNSUPPORTED_ENCODING = 12;
1011: { WG_UNSUPPORTED_ENCODING,
1012: "Nepodporovan\u00e9 k\u00f3dov\u00e1n\u00ed: {0}" },
1013:
1014: // Other miscellaneous text used inside the code...
1015: { "ui_language", "cs" },
1016: { "help_language", "cs" },
1017: { "language", "cs" },
1018: { "BAD_CODE",
1019: "Parametr funkce createMessage je mimo limit" },
1020: { "FORMAT_FAILED",
1021: "P\u0159i vol\u00e1n\u00ed funkce messageFormat do\u0161lo k v\u00fdjimce" },
1022: { "version", ">>>>>>> Verze Xalan " },
1023: { "version2", "<<<<<<<" },
1024: { "yes", "ano" },
1025: { "line", "\u0158\u00e1dek #" },
1026: { "column", "Sloupec #" },
1027: { "xsldone", "XSLProcessor: hotovo" },
1028: { "xpath_option", "volby xpath: " },
1029: { "optionIN", " [-in inputXMLURL]" },
1030: { "optionSelect", " [-select v\u00fdraz xpath]" },
1031: { "optionMatch",
1032: " [-match vzorek shody (pro diagnostiku shody)]" },
1033: { "optionAnyExpr",
1034: "Jinak v\u00fdpis dignostiky provede pouze v\u00fdraz xpath" },
1035: { "noParsermsg1",
1036: "Proces XSL nebyl \u00fasp\u011b\u0161n\u00fd." },
1037: { "noParsermsg2",
1038: "** Nelze naj\u00edt analyz\u00e1tor **" },
1039: { "noParsermsg3", "Zkontrolujte cestu classpath." },
1040: {
1041: "noParsermsg4",
1042: "Nem\u00e1te-li analyz\u00e1tor XML jazyka Java spole\u010dnosti IBM, m\u016f\u017eete si jej st\u00e1hnout z adresy:" },
1043: { "noParsermsg5",
1044: "AlphaWorks: http://www.alphaworks.ibm.com/formula/xml" },
1045: { "gtone", ">1" }, { "zero", "0" }, { "one", "1" },
1046: { "two", "2" }, { "three", "3" }
1047:
1048: };
1049: }
1050:
1051: // ================= INFRASTRUCTURE ======================
1052:
1053: /** Field BAD_CODE */
1054: public static final String BAD_CODE = "BAD_CODE";
1055:
1056: /** Field FORMAT_FAILED */
1057: public static final String FORMAT_FAILED = "FORMAT_FAILED";
1058:
1059: /** Field ERROR_RESOURCES */
1060: public static final String ERROR_RESOURCES = "org.apache.xpath.res.XPATHErrorResources";
1061:
1062: /** Field ERROR_STRING */
1063: public static final String ERROR_STRING = "#chyba";
1064:
1065: /** Field ERROR_HEADER */
1066: public static final String ERROR_HEADER = "Chyba: ";
1067:
1068: /** Field WARNING_HEADER */
1069: public static final String WARNING_HEADER = "Varov\u00e1n\u00ed: ";
1070:
1071: /** Field XSL_HEADER */
1072: public static final String XSL_HEADER = "XSL ";
1073:
1074: /** Field XML_HEADER */
1075: public static final String XML_HEADER = "XML ";
1076:
1077: /** Field QUERY_HEADER */
1078: public static final String QUERY_HEADER = "PATTERN ";
1079:
1080: /**
1081: * Return a named ResourceBundle for a particular locale. This method mimics the behavior
1082: * of ResourceBundle.getBundle().
1083: *
1084: * @param className Name of local-specific subclass.
1085: * @return the ResourceBundle
1086: * @throws MissingResourceException
1087: */
1088: public static final XPATHErrorResources loadResourceBundle(
1089: String className) throws MissingResourceException {
1090:
1091: Locale locale = Locale.getDefault();
1092: String suffix = getResourceSuffix(locale);
1093:
1094: try {
1095:
1096: // first try with the given locale
1097: return (XPATHErrorResources) ResourceBundle.getBundle(
1098: className + suffix, locale);
1099: } catch (MissingResourceException e) {
1100: try // try to fall back to en_US if we can't load
1101: {
1102:
1103: // Since we can't find the localized property file,
1104: // fall back to en_US.
1105: return (XPATHErrorResources) ResourceBundle.getBundle(
1106: className, new Locale("cs", "CZ"));
1107: } catch (MissingResourceException e2) {
1108:
1109: // Now we are really in trouble.
1110: // very bad, definitely very bad...not going to get very far
1111: throw new MissingResourceException(
1112: "Could not load any resource bundles.",
1113: className, "");
1114: }
1115: }
1116: }
1117:
1118: /**
1119: * Return the resource file suffic for the indicated locale
1120: * For most locales, this will be based the language code. However
1121: * for Chinese, we do distinguish between Taiwan and PRC
1122: *
1123: * @param locale the locale
1124: * @return an String suffix which canbe appended to a resource name
1125: */
1126: private static final String getResourceSuffix(Locale locale) {
1127:
1128: String suffix = "_" + locale.getLanguage();
1129: String country = locale.getCountry();
1130:
1131: if (country.equals("TW"))
1132: suffix += "_" + country;
1133:
1134: return suffix;
1135: }
1136:
1137: }
|