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_hu.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_hu 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: {
0293: ER_CURRENT_NOT_ALLOWED_IN_MATCH,
0294: "A current() f\u00fcggv\u00e9ny nem megengedett az illeszt\u00e9si mint\u00e1ban!" },
0295:
0296: /** Field ER_CURRENT_TAKES_NO_ARGS */
0297: //public static final int ER_CURRENT_TAKES_NO_ARGS = 2;
0298: { ER_CURRENT_TAKES_NO_ARGS,
0299: "A current() f\u00fcggv\u00e9ny nem fogad el argumentumokat!" },
0300:
0301: /** Field ER_DOCUMENT_REPLACED */
0302: // public static final int ER_DOCUMENT_REPLACED = 3;
0303: {
0304: ER_DOCUMENT_REPLACED,
0305: "A document() f\u00fcggv\u00e9ny megval\u00f3s\u00edt\u00e1s\u00e1t lecser\u00e9lte az org.apache.xalan.xslt.FuncDocument!" },
0306:
0307: /** Field ER_CONTEXT_HAS_NO_OWNERDOC */
0308: // public static final int ER_CONTEXT_HAS_NO_OWNERDOC = 4;
0309: { ER_CONTEXT_HAS_NO_OWNERDOC,
0310: "A k\u00f6rnyezetnek nincs tulajdonos dokumentuma!" },
0311:
0312: /** Field ER_LOCALNAME_HAS_TOO_MANY_ARGS */
0313: // public static final int ER_LOCALNAME_HAS_TOO_MANY_ARGS = 5;
0314: { ER_LOCALNAME_HAS_TOO_MANY_ARGS,
0315: "A local-name()-nek t\u00fal sok argumentuma van." },
0316:
0317: /** Field ER_NAMESPACEURI_HAS_TOO_MANY_ARGS */
0318: //public static final int ER_NAMESPACEURI_HAS_TOO_MANY_ARGS = 6;
0319: { ER_NAMESPACEURI_HAS_TOO_MANY_ARGS,
0320: "A namespace-uri()-nek t\u00fal sok argumentuma van." },
0321:
0322: /** Field ER_NORMALIZESPACE_HAS_TOO_MANY_ARGS */
0323: // public static final int ER_NORMALIZESPACE_HAS_TOO_MANY_ARGS = 7;
0324: { ER_NORMALIZESPACE_HAS_TOO_MANY_ARGS,
0325: "A normalize-space()-nek t\u00fal sok argumentuma van." },
0326:
0327: /** Field ER_NUMBER_HAS_TOO_MANY_ARGS */
0328: // public static final int ER_NUMBER_HAS_TOO_MANY_ARGS = 8;
0329: { ER_NUMBER_HAS_TOO_MANY_ARGS,
0330: "A number()-nek t\u00fal sok argumentuma van." },
0331:
0332: /** Field ER_NAME_HAS_TOO_MANY_ARGS */
0333: // public static final int ER_NAME_HAS_TOO_MANY_ARGS = 9;
0334: { ER_NAME_HAS_TOO_MANY_ARGS,
0335: "A name()-nek t\u00fal sok argumentuma van." },
0336:
0337: /** Field ER_STRING_HAS_TOO_MANY_ARGS */
0338: // public static final int ER_STRING_HAS_TOO_MANY_ARGS = 10;
0339: { ER_STRING_HAS_TOO_MANY_ARGS,
0340: "A string()-nek t\u00fal sok argumentuma van." },
0341:
0342: /** Field ER_STRINGLENGTH_HAS_TOO_MANY_ARGS */
0343: // public static final int ER_STRINGLENGTH_HAS_TOO_MANY_ARGS = 11;
0344: { ER_STRINGLENGTH_HAS_TOO_MANY_ARGS,
0345: "A string-length()-nek t\u00fal sok argumentuma van." },
0346:
0347: /** Field ER_TRANSLATE_TAKES_3_ARGS */
0348: // public static final int ER_TRANSLATE_TAKES_3_ARGS = 12;
0349: { ER_TRANSLATE_TAKES_3_ARGS,
0350: "A translate() f\u00fcggv\u00e9ny h\u00e1rom argumentumot k\u00e9r!" },
0351:
0352: /** Field ER_UNPARSEDENTITYURI_TAKES_1_ARG */
0353: // public static final int ER_UNPARSEDENTITYURI_TAKES_1_ARG = 13;
0354: {
0355: ER_UNPARSEDENTITYURI_TAKES_1_ARG,
0356: "Az unparsed-entity-uri f\u00fcggv\u00e9nyhez egy argumentum sz\u00fcks\u00e9ges!" },
0357:
0358: /** Field ER_NAMESPACEAXIS_NOT_IMPLEMENTED */
0359: // public static final int ER_NAMESPACEAXIS_NOT_IMPLEMENTED = 14;
0360: { ER_NAMESPACEAXIS_NOT_IMPLEMENTED,
0361: "A n\u00e9vt\u00e9r tengely m\u00e9g nincs magval\u00f3s\u00edtva!" },
0362:
0363: /** Field ER_UNKNOWN_AXIS */
0364: // public static final int ER_UNKNOWN_AXIS = 15;
0365: { ER_UNKNOWN_AXIS, "Ismeretlen tengely: {0}" },
0366:
0367: /** Field ER_UNKNOWN_MATCH_OPERATION */
0368: // public static final int ER_UNKNOWN_MATCH_OPERATION = 16;
0369: { ER_UNKNOWN_MATCH_OPERATION,
0370: "ismeretlen illeszt\u00e9si m\u0171velet!" },
0371:
0372: /** Field ER_INCORRECT_ARG_LENGTH */
0373: // public static final int ER_INCORRECT_ARG_LENGTH = 17;
0374: {
0375: ER_INCORRECT_ARG_LENGTH,
0376: "A processing-instruction() csom\u00f3pont teszt argumentum\u00e1nak hossza helytelen!" },
0377:
0378: /** Field ER_CANT_CONVERT_TO_NUMBER */
0379: // public static final int ER_CANT_CONVERT_TO_NUMBER = 18;
0380: { ER_CANT_CONVERT_TO_NUMBER,
0381: "A(z) {0} nem konvert\u00e1lhat\u00f3 sz\u00e1mm\u00e1" },
0382:
0383: /** Field ER_CANT_CONVERT_TO_NODELIST */
0384: //public static final int ER_CANT_CONVERT_TO_NODELIST = 19;
0385: { ER_CANT_CONVERT_TO_NODELIST,
0386: "A(z) {0} nem konvert\u00e1lhat\u00f3 NodeList-t\u00e9!" },
0387:
0388: /** Field ER_CANT_CONVERT_TO_MUTABLENODELIST */
0389: // public static final int ER_CANT_CONVERT_TO_MUTABLENODELIST = 20;
0390: { ER_CANT_CONVERT_TO_MUTABLENODELIST,
0391: "A(z) {0} nem konvert\u00e1lhat\u00f3 NodeSetDTM-m\u00e9!" },
0392:
0393: /** Field ER_CANT_CONVERT_TO_TYPE */
0394: // public static final int ER_CANT_CONVERT_TO_TYPE = 21;
0395: { ER_CANT_CONVERT_TO_TYPE,
0396: "{0} nem konvert\u00e1lhat\u00f3 type#{1} t\u00edpuss\u00e1" },
0397:
0398: /** Field ER_EXPECTED_MATCH_PATTERN */
0399: // public static final int ER_EXPECTED_MATCH_PATTERN = 22;
0400: { ER_EXPECTED_MATCH_PATTERN,
0401: "Illeszt\u00e9si mint\u00e1t v\u00e1rtunk a getMatchScore-ban!" },
0402:
0403: /** Field ER_COULDNOT_GET_VAR_NAMED */
0404: // public static final int ER_COULDNOT_GET_VAR_NAMED = 23;
0405: { ER_COULDNOT_GET_VAR_NAMED,
0406: "Nem lehet lek\u00e9rni a(z) {0} nev\u0171 v\u00e1ltoz\u00f3t" },
0407:
0408: /** Field ER_UNKNOWN_OPCODE */
0409: // public static final int ER_UNKNOWN_OPCODE = 24;
0410: { ER_UNKNOWN_OPCODE, "HIBA! Ismeretlen opk\u00f3d: {0}" },
0411:
0412: /** Field ER_EXTRA_ILLEGAL_TOKENS */
0413: // public static final int ER_EXTRA_ILLEGAL_TOKENS = 25;
0414: { ER_EXTRA_ILLEGAL_TOKENS, "Extra tiltott tokenek: {0}" },
0415:
0416: /** Field ER_EXPECTED_DOUBLE_QUOTE */
0417: // public static final int ER_EXPECTED_DOUBLE_QUOTE = 26;
0418: { ER_EXPECTED_DOUBLE_QUOTE,
0419: "rosszul id\u00e9zett liter\u00e1l... dupla id\u00e9z\u0151jelet v\u00e1rtunk!" },
0420:
0421: /** Field ER_EXPECTED_SINGLE_QUOTE */
0422: // public static final int ER_EXPECTED_SINGLE_QUOTE = 27;
0423: {
0424: ER_EXPECTED_SINGLE_QUOTE,
0425: "rosszul id\u00e9zett liter\u00e1l... szimpla id\u00e9z\u0151jelet v\u00e1rtunk!" },
0426:
0427: /** Field ER_EMPTY_EXPRESSION */
0428: // public static final int ER_EMPTY_EXPRESSION = 28;
0429: { ER_EMPTY_EXPRESSION, "\u00dcres kifejez\u00e9s!" },
0430:
0431: /** Field ER_EXPECTED_BUT_FOUND */
0432: // public static final int ER_EXPECTED_BUT_FOUND = 29;
0433: { ER_EXPECTED_BUT_FOUND,
0434: "{0}-t v\u00e1rtunk, de ezt tal\u00e1ltuk: {1}" },
0435:
0436: /** Field ER_INCORRECT_PROGRAMMER_ASSERTION */
0437: // public static final int ER_INCORRECT_PROGRAMMER_ASSERTION = 30;
0438: { ER_INCORRECT_PROGRAMMER_ASSERTION,
0439: "A programoz\u00f3 feltev\u00e9se hib\u00e1s! - {0}" },
0440:
0441: /** Field ER_BOOLEAN_ARG_NO_LONGER_OPTIONAL */
0442: // public static final int ER_BOOLEAN_ARG_NO_LONGER_OPTIONAL = 31;
0443: {
0444: ER_BOOLEAN_ARG_NO_LONGER_OPTIONAL,
0445: "A boolean(...) argumentuma t\u00f6bb\u00e9 nem opcion\u00e1lis az 19990709 XPath v\u00e1zlat szerint." },
0446:
0447: /** Field ER_FOUND_COMMA_BUT_NO_PRECEDING_ARG */
0448: // public static final int ER_FOUND_COMMA_BUT_NO_PRECEDING_ARG = 32;
0449: { ER_FOUND_COMMA_BUT_NO_PRECEDING_ARG,
0450: "','-t tal\u00e1ltunk, de nincs el\u0151tte argumentum!" },
0451:
0452: /** Field ER_FOUND_COMMA_BUT_NO_FOLLOWING_ARG */
0453: // public static final int ER_FOUND_COMMA_BUT_NO_FOLLOWING_ARG = 33;
0454: { ER_FOUND_COMMA_BUT_NO_FOLLOWING_ARG,
0455: "','-t tal\u00e1ltunk, de nincs ut\u00e1na argumentum!" },
0456:
0457: /** Field ER_PREDICATE_ILLEGAL_SYNTAX */
0458: // public static final int ER_PREDICATE_ILLEGAL_SYNTAX = 34;
0459: {
0460: ER_PREDICATE_ILLEGAL_SYNTAX,
0461: "A '..[felt\u00e9tel]' vagy '.[felt\u00e9tel]' szintaktika tiltott. Haszn\u00e1lja ink\u00e1bb a 'self::node()[predicate]' defin\u00edci\u00f3t." },
0462:
0463: /** Field ER_ILLEGAL_AXIS_NAME */
0464: // public static final int ER_ILLEGAL_AXIS_NAME = 35;
0465: { ER_ILLEGAL_AXIS_NAME, "Tiltott tengelyn\u00e9v: {0}" },
0466:
0467: /** Field ER_UNKNOWN_NODETYPE */
0468: // public static final int ER_UNKNOWN_NODETYPE = 36;
0469: { ER_UNKNOWN_NODETYPE,
0470: "Ismeretlen node-t\u00edpus: {0}" },
0471:
0472: /** Field ER_PATTERN_LITERAL_NEEDS_BE_QUOTED */
0473: // public static final int ER_PATTERN_LITERAL_NEEDS_BE_QUOTED = 37;
0474: { ER_PATTERN_LITERAL_NEEDS_BE_QUOTED,
0475: "A minta-liter\u00e1lt ({0}) id\u00e9z\u0151jelek k\u00f6z\u00e9 kell tenni!" },
0476:
0477: /** Field ER_COULDNOT_BE_FORMATTED_TO_NUMBER */
0478: // public static final int ER_COULDNOT_BE_FORMATTED_TO_NUMBER = 38;
0479: { ER_COULDNOT_BE_FORMATTED_TO_NUMBER,
0480: "A(z) {0} nem form\u00e1zhat\u00f3 sz\u00e1mm\u00e1!" },
0481:
0482: /** Field ER_COULDNOT_CREATE_XMLPROCESSORLIAISON */
0483: // public static final int ER_COULDNOT_CREATE_XMLPROCESSORLIAISON = 39;
0484: { ER_COULDNOT_CREATE_XMLPROCESSORLIAISON,
0485: "Nem lehet XML TransformerFactory Liaison-t l\u00e9trehozni: {0}" },
0486:
0487: /** Field ER_DIDNOT_FIND_XPATH_SELECT_EXP */
0488: // public static final int ER_DIDNOT_FIND_XPATH_SELECT_EXP = 40;
0489: {
0490: ER_DIDNOT_FIND_XPATH_SELECT_EXP,
0491: "Hiba! Az xpath kiv\u00e1laszt\u00e1si kifejez\u00e9s nem tal\u00e1lhat\u00f3 (-select)." },
0492:
0493: /** Field ER_COULDNOT_FIND_ENDOP_AFTER_OPLOCATIONPATH */
0494: // public static final int ER_COULDNOT_FIND_ENDOP_AFTER_OPLOCATIONPATH = 41;
0495: { ER_COULDNOT_FIND_ENDOP_AFTER_OPLOCATIONPATH,
0496: "HIBA! Nem tal\u00e1lhat\u00f3 ENDOP az OP_LOCATIONPATH ut\u00e1n" },
0497:
0498: /** Field ER_ERROR_OCCURED */
0499: // public static final int ER_ERROR_OCCURED = 42;
0500: { ER_ERROR_OCCURED, "Hiba t\u00f6rt\u00e9nt!" },
0501:
0502: /** Field ER_ILLEGAL_VARIABLE_REFERENCE */
0503: // public static final int ER_ILLEGAL_VARIABLE_REFERENCE = 43;
0504: {
0505: ER_ILLEGAL_VARIABLE_REFERENCE,
0506: "A v\u00e1ltoz\u00f3ra adott VariableReference (v\u00e1ltoz\u00f3hivatkoz\u00e1s) k\u00edv\u00fcl van a k\u00f6rnyezeten vagy nincs defin\u00edci\u00f3ja! N\u00e9v = {0}" },
0507:
0508: /** Field ER_AXES_NOT_ALLOWED */
0509: // public static final int ER_AXES_NOT_ALLOWED = 44;
0510: {
0511: ER_AXES_NOT_ALLOWED,
0512: "Csak a child:: \u00e9s az attribute:: tengelyek illeszkedhetnek mint\u00e1kra. Zavar\u00f3 tengelyek = {0}" },
0513:
0514: /** Field ER_KEY_HAS_TOO_MANY_ARGS */
0515: // public static final int ER_KEY_HAS_TOO_MANY_ARGS = 45;
0516: { ER_KEY_HAS_TOO_MANY_ARGS,
0517: "A key()-nek nem megfelel\u0151 sz\u00e1m\u00fa argumentuma van." },
0518:
0519: /** Field ER_COUNT_TAKES_1_ARG */
0520: // public static final int ER_COUNT_TAKES_1_ARG = 46;
0521: { ER_COUNT_TAKES_1_ARG,
0522: "A count f\u00fcggv\u00e9nyhez csak egy argumentumot lehet megadni!" },
0523:
0524: /** Field ER_COULDNOT_FIND_FUNCTION */
0525: // public static final int ER_COULDNOT_FIND_FUNCTION = 47;
0526: { ER_COULDNOT_FIND_FUNCTION,
0527: "Nem tal\u00e1lhat\u00f3 a f\u00fcggv\u00e9ny: {0}" },
0528:
0529: /** Field ER_UNSUPPORTED_ENCODING */
0530: // public static final int ER_UNSUPPORTED_ENCODING = 48;
0531: { ER_UNSUPPORTED_ENCODING,
0532: "Nem t\u00e1mogatott k\u00f3dol\u00e1s: {0}" },
0533:
0534: /** Field ER_PROBLEM_IN_DTM_NEXTSIBLING */
0535: // public static final int ER_PROBLEM_IN_DTM_NEXTSIBLING = 49;
0536: {
0537: ER_PROBLEM_IN_DTM_NEXTSIBLING,
0538: "Probl\u00e9ma mer\u00fclt fel a DTM-ben a getNextSibling-ben... megpr\u00f3b\u00e1ljuk helyrehozni" },
0539:
0540: /** Field ER_CANNOT_WRITE_TO_EMPTYNODELISTIMPL */
0541: // public static final int ER_CANNOT_WRITE_TO_EMPTYNODELISTIMPL = 50;
0542: {
0543: ER_CANNOT_WRITE_TO_EMPTYNODELISTIMPL,
0544: "Programoz\u00f3i hiba: az EmptyNodeList-be (\u00fcres csom\u00f3pontlist\u00e1ba) nem lehet \u00edrni." },
0545:
0546: /** Field ER_SETDOMFACTORY_NOT_SUPPORTED */
0547: // public static final int ER_SETDOMFACTORY_NOT_SUPPORTED = 51;
0548: { ER_SETDOMFACTORY_NOT_SUPPORTED,
0549: "A setDOMFactory-t nem t\u00e1mogatja az XPathContext!" },
0550:
0551: /** Field ER_PREFIX_MUST_RESOLVE */
0552: // public static final int ER_PREFIX_MUST_RESOLVE = 52;
0553: { ER_PREFIX_MUST_RESOLVE,
0554: "Az el\u0151tagnak egy n\u00e9vt\u00e9rre kell felold\u00f3dnia: {0}" },
0555:
0556: /** Field ER_PARSE_NOT_SUPPORTED */
0557: // public static final int ER_PARSE_NOT_SUPPORTED = 53;
0558: {
0559: ER_PARSE_NOT_SUPPORTED,
0560: "Az elem\u00e9s (InputSource forr\u00e1s) nem t\u00e1mogatott az XPathContext-ben! Nem lehet megnyitni a(z) {0}-t" },
0561:
0562: /** Field ER_CREATEDOCUMENT_NOT_SUPPORTED */
0563: // public static final int ER_CREATEDOCUMENT_NOT_SUPPORTED = 54;
0564: //{ ER_CREATEDOCUMENT_NOT_SUPPORTED,
0565: // "createDocument() not supported in XPathContext!"},
0566: /** Field ER_CHILD_HAS_NO_OWNER_DOCUMENT */
0567: // public static final int ER_CHILD_HAS_NO_OWNER_DOCUMENT = 55;
0568: //{ ER_CHILD_HAS_NO_OWNER_DOCUMENT,
0569: // "Attribute child does not have an owner document!"},
0570: /** Field ER_CHILD_HAS_NO_OWNER_DOCUMENT_ELEMENT */
0571: // public static final int ER_CHILD_HAS_NO_OWNER_DOCUMENT_ELEMENT = 56;
0572: //{ ER_CHILD_HAS_NO_OWNER_DOCUMENT_ELEMENT,
0573: // "Attribute child does not have an owner document element!"},
0574: /** Field ER_SAX_API_NOT_HANDLED */
0575: // public static final int ER_SAX_API_NOT_HANDLED = 57;
0576: { ER_SAX_API_NOT_HANDLED,
0577: "SAX API characters(char ch[]... f\u00fcggv\u00e9nyt nem kezeli a DTM!" },
0578:
0579: /** Field ER_IGNORABLE_WHITESPACE_NOT_HANDLED */
0580: //public static final int ER_IGNORABLE_WHITESPACE_NOT_HANDLED = 58;
0581: { ER_IGNORABLE_WHITESPACE_NOT_HANDLED,
0582: "Az ignorableWhitespace(char ch[]... f\u00fcggv\u00e9nyt nem kezeli a DTM!" },
0583:
0584: /** Field ER_DTM_CANNOT_HANDLE_NODES */
0585: // public static final int ER_DTM_CANNOT_HANDLE_NODES = 59;
0586: { ER_DTM_CANNOT_HANDLE_NODES,
0587: "A DTMLiaison nem tud {0} t\u00edpus\u00fa csom\u00f3pontokat kezelni" },
0588:
0589: /** Field ER_XERCES_CANNOT_HANDLE_NODES */
0590: // public static final int ER_XERCES_CANNOT_HANDLE_NODES = 60;
0591: { ER_XERCES_CANNOT_HANDLE_NODES,
0592: "A DOM2Helper nem tud {0} t\u00edpus\u00fa csom\u00f3pontokat kezelni" },
0593:
0594: /** Field ER_XERCES_PARSE_ERROR_DETAILS */
0595: // public static final int ER_XERCES_PARSE_ERROR_DETAILS = 61;
0596: { ER_XERCES_PARSE_ERROR_DETAILS,
0597: "DOM2Helper.parse hiba: SystemID - {0} sor - {1}" },
0598:
0599: /** Field ER_XERCES_PARSE_ERROR */
0600: // public static final int ER_XERCES_PARSE_ERROR = 62;
0601: { ER_XERCES_PARSE_ERROR, "DOM2Helper.parse hiba" },
0602:
0603: /** Field ER_CANT_OUTPUT_TEXT_BEFORE_DOC */
0604: // public static final int ER_CANT_OUTPUT_TEXT_BEFORE_DOC = 63;
0605: //{ ER_CANT_OUTPUT_TEXT_BEFORE_DOC,
0606: // "Warning: can't output text before document element! Ignoring..."},
0607: /** Field ER_CANT_HAVE_MORE_THAN_ONE_ROOT */
0608: // public static final int ER_CANT_HAVE_MORE_THAN_ONE_ROOT = 64;
0609: //{ ER_CANT_HAVE_MORE_THAN_ONE_ROOT,
0610: // "Can't have more than one root on a DOM!"},
0611: /** Field ER_INVALID_UTF16_SURROGATE */
0612: // public static final int ER_INVALID_UTF16_SURROGATE = 65;
0613: { ER_INVALID_UTF16_SURROGATE,
0614: "\u00c9rv\u00e9nytelen UTF-16 helyettes\u00edt\u00e9s: {0} ?" },
0615:
0616: /** Field ER_OIERROR */
0617: //public static final int ER_OIERROR = 66;
0618: { ER_OIERROR, "IO hiba" },
0619:
0620: /** Field ER_CANNOT_CREATE_URL */
0621: //public static final int ER_CANNOT_CREATE_URL = 67;
0622: { ER_CANNOT_CREATE_URL,
0623: "Nem lehet URL-t l\u00e9trehozni ehhez: {0}" },
0624:
0625: /** Field ER_XPATH_READOBJECT */
0626: // public static final int ER_XPATH_READOBJECT = 68;
0627: { ER_XPATH_READOBJECT,
0628: "A XPath.readObject met\u00f3dusban: {0}" },
0629:
0630: /** Field ER_FUNCTION_TOKEN_NOT_FOUND */
0631: // public static final int ER_FUNCTION_TOKEN_NOT_FOUND = 69;
0632: { ER_FUNCTION_TOKEN_NOT_FOUND,
0633: "A f\u00fcggv\u00e9ny jelsor nem tal\u00e1lhat\u00f3." },
0634:
0635: /** Argument 'localName' is null */
0636: // public static final int ER_ARG_LOCALNAME_NULL = 70;
0637: //{ ER_ARG_LOCALNAME_NULL,
0638: // "Argument 'localName' is null"},
0639: /** Can not deal with XPath type: */
0640: // public static final int ER_CANNOT_DEAL_XPATH_TYPE = 71;
0641: { ER_CANNOT_DEAL_XPATH_TYPE,
0642: "Nem lehet megbirk\u00f3zni az XPath t\u00edpussal: {0}" },
0643:
0644: /** This NodeSet is not mutable */
0645: // public static final int ER_NODESET_NOT_MUTABLE = 72;
0646: { ER_NODESET_NOT_MUTABLE,
0647: "Ez a NodeSet nem illeszthet\u0151 be" },
0648:
0649: /** This NodeSetDTM is not mutable */
0650: // public static final int ER_NODESETDTM_NOT_MUTABLE = 73;
0651: { ER_NODESETDTM_NOT_MUTABLE,
0652: "Ez a NodeSetDTM nem illeszthet\u0151 be" },
0653:
0654: /** Variable not resolvable: */
0655: // public static final int ER_VAR_NOT_RESOLVABLE = 74;
0656: { ER_VAR_NOT_RESOLVABLE,
0657: "A v\u00e1ltoz\u00f3 nem oldhat\u00f3 fel: {0}" },
0658:
0659: /** Null error handler */
0660: // public static final int ER_NULL_ERROR_HANDLER = 75;
0661: { ER_NULL_ERROR_HANDLER, "Null hibakezel\u0151" },
0662:
0663: /** Programmer's assertion: unknown opcode */
0664: // public static final int ER_PROG_ASSERT_UNKNOWN_OPCODE = 76;
0665: {
0666: ER_PROG_ASSERT_UNKNOWN_OPCODE,
0667: "Programoz\u00f3i \u00e9rtes\u00edt\u00e9s: ismeretlen m\u0171veletk\u00f3d: {0}" },
0668:
0669: /** 0 or 1 */
0670: // public static final int ER_ZERO_OR_ONE = 77;
0671: { ER_ZERO_OR_ONE, "0 vagy 1" },
0672:
0673: /** rtf() not supported by XRTreeFragSelectWrapper */
0674: //public static final int ER_RTF_NOT_SUPPORTED_XRTREEFRAGSELECTWRAPPER = 78;
0675: { ER_RTF_NOT_SUPPORTED_XRTREEFRAGSELECTWRAPPER,
0676: "Az rtf()-et nem t\u00e1mogatja az XRTreeFragSelectWrapper" },
0677:
0678: /** asNodeIterator() not supported by XRTreeFragSelectWrapper */
0679: //public static final int ER_ASNODEITERATOR_NOT_SUPPORTED_XRTREEFRAGSELECTWRAPPER = 79;
0680: { ER_RTF_NOT_SUPPORTED_XRTREEFRAGSELECTWRAPPER,
0681: "Az asNodeIterator()-t nem t\u00e1mogatja az XRTreeFragSelectWrapper" },
0682:
0683: /** fsb() not supported for XStringForChars */
0684: // public static final int ER_FSB_NOT_SUPPORTED_XSTRINGFORCHARS = 80;
0685: { ER_FSB_NOT_SUPPORTED_XSTRINGFORCHARS,
0686: "Az fsb() nem t\u00e1mogatott az XStringForChars-n\u00e1l" },
0687:
0688: /** Could not find variable with the name of */
0689: // public static final int ER_COULD_NOT_FIND_VAR = 81;
0690: { ER_COULD_NOT_FIND_VAR,
0691: "Nem tal\u00e1lhat\u00f3 {0} nev\u0171 v\u00e1ltoz\u00f3" },
0692:
0693: /** XStringForChars can not take a string for an argument */
0694: // public static final int ER_XSTRINGFORCHARS_CANNOT_TAKE_STRING = 82;
0695: { ER_XSTRINGFORCHARS_CANNOT_TAKE_STRING,
0696: "Az XStringForChars-nak nem adhat meg karakterl\u00e1nc argumentumot" },
0697:
0698: /** The FastStringBuffer argument can not be null */
0699: // public static final int ER_FASTSTRINGBUFFER_CANNOT_BE_NULL = 83;
0700: { ER_FASTSTRINGBUFFER_CANNOT_BE_NULL,
0701: "A FastStringBuffer argumentum nem lehet null" },
0702:
0703: /* MANTIS_XALAN CHANGE: BEGIN */
0704: /** 2 or 3 */
0705: // public static final int ER_TWO_OR_THREE = 84;
0706: { ER_TWO_OR_THREE, "2 vagy 3" },
0707:
0708: /** Variable accessed before it is bound! */
0709: // public static final int ER_VARIABLE_ACCESSED_BEFORE_BIND = 85;
0710: { ER_VARIABLE_ACCESSED_BEFORE_BIND,
0711: "V\u00e1ltoz\u00f3el\u00e9r\u00e9s \u00e9rt\u00e9kad\u00e1s el\u0151tt!" },
0712:
0713: /** XStringForFSB can not take a string for an argument! */
0714: // public static final int ER_FSB_CANNOT_TAKE_STRING = 86;
0715: { ER_FSB_CANNOT_TAKE_STRING,
0716: "XStringForFSB nem kaphat sztring argumentumot!" },
0717:
0718: /** Error! Setting the root of a walker to null! */
0719: // public static final int ER_SETTING_WALKER_ROOT_TO_NULL = 87;
0720: {
0721: ER_SETTING_WALKER_ROOT_TO_NULL,
0722: "\n !!!! Hiba! A bej\u00e1r\u00f3 gy\u00f6ker\u00e9t null-ra \u00e1ll\u00edtotta!!!" },
0723:
0724: /** This NodeSetDTM can not iterate to a previous node! */
0725: // public static final int ER_NODESETDTM_CANNOT_ITERATE = 88;
0726: { ER_NODESETDTM_CANNOT_ITERATE,
0727: "Ez a NodeSetDTM nem iter\u00e1lhat egy kor\u00e1bbi node-ra!" },
0728:
0729: /** This NodeSet can not iterate to a previous node! */
0730: // public static final int ER_NODESET_CANNOT_ITERATE = 89;
0731: { ER_NODESET_CANNOT_ITERATE,
0732: "Ez a NodeSet nem iter\u00e1lhat egy kor\u00e1bbi node-ra!" },
0733:
0734: /** This NodeSetDTM can not do indexing or counting functions! */
0735: // public static final int ER_NODESETDTM_CANNOT_INDEX = 90;
0736: {
0737: ER_NODESETDTM_CANNOT_INDEX,
0738: "Ez a NodeSetDTM nem indexelhet \u00e9s nem sz\u00e1ml\u00e1lhatja a funkci\u00f3kat!" },
0739:
0740: /** This NodeSet can not do indexing or counting functions! */
0741: // public static final int ER_NODESET_CANNOT_INDEX = 91;
0742: {
0743: ER_NODESET_CANNOT_INDEX,
0744: "Ez a NodeSet nem indexelhet \u00e9s nem sz\u00e1ml\u00e1lhatja a funkci\u00f3kat!" },
0745:
0746: /** Can not call setShouldCacheNodes after nextNode has been called! */
0747: // public static final int ER_CANNOT_CALL_SETSHOULDCACHENODE = 92;
0748: {
0749: ER_CANNOT_CALL_SETSHOULDCACHENODE,
0750: "Nem h\u00edvhat\u00f3 setShouldCacheNodes nextNode h\u00edv\u00e1sa ut\u00e1n!" },
0751:
0752: /** {0} only allows {1} arguments */
0753: // public static final int ER_ONLY_ALLOWS = 93;
0754: { ER_ONLY_ALLOWS,
0755: "{0} csak {1} argumentumot enged\u00e9lyez" },
0756:
0757: /** Programmer's assertion in getNextStepPos: unknown stepType: {0} */
0758: // public static final int ER_UNKNOWN_STEP = 94;
0759: {
0760: ER_UNKNOWN_STEP,
0761: "Programoz\u00f3i \u00e9rtes\u00edt\u00e9s getNextStepPos h\u00edv\u00e1sban: ismeretlen stepType: {0}" },
0762:
0763: //Note to translators: A relative location path is a form of XPath expression.
0764: // The message indicates that such an expression was expected following the
0765: // characters '/' or '//', but was not found.
0766:
0767: /** Problem with RelativeLocationPath */
0768: // public static final int ER_EXPECTED_REL_LOC_PATH = 95;
0769: {
0770: ER_EXPECTED_REL_LOC_PATH,
0771: "Egy relat\u00edv elhelyez\u00e9si \u00fatvonalat v\u00e1rtunk a '/' vagy '//' token ut\u00e1n." },
0772:
0773: // Note to translators: A location path is a form of XPath expression.
0774: // The message indicates that syntactically such an expression was expected,but
0775: // the characters specified by the substitution text were encountered instead.
0776:
0777: /** Problem with LocationPath */
0778: // public static final int ER_EXPECTED_LOC_PATH = 96;
0779: {
0780: ER_EXPECTED_LOC_PATH,
0781: "Egy hely \u00fatvonalat v\u00e1rtam, de a k\u00f6vetkez\u0151 tokent tal\u00e1ltam\u003a {0}" },
0782:
0783: // Note to translators: A location step is part of an XPath expression.
0784: // The message indicates that syntactically such an expression was expected
0785: // following the specified characters.
0786:
0787: /** Problem with Step */
0788: // public static final int ER_EXPECTED_LOC_STEP = 97;
0789: {
0790: ER_EXPECTED_LOC_STEP,
0791: "Egy elhelyez\u00e9si l\u00e9p\u00e9st v\u00e1rtunk a '/' vagy '//' token ut\u00e1n." },
0792:
0793: // Note to translators: A node test is part of an XPath expression that is
0794: // used to test for particular kinds of nodes. In this case, a node test that
0795: // consists of an NCName followed by a colon and an asterisk or that consists
0796: // of a QName was expected, but was not found.
0797:
0798: /** Problem with NodeTest */
0799: // public static final int ER_EXPECTED_NODE_TEST = 98;
0800: {
0801: ER_EXPECTED_NODE_TEST,
0802: "Egy olyan node-tesztet v\u00e1rtunk, ami vagy az NCName:*-ra vagy a QName-re illeszkedik." },
0803:
0804: // Note to translators: A step pattern is part of an XPath expression.
0805: // The message indicates that syntactically such an expression was expected,
0806: // but the specified character was found in the expression instead.
0807:
0808: /** Expected step pattern */
0809: // public static final int ER_EXPECTED_STEP_PATTERN = 99;
0810: { ER_EXPECTED_STEP_PATTERN,
0811: "Egy l\u00e9p\u00e9smint\u00e1t v\u00e1rtunk, de '/' szerepelt." },
0812:
0813: // Note to translators: A relative path pattern is part of an XPath expression.
0814: // The message indicates that syntactically such an expression was expected,
0815: // but was not found.
0816:
0817: /** Expected relative path pattern */
0818: // public static final int ER_EXPECTED_REL_PATH_PATTERN = 100;
0819: { ER_EXPECTED_REL_PATH_PATTERN,
0820: "Relat\u00edv \u00fatvonalat v\u00e1rtunk." },
0821:
0822: // Note to translators: A QNAME has the syntactic form [NCName:]NCName
0823: // The localname is the portion after the optional colon; the message indicates
0824: // that there is a problem with that part of the QNAME.
0825:
0826: /** localname in QNAME should be a valid NCName */
0827: // public static final int ER_ARG_LOCALNAME_INVALID = 101;
0828: //{ ER_ARG_LOCALNAME_INVALID,
0829: // "Localname in QNAME should be a valid NCName"},
0830: // Note to translators: A QNAME has the syntactic form [NCName:]NCName
0831: // The prefix is the portion before the optional colon; the message indicates
0832: // that there is a problem with that part of the QNAME.
0833: /** prefix in QNAME should be a valid NCName */
0834: // public static final int ER_ARG_PREFIX_INVALID = 102;
0835: //{ ER_ARG_PREFIX_INVALID,
0836: // "Prefix in QNAME should be a valid NCName"},
0837: // Note to translators: The substitution text is the name of a data type. The
0838: // message indicates that a value of a particular type could not be converted
0839: // to a value of type string.
0840: /** Field ER_CANT_CONVERT_TO_BOOLEAN */
0841: // public static final int ER_CANT_CONVERT_TO_BOOLEAN = 103;
0842: { ER_CANT_CONVERT_TO_BOOLEAN,
0843: "Nem lehet {0}-t logikaiv\u00e1 konvert\u00e1lni." },
0844:
0845: // Note to translators: Do not translate ANY_UNORDERED_NODE_TYPE and
0846: // FIRST_ORDERED_NODE_TYPE.
0847:
0848: /** Field ER_CANT_CONVERT_TO_SINGLENODE */
0849: //public static final int ER_CANT_CONVERT_TO_SINGLENODE = 104;
0850: {
0851: ER_CANT_CONVERT_TO_SINGLENODE,
0852: "Nem lehet {0}-t egyszer\u0171 node-d\u00e1 konvert\u00e1lni. Ez a ford\u00edt\u00f3 az ANY_UNORDERED_NODE_TYPE \u00e9s a FIRST_ORDERED_NODE_TYPE t\u00edpusokra haszn\u00e1lhat\u00f3." },
0853:
0854: // Note to translators: Do not translate UNORDERED_NODE_SNAPSHOT_TYPE and
0855: // ORDERED_NODE_SNAPSHOT_TYPE.
0856:
0857: /** Field ER_CANT_GET_SNAPSHOT_LENGTH */
0858: // public static final int ER_CANT_GET_SNAPSHOT_LENGTH = 105;
0859: {
0860: ER_CANT_GET_SNAPSHOT_LENGTH,
0861: "Nem lehet megkapni a pillanatk\u00e9p hossz\u00e1t a k\u00f6vetkez\u0151 t\u00edpusra: {0}. Ez a ford\u00edt\u00f3 az UNORDERED_NODE_SNAPSHOT_TYPE \u00e9s az ORDERED_NODE_SNAPSHOT_TYPE t\u00edpusokra haszn\u00e1lhat\u00f3." },
0862:
0863: /** Field ER_NON_ITERATOR_TYPE */
0864: //public static final int ER_NON_ITERATOR_TYPE = 106;
0865: { ER_NON_ITERATOR_TYPE,
0866: "Nem lehet iter\u00e1lni nem iter\u00e1tor t\u00edpust: {0}" },
0867:
0868: // Note to translators: This message indicates that the document being operated
0869: // upon changed, so the iterator object that was being used to traverse the
0870: // document has now become invalid.
0871:
0872: /** Field ER_DOC_MUTATED */
0873: // public static final int ER_DOC_MUTATED = 107;
0874: {
0875: ER_DOC_MUTATED,
0876: "A dokumentum megv\u00e1ltozott, mi\u00f3ta az eredm\u00e9ny visszat\u00e9rt. Az iter\u00e1tor \u00e9rv\u00e9nytelen." },
0877:
0878: /** Field ER_INVALID_XPATH_TYPE */
0879: // public static final int ER_INVALID_XPATH_TYPE = 108;
0880: { ER_INVALID_XPATH_TYPE,
0881: "\u00c9rv\u00e9nytelen XPath t\u00edpus-argumentum: {0}" },
0882:
0883: /** Field ER_EMPTY_XPATH_RESULT */
0884: // public static final int ER_EMPTY_XPATH_RESULT = 109;
0885: { ER_EMPTY_XPATH_RESULT,
0886: "\u00dcres XPath eredm\u00e9nyobjektum" },
0887:
0888: /** Field ER_INCOMPATIBLE_TYPES */
0889: // public static final int ER_INCOMPATIBLE_TYPES = 110;
0890: {
0891: ER_INCOMPATIBLE_TYPES,
0892: "A visszadott t\u00edpus: {0} nem lehet a megadott t\u00edpuss\u00e1 v\u00e1ltoztatni: {1}" },
0893:
0894: /** Field ER_NULL_RESOLVER */
0895: // public static final int ER_NULL_RESOLVER = 111;
0896: { ER_NULL_RESOLVER,
0897: "Nem lehet feloldani a prefixet null prefix-felold\u00f3val." },
0898:
0899: // Note to translators: The substitution text is the name of a data type. The
0900: // message indicates that a value of a particular type could not be converted
0901: // to a value of type string.
0902:
0903: /** Field ER_CANT_CONVERT_TO_STRING */
0904: // public static final int ER_CANT_CONVERT_TO_STRING = 112;
0905: { ER_CANT_CONVERT_TO_STRING,
0906: "Nem lehet {0} t\u00edpust sztringg\u00e9 konvert\u00e1lni." },
0907:
0908: // Note to translators: Do not translate snapshotItem,
0909: // UNORDERED_NODE_SNAPSHOT_TYPE and ORDERED_NODE_SNAPSHOT_TYPE.
0910:
0911: /** Field ER_NON_SNAPSHOT_TYPE */
0912: // public static final int ER_NON_SNAPSHOT_TYPE = 113;
0913: {
0914: ER_NON_SNAPSHOT_TYPE,
0915: "Nem lehet snapshotItem-et h\u00edvni a k\u00f6vetkez\u0151 t\u00edpusra: {0}. Ez a met\u00f3dust az UNORDERED_NODE_SNAPSHOT_TYPE \u00e9s ORDERED_NODE_SNAPSHOT_TYPE t\u00edpusokra alkalmazhat\u00f3." },
0916:
0917: // Note to translators: XPathEvaluator is a Java interface name. An
0918: // XPathEvaluator is created with respect to a particular XML document, and in
0919: // this case the expression represented by this object was being evaluated with
0920: // respect to a context node from a different document.
0921:
0922: /** Field ER_WRONG_DOCUMENT */
0923: // public static final int ER_WRONG_DOCUMENT = 114;
0924: {
0925: ER_WRONG_DOCUMENT,
0926: "A k\u00f6rnyezeti node nem az XPathEvaluator-hoz tartoz\u00f3 dokumentumhoz tartozik." },
0927:
0928: // Note to translators: The XPath expression cannot be evaluated with respect
0929: // to this type of node.
0930: /** Field ER_WRONG_NODETYPE */
0931: // public static final int ER_WRONG_NODETYPE = 115;
0932: { ER_WRONG_NODETYPE,
0933: "A k\u00f6rnyezeti node t\u00edpusa nem t\u00e1mogatott." },
0934:
0935: /** Field ER_XPATH_ERROR */
0936: // public static final int ER_XPATH_ERROR = 116;
0937: { ER_XPATH_ERROR, "Ismeretlen hiba az XPath-ban." },
0938:
0939: // Warnings...
0940:
0941: /** Field WG_LOCALE_NAME_NOT_HANDLED */
0942: // public static final int WG_LOCALE_NAME_NOT_HANDLED = 1;
0943: {
0944: WG_LOCALE_NAME_NOT_HANDLED,
0945: "A locale-n\u00e9v a format-number f\u00fcggv\u00e9nyben m\u00e9g nincs kezelve!" },
0946:
0947: /** Field WG_PROPERTY_NOT_SUPPORTED */
0948: // public static final int WG_PROPERTY_NOT_SUPPORTED = 2;
0949: { WG_PROPERTY_NOT_SUPPORTED,
0950: "Az XSL tulajdons\u00e1g nem t\u00e1mogatott: {0}" },
0951:
0952: /** Field WG_DONT_DO_ANYTHING_WITH_NS */
0953: // public static final int WG_DONT_DO_ANYTHING_WITH_NS = 3;
0954: {
0955: WG_DONT_DO_ANYTHING_WITH_NS,
0956: "Jelenleg ne tegyen semmit a(z) {0} n\u00e9vt\u00e9rrel a tulajdons\u00e1gban: {1}" },
0957:
0958: /** Field WG_SECURITY_EXCEPTION */
0959: // public static final int WG_SECURITY_EXCEPTION = 4;
0960: {
0961: WG_SECURITY_EXCEPTION,
0962: "SecurityException az XSL rendszertulajdons\u00e1g el\u00e9r\u00e9s\u00e9n\u00e9l: {0}" },
0963:
0964: /** Field WG_QUO_NO_LONGER_DEFINED */
0965: // public static final int WG_QUO_NO_LONGER_DEFINED = 5;
0966: {
0967: WG_QUO_NO_LONGER_DEFINED,
0968: "A r\u00e9gi szintaktika: quo(...) t\u00f6bb\u00e9 nincs defini\u00e1lva az XPath-ban." },
0969:
0970: /** Field WG_NEED_DERIVED_OBJECT_TO_IMPLEMENT_NODETEST */
0971: // public static final int WG_NEED_DERIVED_OBJECT_TO_IMPLEMENT_NODETEST = 6;
0972: { WG_NEED_DERIVED_OBJECT_TO_IMPLEMENT_NODETEST,
0973: "Az XPath-nak kell egy sz\u00e1rmaztatott objektum a nodeTest-hez!" },
0974:
0975: /** Field WG_FUNCTION_TOKEN_NOT_FOUND */
0976: // public static final int WG_FUNCTION_TOKEN_NOT_FOUND = 7;
0977: { WG_FUNCTION_TOKEN_NOT_FOUND,
0978: "A f\u00fcggv\u00e9ny jelsor nem tal\u00e1lhat\u00f3." },
0979:
0980: /** Field WG_COULDNOT_FIND_FUNCTION */
0981: // public static final int WG_COULDNOT_FIND_FUNCTION = 8;
0982: { WG_COULDNOT_FIND_FUNCTION,
0983: "Nem tal\u00e1lhat\u00f3 a f\u00fcggv\u00e9ny: {0}" },
0984:
0985: /** Field WG_CANNOT_MAKE_URL_FROM */
0986: // public static final int WG_CANNOT_MAKE_URL_FROM = 9;
0987: { WG_CANNOT_MAKE_URL_FROM,
0988: "Nem k\u00e9sz\u00edthet\u0151 URL ebb\u0151l: {0}" },
0989:
0990: /** Field WG_EXPAND_ENTITIES_NOT_SUPPORTED */
0991: // public static final int WG_EXPAND_ENTITIES_NOT_SUPPORTED = 10;
0992: { WG_EXPAND_ENTITIES_NOT_SUPPORTED,
0993: "A -E opci\u00f3 nem t\u00e1mogatott a DTM elemz\u0151h\u00f6z" },
0994:
0995: /** Field WG_ILLEGAL_VARIABLE_REFERENCE */
0996: // public static final int WG_ILLEGAL_VARIABLE_REFERENCE = 11;
0997: {
0998: WG_ILLEGAL_VARIABLE_REFERENCE,
0999: "A v\u00e1ltoz\u00f3ra adott VariableReference (v\u00e1ltoz\u00f3hivatkoz\u00e1s) k\u00edv\u00fcl van a k\u00f6rnyezeten vagy nincs defin\u00edci\u00f3ja! N\u00e9v = {0}" },
1000:
1001: /** Field WG_UNSUPPORTED_ENCODING */
1002: // public static final int WG_UNSUPPORTED_ENCODING = 12;
1003: { WG_UNSUPPORTED_ENCODING,
1004: "Nem t\u00e1mogatott k\u00f3dol\u00e1s: {0}" },
1005:
1006: // Other miscellaneous text used inside the code...
1007: { "ui_language", "hu" },
1008: { "help_language", "hu" },
1009: { "language", "hu" },
1010: { "BAD_CODE",
1011: "A createMessage param\u00e9tere nincs a megfelel\u0151 tartom\u00e1nyban" },
1012: { "FORMAT_FAILED",
1013: "Kiv\u00e9tel t\u00f6rt\u00e9nt a messageFormat h\u00edv\u00e1s alatt" },
1014: { "version", ">>>>>>> Xalan verzi\u00f3 " },
1015: { "version2", "<<<<<<<" },
1016: { "yes", "igen" },
1017: { "line", "Sor #" },
1018: { "column", "Oszlop #" },
1019: { "xsldone", "XSLProcessor: k\u00e9sz" },
1020: { "xpath_option", "xpath opci\u00f3i: " },
1021: { "optionIN", " [-in bemenetiXMLURL]" },
1022: { "optionSelect", " [-select xpath kifejez\u00e9s]" },
1023: { "optionMatch",
1024: " [-match illeszt\u00e9si minta (az illeszt\u00e9si diagnosztik\u00e1hoz)]" },
1025: { "optionAnyExpr",
1026: "Vagy csak egy xpath kifejez\u00e9s megcsin\u00e1l egy diagnosztikai dump-ot" },
1027: { "noParsermsg1", "Az XSL processz sikertelen volt." },
1028: { "noParsermsg2",
1029: "** Az elemz\u0151 nem tal\u00e1lhat\u00f3 **" },
1030: { "noParsermsg3",
1031: "K\u00e9rem, ellen\u0151rizze az oszt\u00e1ly el\u00e9r\u00e9si utat." },
1032: {
1033: "noParsermsg4",
1034: "Ha \u00f6nnek nincs meg az IBM Java XML elemz\u0151je, akkor let\u00f6ltheti az" },
1035: { "noParsermsg5",
1036: "az IBM AlphaWorks weblapr\u00f3l: http://www.alphaworks.ibm.com/formula/xml" },
1037: { "gtone", ">1" }, { "zero", "0" }, { "one", "1" },
1038: { "two", "2" }, { "three", "3" }
1039:
1040: };
1041: }
1042:
1043: // ================= INFRASTRUCTURE ======================
1044:
1045: /** Field BAD_CODE */
1046: public static final String BAD_CODE = "BAD_CODE";
1047:
1048: /** Field FORMAT_FAILED */
1049: public static final String FORMAT_FAILED = "FORMAT_FAILED";
1050:
1051: /** Field ERROR_RESOURCES */
1052: public static final String ERROR_RESOURCES = "org.apache.xpath.res.XPATHErrorResources";
1053:
1054: /** Field ERROR_STRING */
1055: public static final String ERROR_STRING = "#error";
1056:
1057: /** Field ERROR_HEADER */
1058: public static final String ERROR_HEADER = "Hiba: ";
1059:
1060: /** Field WARNING_HEADER */
1061: public static final String WARNING_HEADER = "Figyelmeztet\u00e9s: ";
1062:
1063: /** Field XSL_HEADER */
1064: public static final String XSL_HEADER = "XSL ";
1065:
1066: /** Field XML_HEADER */
1067: public static final String XML_HEADER = "XML ";
1068:
1069: /** Field QUERY_HEADER */
1070: public static final String QUERY_HEADER = "MINTA ";
1071:
1072: /**
1073: * Return a named ResourceBundle for a particular locale. This method mimics the behavior
1074: * of ResourceBundle.getBundle().
1075: *
1076: * @param className Name of local-specific subclass.
1077: * @return the ResourceBundle
1078: * @throws MissingResourceException
1079: */
1080: public static final XPATHErrorResources loadResourceBundle(
1081: String className) throws MissingResourceException {
1082:
1083: Locale locale = Locale.getDefault();
1084: String suffix = getResourceSuffix(locale);
1085:
1086: try {
1087:
1088: // first try with the given locale
1089: return (XPATHErrorResources) ResourceBundle.getBundle(
1090: className + suffix, locale);
1091: } catch (MissingResourceException e) {
1092: try // try to fall back to en_US if we can't load
1093: {
1094:
1095: // Since we can't find the localized property file,
1096: // fall back to en_US.
1097: return (XPATHErrorResources) ResourceBundle.getBundle(
1098: className, new Locale("hu", "HU"));
1099: } catch (MissingResourceException e2) {
1100:
1101: // Now we are really in trouble.
1102: // very bad, definitely very bad...not going to get very far
1103: throw new MissingResourceException(
1104: "Could not load any resource bundles.",
1105: className, "");
1106: }
1107: }
1108: }
1109:
1110: /**
1111: * Return the resource file suffic for the indicated locale
1112: * For most locales, this will be based the language code. However
1113: * for Chinese, we do distinguish between Taiwan and PRC
1114: *
1115: * @param locale the locale
1116: * @return an String suffix which canbe appended to a resource name
1117: */
1118: private static final String getResourceSuffix(Locale locale) {
1119:
1120: String suffix = "_" + locale.getLanguage();
1121: String country = locale.getCountry();
1122:
1123: if (country.equals("TW"))
1124: suffix += "_" + country;
1125:
1126: return suffix;
1127: }
1128:
1129: }
|