Source Code Cross Referenced for XPATHErrorResources_it.java in  » XML » xalan » org » apache » xpath » res » Java Source Code / Java DocumentationJava Source Code and Java Documentation

Java Source Code / Java Documentation
1. 6.0 JDK Core
2. 6.0 JDK Modules
3. 6.0 JDK Modules com.sun
4. 6.0 JDK Modules com.sun.java
5. 6.0 JDK Modules sun
6. 6.0 JDK Platform
7. Ajax
8. Apache Harmony Java SE
9. Aspect oriented
10. Authentication Authorization
11. Blogger System
12. Build
13. Byte Code
14. Cache
15. Chart
16. Chat
17. Code Analyzer
18. Collaboration
19. Content Management System
20. Database Client
21. Database DBMS
22. Database JDBC Connection Pool
23. Database ORM
24. Development
25. EJB Server geronimo
26. EJB Server GlassFish
27. EJB Server JBoss 4.2.1
28. EJB Server resin 3.1.5
29. ERP CRM Financial
30. ESB
31. Forum
32. GIS
33. Graphic Library
34. Groupware
35. HTML Parser
36. IDE
37. IDE Eclipse
38. IDE Netbeans
39. Installer
40. Internationalization Localization
41. Inversion of Control
42. Issue Tracking
43. J2EE
44. JBoss
45. JMS
46. JMX
47. Library
48. Mail Clients
49. Net
50. Parser
51. PDF
52. Portal
53. Profiler
54. Project Management
55. Report
56. RSS RDF
57. Rule Engine
58. Science
59. Scripting
60. Search Engine
61. Security
62. Sevlet Container
63. Source Control
64. Swing Library
65. Template Engine
66. Test Coverage
67. Testing
68. UML
69. Web Crawler
70. Web Framework
71. Web Mail
72. Web Server
73. Web Services
74. Web Services apache cxf 2.0.1
75. Web Services AXIS2
76. Wiki Engine
77. Workflow Engines
78. XML
79. XML UI
Java
Java Tutorial
Java Open Source
Jar File Download
Java Articles
Java Products
Java by API
Photoshop Tutorials
Maya Tutorials
Flash Tutorials
3ds-Max Tutorials
Illustrator Tutorials
GIMP Tutorials
C# / C Sharp
C# / CSharp Tutorial
C# / CSharp Open Source
ASP.Net
ASP.NET Tutorial
JavaScript DHTML
JavaScript Tutorial
JavaScript Reference
HTML / CSS
HTML CSS Reference
C / ANSI-C
C Tutorial
C++
C++ Tutorial
Ruby
PHP
Python
Python Tutorial
Python Open Source
SQL Server / T-SQL
SQL Server / T-SQL Tutorial
Oracle PL / SQL
Oracle PL/SQL Tutorial
PostgreSQL
SQL / MySQL
MySQL Tutorial
VB.Net
VB.Net Tutorial
Flash / Flex / ActionScript
VBA / Excel / Access / Word
XML
XML Tutorial
Microsoft Office PowerPoint 2007 Tutorial
Microsoft Office Excel 2007 Tutorial
Microsoft Office Word 2007 Tutorial
Java Source Code / Java Documentation » XML » xalan » org.apache.xpath.res 
Source Cross Referenced  Class Diagram Java Document (Java Doc) 


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_it.java,v 1.10 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_it 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:                                "La funzione corrente () non \u00e8 consentita in un modello di corrispondenza." },
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:                                "La funzione corrente () non accetta argomenti." },
0300:
0301:                        /** Field ER_DOCUMENT_REPLACED          */
0302:                        //  public static final int ER_DOCUMENT_REPLACED = 3;
0303:                        {
0304:                                ER_DOCUMENT_REPLACED,
0305:                                "L'implementazione della funzione documento () \u00e8 stata sostituita da 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:                                "il contesto non ha un documento proprietario." },
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:                                "local-name() ha troppi argomenti." },
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:                                "namespace-uri() ha troppi argomenti." },
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:                                "normalize-space() ha troppi argomenti." },
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:                                "number() ha troppi argomenti." },
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:                                "name() ha troppi argomenti." },
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:                                "string() ha troppi argomenti." },
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:                                "string-length() ha troppi argomenti." },
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:                                "La funzione translate() richiede tre argomenti." },
0351:
0352:                        /** Field ER_UNPARSEDENTITYURI_TAKES_1_ARG          */
0353:                        //  public static final int ER_UNPARSEDENTITYURI_TAKES_1_ARG = 13;
0354:                        { ER_UNPARSEDENTITYURI_TAKES_1_ARG,
0355:                                "La funzione unparsed-entity-uri richiede un argomento." },
0356:
0357:                        /** Field ER_NAMESPACEAXIS_NOT_IMPLEMENTED          */
0358:                        //  public static final int ER_NAMESPACEAXIS_NOT_IMPLEMENTED = 14;
0359:                        { ER_NAMESPACEAXIS_NOT_IMPLEMENTED,
0360:                                "namespace axis non ancora implementato." },
0361:
0362:                        /** Field ER_UNKNOWN_AXIS          */
0363:                        //  public static final int ER_UNKNOWN_AXIS = 15;
0364:                        { ER_UNKNOWN_AXIS, "asse sconosciuto: {0}" },
0365:
0366:                        /** Field ER_UNKNOWN_MATCH_OPERATION          */
0367:                        //  public static final int ER_UNKNOWN_MATCH_OPERATION = 16;
0368:                        { ER_UNKNOWN_MATCH_OPERATION,
0369:                                "operazione di corrispondenza sconosciuta." },
0370:
0371:                        /** Field ER_INCORRECT_ARG_LENGTH          */
0372:                        //  public static final int ER_INCORRECT_ARG_LENGTH = 17;
0373:                        { ER_INCORRECT_ARG_LENGTH,
0374:                                "Lunghezza argomento nella prova nodo processing-instruction() incorretta." },
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:                                "Impossibile convertire {0} in un numero" },
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:                                "Impossibile convertire {0} in un 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:                                "Impossibile convertire {0} in un 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:                                "Impossibile convertire {0} in un 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:                                "Modello corrispondenza previsto in getMatchScore!" },
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:                                "Impossibile richiamare la variabile denominata {0}" },
0405:
0406:                        /** Field ER_UNKNOWN_OPCODE          */
0407:                        //  public static final int ER_UNKNOWN_OPCODE = 24;
0408:                        { ER_UNKNOWN_OPCODE,
0409:                                "ERRORE! Codice operativo sconosciuto: {0}" },
0410:
0411:                        /** Field ER_EXTRA_ILLEGAL_TOKENS          */
0412:                        //  public static final int ER_EXTRA_ILLEGAL_TOKENS = 25;
0413:                        { ER_EXTRA_ILLEGAL_TOKENS,
0414:                                "Token aggiuntivi non validi: {0}" },
0415:
0416:                        /** Field ER_EXPECTED_DOUBLE_QUOTE          */
0417:                        //  public static final int ER_EXPECTED_DOUBLE_QUOTE = 26;
0418:                        { ER_EXPECTED_DOUBLE_QUOTE,
0419:                                "letterale con numero di apici errato... previsti i doppi apici." },
0420:
0421:                        /** Field ER_EXPECTED_SINGLE_QUOTE          */
0422:                        //  public static final int ER_EXPECTED_SINGLE_QUOTE = 27;
0423:                        { ER_EXPECTED_SINGLE_QUOTE,
0424:                                "letterale con numero di apici errato... previsto un solo apice." },
0425:
0426:                        /** Field ER_EMPTY_EXPRESSION          */
0427:                        //  public static final int ER_EMPTY_EXPRESSION = 28;
0428:                        { ER_EMPTY_EXPRESSION, "Espressione vuota." },
0429:
0430:                        /** Field ER_EXPECTED_BUT_FOUND          */
0431:                        //  public static final int ER_EXPECTED_BUT_FOUND = 29;
0432:                        { ER_EXPECTED_BUT_FOUND,
0433:                                "Era previsto {0}, ma \u00e8 stato trovato: {1}" },
0434:
0435:                        /** Field ER_INCORRECT_PROGRAMMER_ASSERTION          */
0436:                        //  public static final int ER_INCORRECT_PROGRAMMER_ASSERTION = 30;
0437:                        { ER_INCORRECT_PROGRAMMER_ASSERTION,
0438:                                "Asserzione programmatore errata. - {0}" },
0439:
0440:                        /** Field ER_BOOLEAN_ARG_NO_LONGER_OPTIONAL          */
0441:                        //  public static final int ER_BOOLEAN_ARG_NO_LONGER_OPTIONAL = 31;
0442:                        { ER_BOOLEAN_ARG_NO_LONGER_OPTIONAL,
0443:                                "Argomento boolean(...) non pi\u00f9 facoltativo con 19990709 XPath draft." },
0444:
0445:                        /** Field ER_FOUND_COMMA_BUT_NO_PRECEDING_ARG          */
0446:                        //  public static final int ER_FOUND_COMMA_BUT_NO_PRECEDING_ARG = 32;
0447:                        { ER_FOUND_COMMA_BUT_NO_PRECEDING_ARG,
0448:                                "Trovata ',' senza argomento che la precede." },
0449:
0450:                        /** Field ER_FOUND_COMMA_BUT_NO_FOLLOWING_ARG          */
0451:                        //  public static final int ER_FOUND_COMMA_BUT_NO_FOLLOWING_ARG = 33;
0452:                        { ER_FOUND_COMMA_BUT_NO_FOLLOWING_ARG,
0453:                                "Trovata ',' senza argomento che la segue." },
0454:
0455:                        /** Field ER_PREDICATE_ILLEGAL_SYNTAX          */
0456:                        //  public static final int ER_PREDICATE_ILLEGAL_SYNTAX = 34;
0457:                        {
0458:                                ER_PREDICATE_ILLEGAL_SYNTAX,
0459:                                "'..[predicato]' o '.[predicato]' \u00e8 una sintassi non valida. Utilizzare 'self::node()[predicato]'." },
0460:
0461:                        /** Field ER_ILLEGAL_AXIS_NAME          */
0462:                        //  public static final int ER_ILLEGAL_AXIS_NAME = 35;
0463:                        { ER_ILLEGAL_AXIS_NAME, "nome asse non valido: {0}" },
0464:
0465:                        /** Field ER_UNKNOWN_NODETYPE          */
0466:                        //  public static final int ER_UNKNOWN_NODETYPE = 36;
0467:                        { ER_UNKNOWN_NODETYPE, "Nodetype sconosciuto: {0}" },
0468:
0469:                        /** Field ER_PATTERN_LITERAL_NEEDS_BE_QUOTED          */
0470:                        //  public static final int ER_PATTERN_LITERAL_NEEDS_BE_QUOTED = 37;
0471:                        { ER_PATTERN_LITERAL_NEEDS_BE_QUOTED,
0472:                                "Il letterale modello ({0}) deve essere racchiuso fra virgolette." },
0473:
0474:                        /** Field ER_COULDNOT_BE_FORMATTED_TO_NUMBER          */
0475:                        //  public static final int ER_COULDNOT_BE_FORMATTED_TO_NUMBER = 38;
0476:                        { ER_COULDNOT_BE_FORMATTED_TO_NUMBER,
0477:                                "{0} non pu\u00f2 essere formattato in un numero." },
0478:
0479:                        /** Field ER_COULDNOT_CREATE_XMLPROCESSORLIAISON          */
0480:                        //  public static final int ER_COULDNOT_CREATE_XMLPROCESSORLIAISON = 39;
0481:                        { ER_COULDNOT_CREATE_XMLPROCESSORLIAISON,
0482:                                "Impossibile creare XML TransformerFactory Liaison: {0}" },
0483:
0484:                        /** Field ER_DIDNOT_FIND_XPATH_SELECT_EXP          */
0485:                        //  public static final int ER_DIDNOT_FIND_XPATH_SELECT_EXP = 40;
0486:                        { ER_DIDNOT_FIND_XPATH_SELECT_EXP,
0487:                                "Errore! Impossibile trovare espressione selezione xpath (-select)." },
0488:
0489:                        /** Field ER_COULDNOT_FIND_ENDOP_AFTER_OPLOCATIONPATH          */
0490:                        //  public static final int ER_COULDNOT_FIND_ENDOP_AFTER_OPLOCATIONPATH = 41;
0491:                        { ER_COULDNOT_FIND_ENDOP_AFTER_OPLOCATIONPATH,
0492:                                "ERRORE! Impossibile trovare ENDOP dopo OP_LOCATIONPATH" },
0493:
0494:                        /** Field ER_ERROR_OCCURED          */
0495:                        //  public static final int ER_ERROR_OCCURED = 42;
0496:                        { ER_ERROR_OCCURED, "Si \u00e8 verificato un errore." },
0497:
0498:                        /** Field ER_ILLEGAL_VARIABLE_REFERENCE          */
0499:                        //  public static final int ER_ILLEGAL_VARIABLE_REFERENCE = 43;
0500:                        {
0501:                                ER_ILLEGAL_VARIABLE_REFERENCE,
0502:                                "VariableReference fornito per la variabile \u00e8 fuori contesto o senza definizione.  Nome = {0}" },
0503:
0504:                        /** Field ER_AXES_NOT_ALLOWED          */
0505:                        //  public static final int ER_AXES_NOT_ALLOWED = 44;
0506:                        {
0507:                                ER_AXES_NOT_ALLOWED,
0508:                                "Sono consentiti solo gli assi child:: e attribute:: nei modelli di corrispondenza. Violazione asse = {0}" },
0509:
0510:                        /** Field ER_KEY_HAS_TOO_MANY_ARGS          */
0511:                        //  public static final int ER_KEY_HAS_TOO_MANY_ARGS = 45;
0512:                        { ER_KEY_HAS_TOO_MANY_ARGS,
0513:                                "key() con numero di argomenti scorretto." },
0514:
0515:                        /** Field ER_COUNT_TAKES_1_ARG          */
0516:                        //  public static final int ER_COUNT_TAKES_1_ARG = 46;
0517:                        { ER_COUNT_TAKES_1_ARG,
0518:                                "La funzione count richiede un argomento." },
0519:
0520:                        /** Field ER_COULDNOT_FIND_FUNCTION          */
0521:                        //  public static final int ER_COULDNOT_FIND_FUNCTION = 47;
0522:                        { ER_COULDNOT_FIND_FUNCTION,
0523:                                "Impossibile trovare la funzione: {0}" },
0524:
0525:                        /** Field ER_UNSUPPORTED_ENCODING          */
0526:                        //  public static final int ER_UNSUPPORTED_ENCODING = 48;
0527:                        { ER_UNSUPPORTED_ENCODING,
0528:                                "Codifica non supportata: {0}" },
0529:
0530:                        /** Field ER_PROBLEM_IN_DTM_NEXTSIBLING          */
0531:                        //  public static final int ER_PROBLEM_IN_DTM_NEXTSIBLING = 49;
0532:                        {
0533:                                ER_PROBLEM_IN_DTM_NEXTSIBLING,
0534:                                "Si \u00e8 verificato un problema in DTM durante l'esecuzione di getNextSibling... tentativo di recupero in corso" },
0535:
0536:                        /** Field ER_CANNOT_WRITE_TO_EMPTYNODELISTIMPL          */
0537:                        //  public static final int ER_CANNOT_WRITE_TO_EMPTYNODELISTIMPL = 50;
0538:                        { ER_CANNOT_WRITE_TO_EMPTYNODELISTIMPL,
0539:                                "Errore di programmazione: Impossibile scrivere su EmptyNodeList. " },
0540:
0541:                        /** Field ER_SETDOMFACTORY_NOT_SUPPORTED          */
0542:                        //  public static final int ER_SETDOMFACTORY_NOT_SUPPORTED = 51;
0543:                        { ER_SETDOMFACTORY_NOT_SUPPORTED,
0544:                                "setDOMFactory non supportato da XPathContext!" },
0545:
0546:                        /** Field ER_PREFIX_MUST_RESOLVE          */
0547:                        //  public static final int ER_PREFIX_MUST_RESOLVE = 52;
0548:                        { ER_PREFIX_MUST_RESOLVE,
0549:                                "Il prefisso deve risolvere in uno spazio nomi: {0}" },
0550:
0551:                        /** Field ER_PARSE_NOT_SUPPORTED          */
0552:                        //  public static final int ER_PARSE_NOT_SUPPORTED = 53;
0553:                        {
0554:                                ER_PARSE_NOT_SUPPORTED,
0555:                                "parse (InputSource source) non supportato in XPathContext! Impossibile aprire {0}" },
0556:
0557:                        /** Field ER_CREATEDOCUMENT_NOT_SUPPORTED          */
0558:                        //  public static final int ER_CREATEDOCUMENT_NOT_SUPPORTED = 54;
0559:                        //{ ER_CREATEDOCUMENT_NOT_SUPPORTED,
0560:                        //    "createDocument() not supported in XPathContext!"},
0561:                        /** Field ER_CHILD_HAS_NO_OWNER_DOCUMENT          */
0562:                        //  public static final int ER_CHILD_HAS_NO_OWNER_DOCUMENT = 55;
0563:                        //{ ER_CHILD_HAS_NO_OWNER_DOCUMENT,
0564:                        //    "Attribute child does not have an owner document!"},
0565:                        /** Field ER_CHILD_HAS_NO_OWNER_DOCUMENT_ELEMENT          */
0566:                        //  public static final int ER_CHILD_HAS_NO_OWNER_DOCUMENT_ELEMENT = 56;
0567:                        //{ ER_CHILD_HAS_NO_OWNER_DOCUMENT_ELEMENT,
0568:                        //    "Attribute child does not have an owner document element!"},
0569:                        /** Field ER_SAX_API_NOT_HANDLED          */
0570:                        //  public static final int ER_SAX_API_NOT_HANDLED = 57;
0571:                        { ER_SAX_API_NOT_HANDLED,
0572:                                "Caratteri SAX API (char ch[]... non gestiti da DTM!" },
0573:
0574:                        /** Field ER_IGNORABLE_WHITESPACE_NOT_HANDLED          */
0575:                        //public static final int ER_IGNORABLE_WHITESPACE_NOT_HANDLED = 58;
0576:                        { ER_IGNORABLE_WHITESPACE_NOT_HANDLED,
0577:                                "ignorableWhitespace(char ch[]... non gestiti da DTM!" },
0578:
0579:                        /** Field ER_DTM_CANNOT_HANDLE_NODES          */
0580:                        //  public static final int ER_DTM_CANNOT_HANDLE_NODES = 59;
0581:                        { ER_DTM_CANNOT_HANDLE_NODES,
0582:                                "DTMLiaison non pu\u00f2 gestire i nodi di tipo {0}" },
0583:
0584:                        /** Field ER_XERCES_CANNOT_HANDLE_NODES          */
0585:                        //  public static final int ER_XERCES_CANNOT_HANDLE_NODES = 60;
0586:                        { ER_XERCES_CANNOT_HANDLE_NODES,
0587:                                "DOM2Helper non pu\u00f2 gestire i nodi di tipo {0}" },
0588:
0589:                        /** Field ER_XERCES_PARSE_ERROR_DETAILS          */
0590:                        //  public static final int ER_XERCES_PARSE_ERROR_DETAILS = 61;
0591:                        { ER_XERCES_PARSE_ERROR_DETAILS,
0592:                                "Errore DOM2Helper.parse: SystemID - {0} riga - {1}" },
0593:
0594:                        /** Field ER_XERCES_PARSE_ERROR          */
0595:                        //  public static final int ER_XERCES_PARSE_ERROR = 62;
0596:                        { ER_XERCES_PARSE_ERROR, "Errore DOM2Helper.parse" },
0597:
0598:                        /** Field ER_CANT_OUTPUT_TEXT_BEFORE_DOC          */
0599:                        //  public static final int ER_CANT_OUTPUT_TEXT_BEFORE_DOC = 63;
0600:                        //{ ER_CANT_OUTPUT_TEXT_BEFORE_DOC,
0601:                        //   "Warning: can't output text before document element!  Ignoring..."},
0602:                        /** Field ER_CANT_HAVE_MORE_THAN_ONE_ROOT          */
0603:                        //  public static final int ER_CANT_HAVE_MORE_THAN_ONE_ROOT = 64;
0604:                        //{ ER_CANT_HAVE_MORE_THAN_ONE_ROOT,
0605:                        //   "Can't have more than one root on a DOM!"},
0606:                        /** Field ER_INVALID_UTF16_SURROGATE          */
0607:                        //  public static final int ER_INVALID_UTF16_SURROGATE = 65;
0608:                        { ER_INVALID_UTF16_SURROGATE,
0609:                                "Rilevato surrogato UTF-16 non valido: {0} ?" },
0610:
0611:                        /** Field ER_OIERROR          */
0612:                        //public static final int ER_OIERROR = 66;
0613:                        { ER_OIERROR, "Errore IO" },
0614:
0615:                        /** Field ER_CANNOT_CREATE_URL          */
0616:                        //public static final int ER_CANNOT_CREATE_URL = 67;
0617:                        { ER_CANNOT_CREATE_URL,
0618:                                "Impossibile creare url per: {0}" },
0619:
0620:                        /** Field ER_XPATH_READOBJECT          */
0621:                        //  public static final int ER_XPATH_READOBJECT = 68;
0622:                        { ER_XPATH_READOBJECT, "In XPath.readObject: {0}" },
0623:
0624:                        /** Field ER_FUNCTION_TOKEN_NOT_FOUND         */
0625:                        // public static final int ER_FUNCTION_TOKEN_NOT_FOUND = 69;
0626:                        { ER_FUNCTION_TOKEN_NOT_FOUND,
0627:                                "token funzione non trovato." },
0628:
0629:                        /**  Argument 'localName' is null  */
0630:                        // public static final int ER_ARG_LOCALNAME_NULL = 70;
0631:                        //{ ER_ARG_LOCALNAME_NULL,
0632:                        //     "Argument 'localName' is null"},
0633:                        /**  Can not deal with XPath type:   */
0634:                        //  public static final int ER_CANNOT_DEAL_XPATH_TYPE = 71;
0635:                        { ER_CANNOT_DEAL_XPATH_TYPE,
0636:                                "Impossibile gestire il tipo XPath: {0}" },
0637:
0638:                        /**  This NodeSet is not mutable  */
0639:                        // public static final int ER_NODESET_NOT_MUTABLE = 72;
0640:                        { ER_NODESET_NOT_MUTABLE,
0641:                                "Questo NodeSet non \u00e8 trasformabile" },
0642:
0643:                        /**  This NodeSetDTM is not mutable  */
0644:                        //  public static final int ER_NODESETDTM_NOT_MUTABLE = 73;
0645:                        { ER_NODESETDTM_NOT_MUTABLE,
0646:                                "Questo NodeSetDTM non \u00e8 trasformabile" },
0647:
0648:                        /**  Variable not resolvable:   */
0649:                        //  public static final int ER_VAR_NOT_RESOLVABLE = 74;
0650:                        { ER_VAR_NOT_RESOLVABLE,
0651:                                "Variabile non risolvibile: {0}" },
0652:
0653:                        /** Null error handler  */
0654:                        // public static final int ER_NULL_ERROR_HANDLER = 75;
0655:                        { ER_NULL_ERROR_HANDLER, "Handler errori nullo" },
0656:
0657:                        /**  Programmer's assertion: unknown opcode  */
0658:                        // public static final int ER_PROG_ASSERT_UNKNOWN_OPCODE = 76;
0659:                        { ER_PROG_ASSERT_UNKNOWN_OPCODE,
0660:                                "Asserzione di programma: codice operativo sconosciuto: {0}" },
0661:
0662:                        /**  0 or 1   */
0663:                        //  public static final int ER_ZERO_OR_ONE = 77;
0664:                        { ER_ZERO_OR_ONE, "0 oppure 1" },
0665:
0666:                        /**  rtf() not supported by XRTreeFragSelectWrapper   */
0667:                        //public static final int ER_RTF_NOT_SUPPORTED_XRTREEFRAGSELECTWRAPPER = 78;
0668:                        { ER_RTF_NOT_SUPPORTED_XRTREEFRAGSELECTWRAPPER,
0669:                                "rtf() non supportato da XRTreeFragSelectWrapper" },
0670:
0671:                        /**  asNodeIterator() not supported by XRTreeFragSelectWrapper   */
0672:                        //public static final int ER_ASNODEITERATOR_NOT_SUPPORTED_XRTREEFRAGSELECTWRAPPER = 79;
0673:                        { ER_RTF_NOT_SUPPORTED_XRTREEFRAGSELECTWRAPPER,
0674:                                "asNodeIterator() non supportato da XRTreeFragSelectWrapper" },
0675:
0676:                        /**  fsb() not supported for XStringForChars   */
0677:                        // public static final int ER_FSB_NOT_SUPPORTED_XSTRINGFORCHARS = 80;
0678:                        { ER_FSB_NOT_SUPPORTED_XSTRINGFORCHARS,
0679:                                "fsb() non supportato per XStringForChars" },
0680:
0681:                        /**  Could not find variable with the name of   */
0682:                        // public static final int ER_COULD_NOT_FIND_VAR = 81;
0683:                        { ER_COULD_NOT_FIND_VAR,
0684:                                "Impossibile trovare la variabile con il nome {0}" },
0685:
0686:                        /**  XStringForChars can not take a string for an argument   */
0687:                        // public static final int ER_XSTRINGFORCHARS_CANNOT_TAKE_STRING = 82;
0688:                        { ER_XSTRINGFORCHARS_CANNOT_TAKE_STRING,
0689:                                "XStringForChars non pu\u00f2 accettare una stringa come argomento" },
0690:
0691:                        /**  The FastStringBuffer argument can not be null   */
0692:                        // public static final int ER_FASTSTRINGBUFFER_CANNOT_BE_NULL = 83;
0693:                        { ER_FASTSTRINGBUFFER_CANNOT_BE_NULL,
0694:                                "L'argomento FastStringBuffer non pu\u00f2 essere nullo" },
0695:
0696:                        /* MANTIS_XALAN CHANGE: BEGIN */
0697:                        /**  2 or 3   */
0698:                        //  public static final int ER_TWO_OR_THREE = 84;
0699:                        { ER_TWO_OR_THREE, "2 o 3" },
0700:
0701:                        /** Variable accessed before it is bound! */
0702:                        //  public static final int ER_VARIABLE_ACCESSED_BEFORE_BIND = 85;
0703:                        { ER_VARIABLE_ACCESSED_BEFORE_BIND,
0704:                                "Variabile acceduta prima che fosse delimitata." },
0705:
0706:                        /** XStringForFSB can not take a string for an argument! */
0707:                        // public static final int ER_FSB_CANNOT_TAKE_STRING = 86;
0708:                        { ER_FSB_CANNOT_TAKE_STRING,
0709:                                "XStringForFSB non pu\u00f2 accettare una stringa come argomento. " },
0710:
0711:                        /** Error! Setting the root of a walker to null! */
0712:                        //  public static final int ER_SETTING_WALKER_ROOT_TO_NULL = 87;
0713:                        { ER_SETTING_WALKER_ROOT_TO_NULL,
0714:                                "\n !!!! Errore! Si sta impostando il nodo di partenza su null" },
0715:
0716:                        /** This NodeSetDTM can not iterate to a previous node! */
0717:                        //  public static final int ER_NODESETDTM_CANNOT_ITERATE = 88;
0718:                        { ER_NODESETDTM_CANNOT_ITERATE,
0719:                                "NodeSetDTM non pu\u00f2 collegarsi al nodo precedente" },
0720:
0721:                        /** This NodeSet can not iterate to a previous node! */
0722:                        // public static final int ER_NODESET_CANNOT_ITERATE = 89;
0723:                        { ER_NODESET_CANNOT_ITERATE,
0724:                                "NodeSet non pu\u00f2 collegarsi al nodo precedente" },
0725:
0726:                        /** This NodeSetDTM can not do indexing or counting functions! */
0727:                        //  public static final int ER_NODESETDTM_CANNOT_INDEX = 90;
0728:                        {
0729:                                ER_NODESETDTM_CANNOT_INDEX,
0730:                                "NodeSetDTM non pu\u00f2 eseguire l'indicizzazione o il conteggio delle funzioni." },
0731:
0732:                        /** This NodeSet can not do indexing or counting functions! */
0733:                        //  public static final int ER_NODESET_CANNOT_INDEX = 91;
0734:                        { ER_NODESET_CANNOT_INDEX,
0735:                                "NodeSet non pu\u00f2 eseguire l'indicizzazione o il conteggio delle funzioni." },
0736:
0737:                        /** Can not call setShouldCacheNodes after nextNode has been called! */
0738:                        //  public static final int ER_CANNOT_CALL_SETSHOULDCACHENODE = 92;
0739:                        { ER_CANNOT_CALL_SETSHOULDCACHENODE,
0740:                                "Impossibile chiamare setShouldCacheNodes dopo aver chiamato nextNode." },
0741:
0742:                        /** {0} only allows {1} arguments */
0743:                        // public static final int ER_ONLY_ALLOWS = 93;
0744:                        { ER_ONLY_ALLOWS, "{0} consente solo {1} argomenti" },
0745:
0746:                        /** Programmer's assertion in getNextStepPos: unknown stepType: {0} */
0747:                        //  public static final int ER_UNKNOWN_STEP = 94;
0748:                        { ER_UNKNOWN_STEP,
0749:                                "Asserzione di programma in getNextStepPos: stepType sconosciuto: {0}" },
0750:
0751:                        //Note to translators:  A relative location path is a form of XPath expression.
0752:                        // The message indicates that such an expression was expected following the
0753:                        // characters '/' or '//', but was not found.
0754:
0755:                        /** Problem with RelativeLocationPath */
0756:                        //  public static final int ER_EXPECTED_REL_LOC_PATH = 95;
0757:                        { ER_EXPECTED_REL_LOC_PATH,
0758:                                "Era previsto un percorso relativo dopo il token '/' oppure '//'. " },
0759:
0760:                        // Note to translators:  A location path is a form of XPath expression.
0761:                        // The message indicates that syntactically such an expression was expected,but
0762:                        // the characters specified by the substitution text were encountered instead.
0763:
0764:                        /** Problem with LocationPath */
0765:                        //  public static final int ER_EXPECTED_LOC_PATH = 96;
0766:                        {
0767:                                ER_EXPECTED_LOC_PATH,
0768:                                "Era previsto un percorso, ma \u00e8 stato rilevato il seguente token\u003a  {0}" },
0769:
0770:                        // Note to translators:  A location step is part of an XPath expression.
0771:                        // The message indicates that syntactically such an expression was expected
0772:                        // following the specified characters.
0773:
0774:                        /** Problem with Step */
0775:                        //  public static final int ER_EXPECTED_LOC_STEP = 97;
0776:                        { ER_EXPECTED_LOC_STEP,
0777:                                "Era previsto un passo di posizione dopo il token '/' oppure '//'. " },
0778:
0779:                        // Note to translators:  A node test is part of an XPath expression that is
0780:                        // used to test for particular kinds of nodes.  In this case, a node test that
0781:                        // consists of an NCName followed by a colon and an asterisk or that consists
0782:                        // of a QName was expected, but was not found.
0783:
0784:                        /** Problem with NodeTest */
0785:                        //  public static final int ER_EXPECTED_NODE_TEST = 98;
0786:                        { ER_EXPECTED_NODE_TEST,
0787:                                "Era prevista una prova nodo che corrisponde a NCName:* oppure a QName. " },
0788:
0789:                        // Note to translators:  A step pattern is part of an XPath expression.
0790:                        // The message indicates that syntactically such an expression was expected,
0791:                        // but the specified character was found in the expression instead.
0792:
0793:                        /** Expected step pattern */
0794:                        //  public static final int ER_EXPECTED_STEP_PATTERN = 99;
0795:                        { ER_EXPECTED_STEP_PATTERN,
0796:                                "Era previsto un modello passo, ma \u00e8 stato rilevato '/'. " },
0797:
0798:                        // Note to translators: A relative path pattern is part of an XPath expression.
0799:                        // The message indicates that syntactically such an expression was expected,
0800:                        // but was not found.
0801:
0802:                        /** Expected relative path pattern */
0803:                        //  public static final int ER_EXPECTED_REL_PATH_PATTERN = 100;
0804:                        { ER_EXPECTED_REL_PATH_PATTERN,
0805:                                "Era previsto un modello percorso relativo. " },
0806:
0807:                        // Note to translators:  A QNAME has the syntactic form [NCName:]NCName
0808:                        // The localname is the portion after the optional colon; the message indicates
0809:                        // that there is a problem with that part of the QNAME.
0810:
0811:                        /** localname in QNAME should be a valid NCName */
0812:                        //  public static final int ER_ARG_LOCALNAME_INVALID = 101;
0813:                        //{ ER_ARG_LOCALNAME_INVALID,
0814:                        //     "Localname in QNAME should be a valid NCName"},
0815:                        // Note to translators:  A QNAME has the syntactic form [NCName:]NCName
0816:                        // The prefix is the portion before the optional colon; the message indicates
0817:                        // that there is a problem with that part of the QNAME.
0818:                        /** prefix in QNAME should be a valid NCName */
0819:                        // public static final int ER_ARG_PREFIX_INVALID = 102;
0820:                        //{ ER_ARG_PREFIX_INVALID,
0821:                        //    "Prefix in QNAME should be a valid NCName"},
0822:                        // Note to translators:  The substitution text is the name of a data type.  The
0823:                        // message indicates that a value of a particular type could not be converted
0824:                        // to a value of type string.
0825:                        /** Field ER_CANT_CONVERT_TO_BOOLEAN          */
0826:                        //  public static final int ER_CANT_CONVERT_TO_BOOLEAN = 103;
0827:                        { ER_CANT_CONVERT_TO_BOOLEAN,
0828:                                "Impossibile convertire {0} in un booleano. " },
0829:
0830:                        // Note to translators: Do not translate ANY_UNORDERED_NODE_TYPE and
0831:                        // FIRST_ORDERED_NODE_TYPE.
0832:
0833:                        /** Field ER_CANT_CONVERT_TO_SINGLENODE       */
0834:                        //public static final int ER_CANT_CONVERT_TO_SINGLENODE = 104;
0835:                        {
0836:                                ER_CANT_CONVERT_TO_SINGLENODE,
0837:                                "Impossibile convertire {0} in un nodo singolo. Questo getter si applica ai tipi ANY_UNORDERED_NODE_TYPE e FIRST_ORDERED_NODE_TYPE." },
0838:
0839:                        // Note to translators: Do not translate UNORDERED_NODE_SNAPSHOT_TYPE and
0840:                        // ORDERED_NODE_SNAPSHOT_TYPE.
0841:
0842:                        /** Field ER_CANT_GET_SNAPSHOT_LENGTH         */
0843:                        //  public static final int ER_CANT_GET_SNAPSHOT_LENGTH = 105;
0844:                        {
0845:                                ER_CANT_GET_SNAPSHOT_LENGTH,
0846:                                "Impossibile richiamare la lunghezza istantanea per il tipo: {0}. Questo getter si applica ai tipi UNORDERED_NODE_SNAPSHOT_TYPE e ORDERED_NODE_SNAPSHOT_TYPE." },
0847:
0848:                        /** Field ER_NON_ITERATOR_TYPE                */
0849:                        //public static final int ER_NON_ITERATOR_TYPE        = 106;
0850:                        { ER_NON_ITERATOR_TYPE,
0851:                                "Impossibile collegarsi ad un tipo non iteratore: {0}" },
0852:
0853:                        // Note to translators: This message indicates that the document being operated
0854:                        // upon changed, so the iterator object that was being used to traverse the
0855:                        // document has now become invalid.
0856:
0857:                        /** Field ER_DOC_MUTATED                      */
0858:                        //  public static final int ER_DOC_MUTATED              = 107;
0859:                        {
0860:                                ER_DOC_MUTATED,
0861:                                "Documento modificato da quando \u00e8 stato restituito il risultato. Iteratore non valido. " },
0862:
0863:                        /** Field ER_INVALID_XPATH_TYPE               */
0864:                        //  public static final int ER_INVALID_XPATH_TYPE       = 108;
0865:                        { ER_INVALID_XPATH_TYPE,
0866:                                "Argomento di tipo XPath non valido: {0}" },
0867:
0868:                        /** Field ER_EMPTY_XPATH_RESULT                */
0869:                        //  public static final int ER_EMPTY_XPATH_RESULT       = 109;
0870:                        { ER_EMPTY_XPATH_RESULT,
0871:                                "Oggetto risultato XPath vuoto " },
0872:
0873:                        /** Field ER_INCOMPATIBLE_TYPES                */
0874:                        //  public static final int ER_INCOMPATIBLE_TYPES       = 110;
0875:                        { ER_INCOMPATIBLE_TYPES,
0876:                                "Il tipo restituito: {0} non pu\u00f2 essere forzato nel tipo specificato: {1}" },
0877:
0878:                        /** Field ER_NULL_RESOLVER                     */
0879:                        // public static final int ER_NULL_RESOLVER            = 111;
0880:                        { ER_NULL_RESOLVER,
0881:                                "Impossibile risolvere il prefisso con resolver di prefisso nullo. " },
0882:
0883:                        // Note to translators:  The substitution text is the name of a data type.  The
0884:                        // message indicates that a value of a particular type could not be converted
0885:                        // to a value of type string.
0886:
0887:                        /** Field ER_CANT_CONVERT_TO_STRING            */
0888:                        //  public static final int ER_CANT_CONVERT_TO_STRING   = 112;
0889:                        { ER_CANT_CONVERT_TO_STRING,
0890:                                "Impossibile convertire {0} in una stringa. " },
0891:
0892:                        // Note to translators: Do not translate snapshotItem,
0893:                        // UNORDERED_NODE_SNAPSHOT_TYPE and ORDERED_NODE_SNAPSHOT_TYPE.
0894:
0895:                        /** Field ER_NON_SNAPSHOT_TYPE                 */
0896:                        //  public static final int ER_NON_SNAPSHOT_TYPE       = 113;
0897:                        {
0898:                                ER_NON_SNAPSHOT_TYPE,
0899:                                "Impossibile richiamare snapshotItem sul tipo: {0}. Questo metodo si applica ai tipi UNORDERED_NODE_SNAPSHOT_TYPE e ORDERED_NODE_SNAPSHOT_TYPE." },
0900:
0901:                        // Note to translators:  XPathEvaluator is a Java interface name.  An
0902:                        // XPathEvaluator is created with respect to a particular XML document, and in
0903:                        // this case the expression represented by this object was being evaluated with
0904:                        // respect to a context node from a different document.
0905:
0906:                        /** Field ER_WRONG_DOCUMENT                    */
0907:                        //  public static final int ER_WRONG_DOCUMENT          = 114;
0908:                        {
0909:                                ER_WRONG_DOCUMENT,
0910:                                "Il nodo di contesto non appartiene al documento collegato a questo XPathEvaluator." },
0911:
0912:                        // Note to translators:  The XPath expression cannot be evaluated with respect
0913:                        // to this type of node.
0914:                        /** Field ER_WRONG_NODETYPE                    */
0915:                        //  public static final int ER_WRONG_NODETYPE          = 115;
0916:                        { ER_WRONG_NODETYPE,
0917:                                "Il tipo di nodo di contesto non \u00e8 supportato. " },
0918:
0919:                        /** Field ER_XPATH_ERROR                       */
0920:                        //  public static final int ER_XPATH_ERROR             = 116;
0921:                        { ER_XPATH_ERROR, "Errore sconosciuto in XPath." },
0922:
0923:                        // Warnings...
0924:
0925:                        /** Field WG_LOCALE_NAME_NOT_HANDLED          */
0926:                        //  public static final int WG_LOCALE_NAME_NOT_HANDLED = 1;
0927:                        { WG_LOCALE_NAME_NOT_HANDLED,
0928:                                "nome locale nella funzione format-number non ancora gestito." },
0929:
0930:                        /** Field WG_PROPERTY_NOT_SUPPORTED          */
0931:                        //  public static final int WG_PROPERTY_NOT_SUPPORTED = 2;
0932:                        { WG_PROPERTY_NOT_SUPPORTED,
0933:                                "Propriet\u00e0 XSL non supportata: {0}" },
0934:
0935:                        /** Field WG_DONT_DO_ANYTHING_WITH_NS          */
0936:                        //  public static final int WG_DONT_DO_ANYTHING_WITH_NS = 3;
0937:                        { WG_DONT_DO_ANYTHING_WITH_NS,
0938:                                "Non eseguire alcune azione per lo spazio nomi {0} nella propriet\u00e0: {1}" },
0939:
0940:                        /** Field WG_SECURITY_EXCEPTION          */
0941:                        // public static final int WG_SECURITY_EXCEPTION = 4;
0942:                        {
0943:                                WG_SECURITY_EXCEPTION,
0944:                                "SecurityException durante il tentativo di accesso alla propriet\u00e0 di sistema XSL: {0}" },
0945:
0946:                        /** Field WG_QUO_NO_LONGER_DEFINED          */
0947:                        //  public static final int WG_QUO_NO_LONGER_DEFINED = 5;
0948:                        { WG_QUO_NO_LONGER_DEFINED,
0949:                                "Sintassi obsoleta: quo(...) non \u00e8 pi\u00f9 definito in XPath." },
0950:
0951:                        /** Field WG_NEED_DERIVED_OBJECT_TO_IMPLEMENT_NODETEST          */
0952:                        // public static final int WG_NEED_DERIVED_OBJECT_TO_IMPLEMENT_NODETEST = 6;
0953:                        { WG_NEED_DERIVED_OBJECT_TO_IMPLEMENT_NODETEST,
0954:                                "XPath richiede un oggetto derivato per implementare nodeTest!" },
0955:
0956:                        /** Field WG_FUNCTION_TOKEN_NOT_FOUND          */
0957:                        //  public static final int WG_FUNCTION_TOKEN_NOT_FOUND = 7;
0958:                        { WG_FUNCTION_TOKEN_NOT_FOUND,
0959:                                "token funzione non trovato." },
0960:
0961:                        /** Field WG_COULDNOT_FIND_FUNCTION          */
0962:                        //  public static final int WG_COULDNOT_FIND_FUNCTION = 8;
0963:                        { WG_COULDNOT_FIND_FUNCTION,
0964:                                "Impossibile trovare la funzione: {0}" },
0965:
0966:                        /** Field WG_CANNOT_MAKE_URL_FROM          */
0967:                        //  public static final int WG_CANNOT_MAKE_URL_FROM = 9;
0968:                        { WG_CANNOT_MAKE_URL_FROM,
0969:                                "Impossibile ricavare l''URL da: {0}" },
0970:
0971:                        /** Field WG_EXPAND_ENTITIES_NOT_SUPPORTED          */
0972:                        //  public static final int WG_EXPAND_ENTITIES_NOT_SUPPORTED = 10;
0973:                        { WG_EXPAND_ENTITIES_NOT_SUPPORTED,
0974:                                "Opzione -E non supportata per il parser DTM" },
0975:
0976:                        /** Field WG_ILLEGAL_VARIABLE_REFERENCE          */
0977:                        //  public static final int WG_ILLEGAL_VARIABLE_REFERENCE = 11;
0978:                        {
0979:                                WG_ILLEGAL_VARIABLE_REFERENCE,
0980:                                "VariableReference fornito per la variabile \u00e8 fuori contesto o senza definizione.  Nome = {0}" },
0981:
0982:                        /** Field WG_UNSUPPORTED_ENCODING          */
0983:                        //  public static final int WG_UNSUPPORTED_ENCODING = 12;
0984:                        { WG_UNSUPPORTED_ENCODING,
0985:                                "Codifica non supportata: {0}" },
0986:
0987:                        // Other miscellaneous text used inside the code...
0988:                        { "ui_language", "it" },
0989:                        { "help_language", "it" },
0990:                        { "language", "it" },
0991:                        { "BAD_CODE",
0992:                                "Il parametro per createMessage fuori limite" },
0993:                        { "FORMAT_FAILED",
0994:                                "Rilevata eccezione durante la chiamata messageFormat" },
0995:                        { "version", ">>>>>>> Versione Xalan " },
0996:                        { "version2", "<<<<<<<" },
0997:                        { "yes", "s\u00ec" },
0998:                        { "line", "Riga #" },
0999:                        { "column", "Colonna #" },
1000:                        { "xsldone", "XSLProcessor: eseguito" },
1001:                        { "xpath_option", "opzioni xpath: " },
1002:                        { "optionIN", "   [-in inputXMLURL]" },
1003:                        { "optionSelect", "   [-select espressione xpath]" },
1004:                        { "optionMatch",
1005:                                "   [-match associa il modello (per le diagnostiche di corrispondenza)]" },
1006:                        { "optionAnyExpr",
1007:                                "Oppure per un'espressione xpath eseguir\u00e0 un dump diagnostico" },
1008:                        { "noParsermsg1", "Elaborazione XSL non riuscita." },
1009:                        { "noParsermsg2", "** Impossibile trovare il parser **" },
1010:                        { "noParsermsg3", "Controllare il classpath." },
1011:                        { "noParsermsg4",
1012:                                "Se non si possiede IBM XML Parser per Java, \u00e8 possibile scaricarlo da" },
1013:                        { "noParsermsg5",
1014:                                "IBM AlphaWorks: http://www.alphaworks.ibm.com/formula/xml" },
1015:                        { "gtone", ">1" }, { "zero", "0" }, { "one", "1" },
1016:                        { "two", "2" }, { "three", "3" }
1017:
1018:                };
1019:            }
1020:
1021:            // ================= INFRASTRUCTURE ======================
1022:
1023:            /** Field BAD_CODE          */
1024:            public static final String BAD_CODE = "BAD_CODE";
1025:
1026:            /** Field FORMAT_FAILED          */
1027:            public static final String FORMAT_FAILED = "FORMAT_FAILED";
1028:
1029:            /** Field ERROR_RESOURCES          */
1030:            public static final String ERROR_RESOURCES = "org.apache.xpath.res.XPATHErrorResources";
1031:
1032:            /** Field ERROR_STRING          */
1033:            public static final String ERROR_STRING = "#errore";
1034:
1035:            /** Field ERROR_HEADER          */
1036:            public static final String ERROR_HEADER = "Errore: ";
1037:
1038:            /** Field WARNING_HEADER          */
1039:            public static final String WARNING_HEADER = "Avvertenza: ";
1040:
1041:            /** Field XSL_HEADER          */
1042:            public static final String XSL_HEADER = "XSL ";
1043:
1044:            /** Field XML_HEADER          */
1045:            public static final String XML_HEADER = "XML ";
1046:
1047:            /** Field QUERY_HEADER          */
1048:            public static final String QUERY_HEADER = "MODELLO ";
1049:
1050:            /**
1051:             * Return a named ResourceBundle for a particular locale.  This method mimics the behavior
1052:             * of ResourceBundle.getBundle().
1053:             *
1054:             * @param className Name of local-specific subclass.
1055:             * @return the ResourceBundle
1056:             * @throws MissingResourceException
1057:             */
1058:            public static final XPATHErrorResources loadResourceBundle(
1059:                    String className) throws MissingResourceException {
1060:
1061:                Locale locale = Locale.getDefault();
1062:                String suffix = getResourceSuffix(locale);
1063:
1064:                try {
1065:
1066:                    // first try with the given locale
1067:                    return (XPATHErrorResources) ResourceBundle.getBundle(
1068:                            className + suffix, locale);
1069:                } catch (MissingResourceException e) {
1070:                    try // try to fall back to en_US if we can't load
1071:                    {
1072:
1073:                        // Since we can't find the localized property file,
1074:                        // fall back to en_US.
1075:                        return (XPATHErrorResources) ResourceBundle.getBundle(
1076:                                className, new Locale("it", "IT"));
1077:                    } catch (MissingResourceException e2) {
1078:
1079:                        // Now we are really in trouble.
1080:                        // very bad, definitely very bad...not going to get very far
1081:                        throw new MissingResourceException(
1082:                                "Could not load any resource bundles.",
1083:                                className, "");
1084:                    }
1085:                }
1086:            }
1087:
1088:            /**
1089:             * Return the resource file suffic for the indicated locale
1090:             * For most locales, this will be based the language code.  However
1091:             * for Chinese, we do distinguish between Taiwan and PRC
1092:             *
1093:             * @param locale the locale
1094:             * @return an String suffix which canbe appended to a resource name
1095:             */
1096:            private static final String getResourceSuffix(Locale locale) {
1097:
1098:                String suffix = "_" + locale.getLanguage();
1099:                String country = locale.getCountry();
1100:
1101:                if (country.equals("TW"))
1102:                    suffix += "_" + country;
1103:
1104:                return suffix;
1105:            }
1106:
1107:        }
www.java2java.com | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.