author | chegar |
Thu, 17 Oct 2019 20:54:25 +0100 | |
branch | datagramsocketimpl-branch |
changeset 58679 | 9c3209ff7550 |
parent 58678 | 9cf78a70fa4f |
parent 58627 | 92a18902b92c |
permissions | -rw-r--r-- |
12005 | 1 |
/* |
58620 | 2 |
* Copyright (c) 2019, Oracle and/or its affiliates. All rights reserved. |
12005 | 3 |
*/ |
4 |
/* |
|
44797
8b3b3b911b8a
8162572: Update License Header for all JAXP sources
joehw
parents:
40491
diff
changeset
|
5 |
* Licensed to the Apache Software Foundation (ASF) under one or more |
8b3b3b911b8a
8162572: Update License Header for all JAXP sources
joehw
parents:
40491
diff
changeset
|
6 |
* contributor license agreements. See the NOTICE file distributed with |
8b3b3b911b8a
8162572: Update License Header for all JAXP sources
joehw
parents:
40491
diff
changeset
|
7 |
* this work for additional information regarding copyright ownership. |
8b3b3b911b8a
8162572: Update License Header for all JAXP sources
joehw
parents:
40491
diff
changeset
|
8 |
* The ASF licenses this file to You under the Apache License, Version 2.0 |
8b3b3b911b8a
8162572: Update License Header for all JAXP sources
joehw
parents:
40491
diff
changeset
|
9 |
* (the "License"); you may not use this file except in compliance with |
8b3b3b911b8a
8162572: Update License Header for all JAXP sources
joehw
parents:
40491
diff
changeset
|
10 |
* the License. You may obtain a copy of the License at |
12005 | 11 |
* |
44797
8b3b3b911b8a
8162572: Update License Header for all JAXP sources
joehw
parents:
40491
diff
changeset
|
12 |
* http://www.apache.org/licenses/LICENSE-2.0 |
12005 | 13 |
* |
14 |
* Unless required by applicable law or agreed to in writing, software |
|
15 |
* distributed under the License is distributed on an "AS IS" BASIS, |
|
16 |
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
|
17 |
* See the License for the specific language governing permissions and |
|
18 |
* limitations under the License. |
|
19 |
*/ |
|
44797
8b3b3b911b8a
8162572: Update License Header for all JAXP sources
joehw
parents:
40491
diff
changeset
|
20 |
|
12005 | 21 |
package com.sun.org.apache.xpath.internal.res; |
22 |
||
23 |
import java.util.ListResourceBundle; |
|
24 |
||
25 |
/** |
|
26 |
* Set up error messages. |
|
27 |
* We build a two dimensional array of message keys and |
|
28 |
* message strings. In order to add a new message here, |
|
29 |
* you need to first add a Static string constant for the |
|
30 |
* Key and update the contents array with Key, Value pair |
|
31 |
* Also you need to update the count of messages(MAX_CODE)or |
|
32 |
* the count of warnings(MAX_WARNING) [ Information purpose only] |
|
33 |
* @xsl.usage advanced |
|
58620 | 34 |
* @LastModified: May 2019 |
12005 | 35 |
*/ |
36 |
public class XPATHErrorResources extends ListResourceBundle |
|
37 |
{ |
|
38 |
||
39 |
/* |
|
40 |
* General notes to translators: |
|
41 |
* |
|
42 |
* This file contains error and warning messages related to XPath Error |
|
43 |
* Handling. |
|
44 |
* |
|
45 |
* 1) Xalan (or more properly, Xalan-interpretive) and XSLTC are names of |
|
46 |
* components. |
|
47 |
* XSLT is an acronym for "XML Stylesheet Language: Transformations". |
|
48 |
* XSLTC is an acronym for XSLT Compiler. |
|
49 |
* |
|
50 |
* 2) A stylesheet is a description of how to transform an input XML document |
|
51 |
* into a resultant XML document (or HTML document or text). The |
|
52 |
* stylesheet itself is described in the form of an XML document. |
|
53 |
* |
|
54 |
* 3) A template is a component of a stylesheet that is used to match a |
|
55 |
* particular portion of an input document and specifies the form of the |
|
56 |
* corresponding portion of the output document. |
|
57 |
* |
|
58 |
* 4) An element is a mark-up tag in an XML document; an attribute is a |
|
59 |
* modifier on the tag. For example, in <elem attr='val' attr2='val2'> |
|
60 |
* "elem" is an element name, "attr" and "attr2" are attribute names with |
|
61 |
* the values "val" and "val2", respectively. |
|
62 |
* |
|
63 |
* 5) A namespace declaration is a special attribute that is used to associate |
|
64 |
* a prefix with a URI (the namespace). The meanings of element names and |
|
65 |
* attribute names that use that prefix are defined with respect to that |
|
66 |
* namespace. |
|
67 |
* |
|
68 |
* 6) "Translet" is an invented term that describes the class file that |
|
69 |
* results from compiling an XML stylesheet into a Java class. |
|
70 |
* |
|
71 |
* 7) XPath is a specification that describes a notation for identifying |
|
72 |
* nodes in a tree-structured representation of an XML document. An |
|
73 |
* instance of that notation is referred to as an XPath expression. |
|
74 |
* |
|
75 |
* 8) The context node is the node in the document with respect to which an |
|
76 |
* XPath expression is being evaluated. |
|
77 |
* |
|
78 |
* 9) An iterator is an object that traverses nodes in the tree, one at a time. |
|
79 |
* |
|
80 |
* 10) NCName is an XML term used to describe a name that does not contain a |
|
81 |
* colon (a "no-colon name"). |
|
82 |
* |
|
83 |
* 11) QName is an XML term meaning "qualified name". |
|
84 |
*/ |
|
85 |
||
86 |
/* |
|
87 |
* static variables |
|
88 |
*/ |
|
89 |
public static final String ERROR0000 = "ERROR0000"; |
|
90 |
public static final String ER_CURRENT_NOT_ALLOWED_IN_MATCH = |
|
91 |
"ER_CURRENT_NOT_ALLOWED_IN_MATCH"; |
|
92 |
public static final String ER_CURRENT_TAKES_NO_ARGS = |
|
93 |
"ER_CURRENT_TAKES_NO_ARGS"; |
|
94 |
public static final String ER_DOCUMENT_REPLACED = "ER_DOCUMENT_REPLACED"; |
|
40483
cb7f243e782d
6211561: XPath.evaluate(String,Object,QName) throws exception if context node is null
joehw
parents:
25868
diff
changeset
|
95 |
public static final String ER_CONTEXT_CAN_NOT_BE_NULL = "ER_CONTEXT_CAN_NOT_BE_NULL"; |
12005 | 96 |
public static final String ER_CONTEXT_HAS_NO_OWNERDOC = |
97 |
"ER_CONTEXT_HAS_NO_OWNERDOC"; |
|
98 |
public static final String ER_LOCALNAME_HAS_TOO_MANY_ARGS = |
|
99 |
"ER_LOCALNAME_HAS_TOO_MANY_ARGS"; |
|
100 |
public static final String ER_NAMESPACEURI_HAS_TOO_MANY_ARGS = |
|
101 |
"ER_NAMESPACEURI_HAS_TOO_MANY_ARGS"; |
|
102 |
public static final String ER_NORMALIZESPACE_HAS_TOO_MANY_ARGS = |
|
103 |
"ER_NORMALIZESPACE_HAS_TOO_MANY_ARGS"; |
|
104 |
public static final String ER_NUMBER_HAS_TOO_MANY_ARGS = |
|
105 |
"ER_NUMBER_HAS_TOO_MANY_ARGS"; |
|
106 |
public static final String ER_NAME_HAS_TOO_MANY_ARGS = |
|
107 |
"ER_NAME_HAS_TOO_MANY_ARGS"; |
|
108 |
public static final String ER_STRING_HAS_TOO_MANY_ARGS = |
|
109 |
"ER_STRING_HAS_TOO_MANY_ARGS"; |
|
110 |
public static final String ER_STRINGLENGTH_HAS_TOO_MANY_ARGS = |
|
111 |
"ER_STRINGLENGTH_HAS_TOO_MANY_ARGS"; |
|
112 |
public static final String ER_TRANSLATE_TAKES_3_ARGS = |
|
113 |
"ER_TRANSLATE_TAKES_3_ARGS"; |
|
114 |
public static final String ER_UNPARSEDENTITYURI_TAKES_1_ARG = |
|
115 |
"ER_UNPARSEDENTITYURI_TAKES_1_ARG"; |
|
116 |
public static final String ER_NAMESPACEAXIS_NOT_IMPLEMENTED = |
|
117 |
"ER_NAMESPACEAXIS_NOT_IMPLEMENTED"; |
|
118 |
public static final String ER_UNKNOWN_AXIS = "ER_UNKNOWN_AXIS"; |
|
119 |
public static final String ER_UNKNOWN_MATCH_OPERATION = |
|
120 |
"ER_UNKNOWN_MATCH_OPERATION"; |
|
121 |
public static final String ER_INCORRECT_ARG_LENGTH ="ER_INCORRECT_ARG_LENGTH"; |
|
122 |
public static final String ER_CANT_CONVERT_TO_NUMBER = |
|
123 |
"ER_CANT_CONVERT_TO_NUMBER"; |
|
124 |
public static final String ER_CANT_CONVERT_XPATHRESULTTYPE_TO_NUMBER = |
|
125 |
"ER_CANT_CONVERT_XPATHRESULTTYPE_TO_NUMBER"; |
|
126 |
public static final String ER_CANT_CONVERT_TO_NODELIST = |
|
127 |
"ER_CANT_CONVERT_TO_NODELIST"; |
|
128 |
public static final String ER_CANT_CONVERT_TO_MUTABLENODELIST = |
|
129 |
"ER_CANT_CONVERT_TO_MUTABLENODELIST"; |
|
130 |
public static final String ER_CANT_CONVERT_TO_TYPE ="ER_CANT_CONVERT_TO_TYPE"; |
|
131 |
public static final String ER_EXPECTED_MATCH_PATTERN = |
|
132 |
"ER_EXPECTED_MATCH_PATTERN"; |
|
133 |
public static final String ER_COULDNOT_GET_VAR_NAMED = |
|
134 |
"ER_COULDNOT_GET_VAR_NAMED"; |
|
135 |
public static final String ER_UNKNOWN_OPCODE = "ER_UNKNOWN_OPCODE"; |
|
136 |
public static final String ER_EXTRA_ILLEGAL_TOKENS ="ER_EXTRA_ILLEGAL_TOKENS"; |
|
137 |
public static final String ER_EXPECTED_DOUBLE_QUOTE = |
|
138 |
"ER_EXPECTED_DOUBLE_QUOTE"; |
|
139 |
public static final String ER_EXPECTED_SINGLE_QUOTE = |
|
140 |
"ER_EXPECTED_SINGLE_QUOTE"; |
|
141 |
public static final String ER_EMPTY_EXPRESSION = "ER_EMPTY_EXPRESSION"; |
|
142 |
public static final String ER_EXPECTED_BUT_FOUND = "ER_EXPECTED_BUT_FOUND"; |
|
143 |
public static final String ER_INCORRECT_PROGRAMMER_ASSERTION = |
|
144 |
"ER_INCORRECT_PROGRAMMER_ASSERTION"; |
|
145 |
public static final String ER_BOOLEAN_ARG_NO_LONGER_OPTIONAL = |
|
146 |
"ER_BOOLEAN_ARG_NO_LONGER_OPTIONAL"; |
|
147 |
public static final String ER_FOUND_COMMA_BUT_NO_PRECEDING_ARG = |
|
148 |
"ER_FOUND_COMMA_BUT_NO_PRECEDING_ARG"; |
|
149 |
public static final String ER_FOUND_COMMA_BUT_NO_FOLLOWING_ARG = |
|
150 |
"ER_FOUND_COMMA_BUT_NO_FOLLOWING_ARG"; |
|
151 |
public static final String ER_PREDICATE_ILLEGAL_SYNTAX = |
|
152 |
"ER_PREDICATE_ILLEGAL_SYNTAX"; |
|
58620 | 153 |
public static final String ER_PREDICATE_TOO_MANY_OPEN = |
154 |
"ER_PREDICATE_TOO_MANY_OPEN"; |
|
58627 | 155 |
public static final String ER_COMPILATION_TOO_MANY_OPERATION = |
156 |
"ER_COMPILATION_TOO_MANY_OPERATION"; |
|
12005 | 157 |
public static final String ER_ILLEGAL_AXIS_NAME = "ER_ILLEGAL_AXIS_NAME"; |
158 |
public static final String ER_UNKNOWN_NODETYPE = "ER_UNKNOWN_NODETYPE"; |
|
159 |
public static final String ER_PATTERN_LITERAL_NEEDS_BE_QUOTED = |
|
160 |
"ER_PATTERN_LITERAL_NEEDS_BE_QUOTED"; |
|
161 |
public static final String ER_COULDNOT_BE_FORMATTED_TO_NUMBER = |
|
162 |
"ER_COULDNOT_BE_FORMATTED_TO_NUMBER"; |
|
163 |
public static final String ER_COULDNOT_CREATE_XMLPROCESSORLIAISON = |
|
164 |
"ER_COULDNOT_CREATE_XMLPROCESSORLIAISON"; |
|
165 |
public static final String ER_DIDNOT_FIND_XPATH_SELECT_EXP = |
|
166 |
"ER_DIDNOT_FIND_XPATH_SELECT_EXP"; |
|
167 |
public static final String ER_COULDNOT_FIND_ENDOP_AFTER_OPLOCATIONPATH = |
|
168 |
"ER_COULDNOT_FIND_ENDOP_AFTER_OPLOCATIONPATH"; |
|
169 |
public static final String ER_ERROR_OCCURED = "ER_ERROR_OCCURED"; |
|
170 |
public static final String ER_ILLEGAL_VARIABLE_REFERENCE = |
|
171 |
"ER_ILLEGAL_VARIABLE_REFERENCE"; |
|
172 |
public static final String ER_AXES_NOT_ALLOWED = "ER_AXES_NOT_ALLOWED"; |
|
173 |
public static final String ER_KEY_HAS_TOO_MANY_ARGS = |
|
174 |
"ER_KEY_HAS_TOO_MANY_ARGS"; |
|
175 |
public static final String ER_COUNT_TAKES_1_ARG = "ER_COUNT_TAKES_1_ARG"; |
|
176 |
public static final String ER_COULDNOT_FIND_FUNCTION = |
|
177 |
"ER_COULDNOT_FIND_FUNCTION"; |
|
178 |
public static final String ER_UNSUPPORTED_ENCODING ="ER_UNSUPPORTED_ENCODING"; |
|
179 |
public static final String ER_PROBLEM_IN_DTM_NEXTSIBLING = |
|
180 |
"ER_PROBLEM_IN_DTM_NEXTSIBLING"; |
|
181 |
public static final String ER_CANNOT_WRITE_TO_EMPTYNODELISTIMPL = |
|
182 |
"ER_CANNOT_WRITE_TO_EMPTYNODELISTIMPL"; |
|
183 |
public static final String ER_SETDOMFACTORY_NOT_SUPPORTED = |
|
184 |
"ER_SETDOMFACTORY_NOT_SUPPORTED"; |
|
185 |
public static final String ER_PREFIX_MUST_RESOLVE = "ER_PREFIX_MUST_RESOLVE"; |
|
186 |
public static final String ER_PARSE_NOT_SUPPORTED = "ER_PARSE_NOT_SUPPORTED"; |
|
187 |
public static final String ER_SAX_API_NOT_HANDLED = "ER_SAX_API_NOT_HANDLED"; |
|
188 |
public static final String ER_IGNORABLE_WHITESPACE_NOT_HANDLED = |
|
189 |
"ER_IGNORABLE_WHITESPACE_NOT_HANDLED"; |
|
190 |
public static final String ER_DTM_CANNOT_HANDLE_NODES = |
|
191 |
"ER_DTM_CANNOT_HANDLE_NODES"; |
|
192 |
public static final String ER_XERCES_CANNOT_HANDLE_NODES = |
|
193 |
"ER_XERCES_CANNOT_HANDLE_NODES"; |
|
194 |
public static final String ER_XERCES_PARSE_ERROR_DETAILS = |
|
195 |
"ER_XERCES_PARSE_ERROR_DETAILS"; |
|
196 |
public static final String ER_XERCES_PARSE_ERROR = "ER_XERCES_PARSE_ERROR"; |
|
197 |
public static final String ER_INVALID_UTF16_SURROGATE = |
|
198 |
"ER_INVALID_UTF16_SURROGATE"; |
|
199 |
public static final String ER_OIERROR = "ER_OIERROR"; |
|
200 |
public static final String ER_CANNOT_CREATE_URL = "ER_CANNOT_CREATE_URL"; |
|
201 |
public static final String ER_XPATH_READOBJECT = "ER_XPATH_READOBJECT"; |
|
202 |
public static final String ER_FUNCTION_TOKEN_NOT_FOUND = |
|
203 |
"ER_FUNCTION_TOKEN_NOT_FOUND"; |
|
204 |
public static final String ER_CANNOT_DEAL_XPATH_TYPE = |
|
205 |
"ER_CANNOT_DEAL_XPATH_TYPE"; |
|
206 |
public static final String ER_NODESET_NOT_MUTABLE = "ER_NODESET_NOT_MUTABLE"; |
|
207 |
public static final String ER_NODESETDTM_NOT_MUTABLE = |
|
208 |
"ER_NODESETDTM_NOT_MUTABLE"; |
|
209 |
/** Variable not resolvable: */ |
|
210 |
public static final String ER_VAR_NOT_RESOLVABLE = "ER_VAR_NOT_RESOLVABLE"; |
|
211 |
/** Null error handler */ |
|
212 |
public static final String ER_NULL_ERROR_HANDLER = "ER_NULL_ERROR_HANDLER"; |
|
213 |
/** Programmer's assertion: unknown opcode */ |
|
214 |
public static final String ER_PROG_ASSERT_UNKNOWN_OPCODE = |
|
215 |
"ER_PROG_ASSERT_UNKNOWN_OPCODE"; |
|
216 |
/** 0 or 1 */ |
|
217 |
public static final String ER_ZERO_OR_ONE = "ER_ZERO_OR_ONE"; |
|
218 |
/** rtf() not supported by XRTreeFragSelectWrapper */ |
|
219 |
public static final String ER_RTF_NOT_SUPPORTED_XRTREEFRAGSELECTWRAPPER = |
|
220 |
"ER_RTF_NOT_SUPPORTED_XRTREEFRAGSELECTWRAPPER"; |
|
221 |
/** asNodeIterator() not supported by XRTreeFragSelectWrapper */ |
|
222 |
public static final String ER_ASNODEITERATOR_NOT_SUPPORTED_XRTREEFRAGSELECTWRAPPER = "ER_ASNODEITERATOR_NOT_SUPPORTED_XRTREEFRAGSELECTWRAPPER"; |
|
223 |
/** fsb() not supported for XStringForChars */ |
|
224 |
public static final String ER_FSB_NOT_SUPPORTED_XSTRINGFORCHARS = |
|
225 |
"ER_FSB_NOT_SUPPORTED_XSTRINGFORCHARS"; |
|
226 |
/** Could not find variable with the name of */ |
|
227 |
public static final String ER_COULD_NOT_FIND_VAR = "ER_COULD_NOT_FIND_VAR"; |
|
228 |
/** XStringForChars can not take a string for an argument */ |
|
229 |
public static final String ER_XSTRINGFORCHARS_CANNOT_TAKE_STRING = |
|
230 |
"ER_XSTRINGFORCHARS_CANNOT_TAKE_STRING"; |
|
231 |
/** The FastStringBuffer argument can not be null */ |
|
232 |
public static final String ER_FASTSTRINGBUFFER_CANNOT_BE_NULL = |
|
233 |
"ER_FASTSTRINGBUFFER_CANNOT_BE_NULL"; |
|
234 |
/** 2 or 3 */ |
|
235 |
public static final String ER_TWO_OR_THREE = "ER_TWO_OR_THREE"; |
|
236 |
/** Variable accessed before it is bound! */ |
|
237 |
public static final String ER_VARIABLE_ACCESSED_BEFORE_BIND = |
|
238 |
"ER_VARIABLE_ACCESSED_BEFORE_BIND"; |
|
239 |
/** XStringForFSB can not take a string for an argument! */ |
|
240 |
public static final String ER_FSB_CANNOT_TAKE_STRING = |
|
241 |
"ER_FSB_CANNOT_TAKE_STRING"; |
|
242 |
/** Error! Setting the root of a walker to null! */ |
|
243 |
public static final String ER_SETTING_WALKER_ROOT_TO_NULL = |
|
244 |
"ER_SETTING_WALKER_ROOT_TO_NULL"; |
|
245 |
/** This NodeSetDTM can not iterate to a previous node! */ |
|
246 |
public static final String ER_NODESETDTM_CANNOT_ITERATE = |
|
247 |
"ER_NODESETDTM_CANNOT_ITERATE"; |
|
248 |
/** This NodeSet can not iterate to a previous node! */ |
|
249 |
public static final String ER_NODESET_CANNOT_ITERATE = |
|
250 |
"ER_NODESET_CANNOT_ITERATE"; |
|
251 |
/** This NodeSetDTM can not do indexing or counting functions! */ |
|
252 |
public static final String ER_NODESETDTM_CANNOT_INDEX = |
|
253 |
"ER_NODESETDTM_CANNOT_INDEX"; |
|
254 |
/** This NodeSet can not do indexing or counting functions! */ |
|
255 |
public static final String ER_NODESET_CANNOT_INDEX = |
|
256 |
"ER_NODESET_CANNOT_INDEX"; |
|
257 |
/** Can not call setShouldCacheNodes after nextNode has been called! */ |
|
258 |
public static final String ER_CANNOT_CALL_SETSHOULDCACHENODE = |
|
259 |
"ER_CANNOT_CALL_SETSHOULDCACHENODE"; |
|
260 |
/** {0} only allows {1} arguments */ |
|
261 |
public static final String ER_ONLY_ALLOWS = "ER_ONLY_ALLOWS"; |
|
262 |
/** Programmer's assertion in getNextStepPos: unknown stepType: {0} */ |
|
263 |
public static final String ER_UNKNOWN_STEP = "ER_UNKNOWN_STEP"; |
|
264 |
/** Problem with RelativeLocationPath */ |
|
265 |
public static final String ER_EXPECTED_REL_LOC_PATH = |
|
266 |
"ER_EXPECTED_REL_LOC_PATH"; |
|
267 |
/** Problem with LocationPath */ |
|
268 |
public static final String ER_EXPECTED_LOC_PATH = "ER_EXPECTED_LOC_PATH"; |
|
269 |
public static final String ER_EXPECTED_LOC_PATH_AT_END_EXPR = |
|
270 |
"ER_EXPECTED_LOC_PATH_AT_END_EXPR"; |
|
271 |
/** Problem with Step */ |
|
272 |
public static final String ER_EXPECTED_LOC_STEP = "ER_EXPECTED_LOC_STEP"; |
|
273 |
/** Problem with NodeTest */ |
|
274 |
public static final String ER_EXPECTED_NODE_TEST = "ER_EXPECTED_NODE_TEST"; |
|
275 |
/** Expected step pattern */ |
|
276 |
public static final String ER_EXPECTED_STEP_PATTERN = |
|
277 |
"ER_EXPECTED_STEP_PATTERN"; |
|
278 |
/** Expected relative path pattern */ |
|
279 |
public static final String ER_EXPECTED_REL_PATH_PATTERN = |
|
280 |
"ER_EXPECTED_REL_PATH_PATTERN"; |
|
281 |
/** ER_CANT_CONVERT_XPATHRESULTTYPE_TO_BOOLEAN */ |
|
282 |
public static final String ER_CANT_CONVERT_TO_BOOLEAN = |
|
283 |
"ER_CANT_CONVERT_TO_BOOLEAN"; |
|
284 |
/** Field ER_CANT_CONVERT_TO_SINGLENODE */ |
|
285 |
public static final String ER_CANT_CONVERT_TO_SINGLENODE = |
|
286 |
"ER_CANT_CONVERT_TO_SINGLENODE"; |
|
287 |
/** Field ER_CANT_GET_SNAPSHOT_LENGTH */ |
|
288 |
public static final String ER_CANT_GET_SNAPSHOT_LENGTH = |
|
289 |
"ER_CANT_GET_SNAPSHOT_LENGTH"; |
|
290 |
/** Field ER_NON_ITERATOR_TYPE */ |
|
291 |
public static final String ER_NON_ITERATOR_TYPE = "ER_NON_ITERATOR_TYPE"; |
|
292 |
/** Field ER_DOC_MUTATED */ |
|
293 |
public static final String ER_DOC_MUTATED = "ER_DOC_MUTATED"; |
|
294 |
public static final String ER_INVALID_XPATH_TYPE = "ER_INVALID_XPATH_TYPE"; |
|
295 |
public static final String ER_EMPTY_XPATH_RESULT = "ER_EMPTY_XPATH_RESULT"; |
|
296 |
public static final String ER_INCOMPATIBLE_TYPES = "ER_INCOMPATIBLE_TYPES"; |
|
297 |
public static final String ER_NULL_RESOLVER = "ER_NULL_RESOLVER"; |
|
298 |
public static final String ER_CANT_CONVERT_TO_STRING = |
|
299 |
"ER_CANT_CONVERT_TO_STRING"; |
|
300 |
public static final String ER_NON_SNAPSHOT_TYPE = "ER_NON_SNAPSHOT_TYPE"; |
|
301 |
public static final String ER_WRONG_DOCUMENT = "ER_WRONG_DOCUMENT"; |
|
302 |
/* Note to translators: The XPath expression cannot be evaluated with respect |
|
303 |
* to this type of node. |
|
304 |
*/ |
|
305 |
/** Field ER_WRONG_NODETYPE */ |
|
306 |
public static final String ER_WRONG_NODETYPE = "ER_WRONG_NODETYPE"; |
|
307 |
public static final String ER_XPATH_ERROR = "ER_XPATH_ERROR"; |
|
308 |
||
309 |
//BEGIN: Keys needed for exception messages of JAXP 1.3 XPath API implementation |
|
310 |
public static final String ER_EXTENSION_FUNCTION_CANNOT_BE_INVOKED = "ER_EXTENSION_FUNCTION_CANNOT_BE_INVOKED"; |
|
311 |
public static final String ER_RESOLVE_VARIABLE_RETURNS_NULL = "ER_RESOLVE_VARIABLE_RETURNS_NULL"; |
|
312 |
public static final String ER_UNSUPPORTED_RETURN_TYPE = "ER_UNSUPPORTED_RETURN_TYPE"; |
|
313 |
public static final String ER_SOURCE_RETURN_TYPE_CANNOT_BE_NULL = "ER_SOURCE_RETURN_TYPE_CANNOT_BE_NULL"; |
|
314 |
public static final String ER_ARG_CANNOT_BE_NULL = "ER_ARG_CANNOT_BE_NULL"; |
|
315 |
||
316 |
public static final String ER_OBJECT_MODEL_NULL = "ER_OBJECT_MODEL_NULL"; |
|
317 |
public static final String ER_OBJECT_MODEL_EMPTY = "ER_OBJECT_MODEL_EMPTY"; |
|
318 |
public static final String ER_FEATURE_NAME_NULL = "ER_FEATURE_NAME_NULL"; |
|
319 |
public static final String ER_FEATURE_UNKNOWN = "ER_FEATURE_UNKNOWN"; |
|
320 |
public static final String ER_GETTING_NULL_FEATURE = "ER_GETTING_NULL_FEATURE"; |
|
321 |
public static final String ER_GETTING_UNKNOWN_FEATURE = "ER_GETTING_UNKNOWN_FEATURE"; |
|
322 |
public static final String ER_SECUREPROCESSING_FEATURE = "ER_SECUREPROCESSING_FEATURE"; |
|
323 |
public static final String ER_NULL_XPATH_FUNCTION_RESOLVER = "ER_NULL_XPATH_FUNCTION_RESOLVER"; |
|
324 |
public static final String ER_NULL_XPATH_VARIABLE_RESOLVER = "ER_NULL_XPATH_VARIABLE_RESOLVER"; |
|
325 |
//END: Keys needed for exception messages of JAXP 1.3 XPath API implementation |
|
326 |
||
327 |
public static final String WG_LOCALE_NAME_NOT_HANDLED = |
|
328 |
"WG_LOCALE_NAME_NOT_HANDLED"; |
|
329 |
public static final String WG_PROPERTY_NOT_SUPPORTED = |
|
330 |
"WG_PROPERTY_NOT_SUPPORTED"; |
|
331 |
public static final String WG_DONT_DO_ANYTHING_WITH_NS = |
|
332 |
"WG_DONT_DO_ANYTHING_WITH_NS"; |
|
333 |
public static final String WG_SECURITY_EXCEPTION = "WG_SECURITY_EXCEPTION"; |
|
334 |
public static final String WG_QUO_NO_LONGER_DEFINED = |
|
335 |
"WG_QUO_NO_LONGER_DEFINED"; |
|
336 |
public static final String WG_NEED_DERIVED_OBJECT_TO_IMPLEMENT_NODETEST = |
|
337 |
"WG_NEED_DERIVED_OBJECT_TO_IMPLEMENT_NODETEST"; |
|
338 |
public static final String WG_FUNCTION_TOKEN_NOT_FOUND = |
|
339 |
"WG_FUNCTION_TOKEN_NOT_FOUND"; |
|
340 |
public static final String WG_COULDNOT_FIND_FUNCTION = |
|
341 |
"WG_COULDNOT_FIND_FUNCTION"; |
|
342 |
public static final String WG_CANNOT_MAKE_URL_FROM ="WG_CANNOT_MAKE_URL_FROM"; |
|
343 |
public static final String WG_EXPAND_ENTITIES_NOT_SUPPORTED = |
|
344 |
"WG_EXPAND_ENTITIES_NOT_SUPPORTED"; |
|
345 |
public static final String WG_ILLEGAL_VARIABLE_REFERENCE = |
|
346 |
"WG_ILLEGAL_VARIABLE_REFERENCE"; |
|
347 |
public static final String WG_UNSUPPORTED_ENCODING ="WG_UNSUPPORTED_ENCODING"; |
|
348 |
||
349 |
/** detach() not supported by XRTreeFragSelectWrapper */ |
|
350 |
public static final String ER_DETACH_NOT_SUPPORTED_XRTREEFRAGSELECTWRAPPER = |
|
351 |
"ER_DETACH_NOT_SUPPORTED_XRTREEFRAGSELECTWRAPPER"; |
|
352 |
/** num() not supported by XRTreeFragSelectWrapper */ |
|
353 |
public static final String ER_NUM_NOT_SUPPORTED_XRTREEFRAGSELECTWRAPPER = |
|
354 |
"ER_NUM_NOT_SUPPORTED_XRTREEFRAGSELECTWRAPPER"; |
|
355 |
/** xstr() not supported by XRTreeFragSelectWrapper */ |
|
356 |
public static final String ER_XSTR_NOT_SUPPORTED_XRTREEFRAGSELECTWRAPPER = |
|
357 |
"ER_XSTR_NOT_SUPPORTED_XRTREEFRAGSELECTWRAPPER"; |
|
358 |
/** str() not supported by XRTreeFragSelectWrapper */ |
|
359 |
public static final String ER_STR_NOT_SUPPORTED_XRTREEFRAGSELECTWRAPPER = |
|
360 |
"ER_STR_NOT_SUPPORTED_XRTREEFRAGSELECTWRAPPER"; |
|
361 |
||
362 |
// Error messages... |
|
363 |
||
364 |
private static final Object[][] _contents = new Object[][]{ |
|
365 |
||
366 |
{ "ERROR0000" , "{0}" }, |
|
367 |
||
368 |
{ ER_CURRENT_NOT_ALLOWED_IN_MATCH, "The current() function is not allowed in a match pattern!" }, |
|
369 |
||
370 |
{ ER_CURRENT_TAKES_NO_ARGS, "The current() function does not accept arguments!" }, |
|
371 |
||
372 |
{ ER_DOCUMENT_REPLACED, |
|
373 |
"document() function implementation has been replaced by com.sun.org.apache.xalan.internal.xslt.FuncDocument!"}, |
|
374 |
||
40483
cb7f243e782d
6211561: XPath.evaluate(String,Object,QName) throws exception if context node is null
joehw
parents:
25868
diff
changeset
|
375 |
{ ER_CONTEXT_CAN_NOT_BE_NULL, |
cb7f243e782d
6211561: XPath.evaluate(String,Object,QName) throws exception if context node is null
joehw
parents:
25868
diff
changeset
|
376 |
"The context can not be null when the operation is context-dependent."}, |
cb7f243e782d
6211561: XPath.evaluate(String,Object,QName) throws exception if context node is null
joehw
parents:
25868
diff
changeset
|
377 |
|
12005 | 378 |
{ ER_CONTEXT_HAS_NO_OWNERDOC, |
379 |
"context does not have an owner document!"}, |
|
380 |
||
381 |
{ ER_LOCALNAME_HAS_TOO_MANY_ARGS, |
|
382 |
"local-name() has too many arguments."}, |
|
383 |
||
384 |
{ ER_NAMESPACEURI_HAS_TOO_MANY_ARGS, |
|
385 |
"namespace-uri() has too many arguments."}, |
|
386 |
||
387 |
{ ER_NORMALIZESPACE_HAS_TOO_MANY_ARGS, |
|
388 |
"normalize-space() has too many arguments."}, |
|
389 |
||
390 |
{ ER_NUMBER_HAS_TOO_MANY_ARGS, |
|
391 |
"number() has too many arguments."}, |
|
392 |
||
393 |
{ ER_NAME_HAS_TOO_MANY_ARGS, |
|
394 |
"name() has too many arguments."}, |
|
395 |
||
396 |
{ ER_STRING_HAS_TOO_MANY_ARGS, |
|
397 |
"string() has too many arguments."}, |
|
398 |
||
399 |
{ ER_STRINGLENGTH_HAS_TOO_MANY_ARGS, |
|
400 |
"string-length() has too many arguments."}, |
|
401 |
||
402 |
{ ER_TRANSLATE_TAKES_3_ARGS, |
|
403 |
"The translate() function takes three arguments!"}, |
|
404 |
||
405 |
{ ER_UNPARSEDENTITYURI_TAKES_1_ARG, |
|
406 |
"The unparsed-entity-uri function should take one argument!"}, |
|
407 |
||
408 |
{ ER_NAMESPACEAXIS_NOT_IMPLEMENTED, |
|
409 |
"namespace axis not implemented yet!"}, |
|
410 |
||
411 |
{ ER_UNKNOWN_AXIS, |
|
412 |
"unknown axis: {0}"}, |
|
413 |
||
414 |
{ ER_UNKNOWN_MATCH_OPERATION, |
|
415 |
"unknown match operation!"}, |
|
416 |
||
417 |
{ ER_INCORRECT_ARG_LENGTH, |
|
418 |
"Arg length of processing-instruction() node test is incorrect!"}, |
|
419 |
||
420 |
{ ER_CANT_CONVERT_TO_NUMBER, |
|
421 |
"Can not convert {0} to a number"}, |
|
422 |
||
423 |
{ ER_CANT_CONVERT_TO_NODELIST, |
|
424 |
"Can not convert {0} to a NodeList!"}, |
|
425 |
||
426 |
{ ER_CANT_CONVERT_TO_MUTABLENODELIST, |
|
427 |
"Can not convert {0} to a NodeSetDTM!"}, |
|
428 |
||
429 |
{ ER_CANT_CONVERT_TO_TYPE, |
|
430 |
"Can not convert {0} to a type#{1}"}, |
|
431 |
||
432 |
{ ER_EXPECTED_MATCH_PATTERN, |
|
433 |
"Expected match pattern in getMatchScore!"}, |
|
434 |
||
435 |
{ ER_COULDNOT_GET_VAR_NAMED, |
|
436 |
"Could not get variable named {0}"}, |
|
437 |
||
438 |
{ ER_UNKNOWN_OPCODE, |
|
439 |
"ERROR! Unknown op code: {0}"}, |
|
440 |
||
441 |
{ ER_EXTRA_ILLEGAL_TOKENS, |
|
442 |
"Extra illegal tokens: {0}"}, |
|
443 |
||
444 |
{ ER_EXPECTED_DOUBLE_QUOTE, |
|
445 |
"misquoted literal... expected double quote!"}, |
|
446 |
||
447 |
{ ER_EXPECTED_SINGLE_QUOTE, |
|
448 |
"misquoted literal... expected single quote!"}, |
|
449 |
||
450 |
{ ER_EMPTY_EXPRESSION, |
|
451 |
"Empty expression!"}, |
|
452 |
||
453 |
{ ER_EXPECTED_BUT_FOUND, |
|
454 |
"Expected {0}, but found: {1}"}, |
|
455 |
||
456 |
{ ER_INCORRECT_PROGRAMMER_ASSERTION, |
|
457 |
"Programmer assertion is incorrect! - {0}"}, |
|
458 |
||
459 |
{ ER_BOOLEAN_ARG_NO_LONGER_OPTIONAL, |
|
460 |
"boolean(...) argument is no longer optional with 19990709 XPath draft."}, |
|
461 |
||
462 |
{ ER_FOUND_COMMA_BUT_NO_PRECEDING_ARG, |
|
463 |
"Found ',' but no preceding argument!"}, |
|
464 |
||
465 |
{ ER_FOUND_COMMA_BUT_NO_FOLLOWING_ARG, |
|
466 |
"Found ',' but no following argument!"}, |
|
467 |
||
468 |
{ ER_PREDICATE_ILLEGAL_SYNTAX, |
|
469 |
"'..[predicate]' or '.[predicate]' is illegal syntax. Use 'self::node()[predicate]' instead."}, |
|
470 |
||
58620 | 471 |
{ ER_PREDICATE_TOO_MANY_OPEN, |
58627 | 472 |
"Stack overflow while parsing {0} at {1}. Too many open predicates({2})."}, |
473 |
||
474 |
{ ER_COMPILATION_TOO_MANY_OPERATION, |
|
475 |
"Stack overflow while compiling the expression. Too many operations({0})."}, |
|
58620 | 476 |
|
12005 | 477 |
{ ER_ILLEGAL_AXIS_NAME, |
478 |
"illegal axis name: {0}"}, |
|
479 |
||
480 |
{ ER_UNKNOWN_NODETYPE, |
|
481 |
"Unknown nodetype: {0}"}, |
|
482 |
||
483 |
{ ER_PATTERN_LITERAL_NEEDS_BE_QUOTED, |
|
484 |
"Pattern literal ({0}) needs to be quoted!"}, |
|
485 |
||
486 |
{ ER_COULDNOT_BE_FORMATTED_TO_NUMBER, |
|
487 |
"{0} could not be formatted to a number!"}, |
|
488 |
||
489 |
{ ER_COULDNOT_CREATE_XMLPROCESSORLIAISON, |
|
490 |
"Could not create XML TransformerFactory Liaison: {0}"}, |
|
491 |
||
492 |
{ ER_DIDNOT_FIND_XPATH_SELECT_EXP, |
|
493 |
"Error! Did not find xpath select expression (-select)."}, |
|
494 |
||
495 |
{ ER_COULDNOT_FIND_ENDOP_AFTER_OPLOCATIONPATH, |
|
496 |
"ERROR! Could not find ENDOP after OP_LOCATIONPATH"}, |
|
497 |
||
498 |
{ ER_ERROR_OCCURED, |
|
499 |
"Error occured!"}, |
|
500 |
||
501 |
{ ER_ILLEGAL_VARIABLE_REFERENCE, |
|
502 |
"VariableReference given for variable out of context or without definition! Name = {0}"}, |
|
503 |
||
504 |
{ ER_AXES_NOT_ALLOWED, |
|
505 |
"Only child:: and attribute:: axes are allowed in match patterns! Offending axes = {0}"}, |
|
506 |
||
507 |
{ ER_KEY_HAS_TOO_MANY_ARGS, |
|
508 |
"key() has an incorrect number of arguments."}, |
|
509 |
||
510 |
{ ER_COUNT_TAKES_1_ARG, |
|
511 |
"The count function should take one argument!"}, |
|
512 |
||
513 |
{ ER_COULDNOT_FIND_FUNCTION, |
|
514 |
"Could not find function: {0}"}, |
|
515 |
||
516 |
{ ER_UNSUPPORTED_ENCODING, |
|
517 |
"Unsupported encoding: {0}"}, |
|
518 |
||
519 |
{ ER_PROBLEM_IN_DTM_NEXTSIBLING, |
|
520 |
"Problem occured in DTM in getNextSibling... trying to recover"}, |
|
521 |
||
522 |
{ ER_CANNOT_WRITE_TO_EMPTYNODELISTIMPL, |
|
523 |
"Programmer error: EmptyNodeList can not be written to."}, |
|
524 |
||
525 |
{ ER_SETDOMFACTORY_NOT_SUPPORTED, |
|
526 |
"setDOMFactory is not supported by XPathContext!"}, |
|
527 |
||
528 |
{ ER_PREFIX_MUST_RESOLVE, |
|
529 |
"Prefix must resolve to a namespace: {0}"}, |
|
530 |
||
531 |
{ ER_PARSE_NOT_SUPPORTED, |
|
532 |
"parse (InputSource source) not supported in XPathContext! Can not open {0}"}, |
|
533 |
||
534 |
{ ER_SAX_API_NOT_HANDLED, |
|
535 |
"SAX API characters(char ch[]... not handled by the DTM!"}, |
|
536 |
||
537 |
{ ER_IGNORABLE_WHITESPACE_NOT_HANDLED, |
|
538 |
"ignorableWhitespace(char ch[]... not handled by the DTM!"}, |
|
539 |
||
540 |
{ ER_DTM_CANNOT_HANDLE_NODES, |
|
541 |
"DTMLiaison can not handle nodes of type {0}"}, |
|
542 |
||
543 |
{ ER_XERCES_CANNOT_HANDLE_NODES, |
|
544 |
"DOM2Helper can not handle nodes of type {0}"}, |
|
545 |
||
546 |
{ ER_XERCES_PARSE_ERROR_DETAILS, |
|
547 |
"DOM2Helper.parse error: SystemID - {0} line - {1}"}, |
|
548 |
||
549 |
{ ER_XERCES_PARSE_ERROR, |
|
550 |
"DOM2Helper.parse error"}, |
|
551 |
||
552 |
{ ER_INVALID_UTF16_SURROGATE, |
|
553 |
"Invalid UTF-16 surrogate detected: {0} ?"}, |
|
554 |
||
555 |
{ ER_OIERROR, |
|
556 |
"IO error"}, |
|
557 |
||
558 |
{ ER_CANNOT_CREATE_URL, |
|
559 |
"Cannot create url for: {0}"}, |
|
560 |
||
561 |
{ ER_XPATH_READOBJECT, |
|
562 |
"In XPath.readObject: {0}"}, |
|
563 |
||
564 |
{ ER_FUNCTION_TOKEN_NOT_FOUND, |
|
565 |
"function token not found."}, |
|
566 |
||
567 |
{ ER_CANNOT_DEAL_XPATH_TYPE, |
|
568 |
"Can not deal with XPath type: {0}"}, |
|
569 |
||
570 |
{ ER_NODESET_NOT_MUTABLE, |
|
571 |
"This NodeSet is not mutable"}, |
|
572 |
||
573 |
{ ER_NODESETDTM_NOT_MUTABLE, |
|
574 |
"This NodeSetDTM is not mutable"}, |
|
575 |
||
576 |
{ ER_VAR_NOT_RESOLVABLE, |
|
577 |
"Variable not resolvable: {0}"}, |
|
578 |
||
579 |
{ ER_NULL_ERROR_HANDLER, |
|
580 |
"Null error handler"}, |
|
581 |
||
582 |
{ ER_PROG_ASSERT_UNKNOWN_OPCODE, |
|
583 |
"Programmer''s assertion: unknown opcode: {0}"}, |
|
584 |
||
585 |
{ ER_ZERO_OR_ONE, |
|
586 |
"0 or 1"}, |
|
587 |
||
588 |
{ ER_RTF_NOT_SUPPORTED_XRTREEFRAGSELECTWRAPPER, |
|
589 |
"rtf() not supported by XRTreeFragSelectWrapper"}, |
|
590 |
||
591 |
{ ER_RTF_NOT_SUPPORTED_XRTREEFRAGSELECTWRAPPER, |
|
592 |
"asNodeIterator() not supported by XRTreeFragSelectWrapper"}, |
|
593 |
||
594 |
/** detach() not supported by XRTreeFragSelectWrapper */ |
|
595 |
{ ER_DETACH_NOT_SUPPORTED_XRTREEFRAGSELECTWRAPPER, |
|
596 |
"detach() not supported by XRTreeFragSelectWrapper"}, |
|
597 |
||
598 |
/** num() not supported by XRTreeFragSelectWrapper */ |
|
599 |
{ ER_NUM_NOT_SUPPORTED_XRTREEFRAGSELECTWRAPPER, |
|
600 |
"num() not supported by XRTreeFragSelectWrapper"}, |
|
601 |
||
602 |
/** xstr() not supported by XRTreeFragSelectWrapper */ |
|
603 |
{ ER_XSTR_NOT_SUPPORTED_XRTREEFRAGSELECTWRAPPER, |
|
604 |
"xstr() not supported by XRTreeFragSelectWrapper"}, |
|
605 |
||
606 |
/** str() not supported by XRTreeFragSelectWrapper */ |
|
607 |
{ ER_STR_NOT_SUPPORTED_XRTREEFRAGSELECTWRAPPER, |
|
608 |
"str() not supported by XRTreeFragSelectWrapper"}, |
|
609 |
||
610 |
{ ER_FSB_NOT_SUPPORTED_XSTRINGFORCHARS, |
|
611 |
"fsb() not supported for XStringForChars"}, |
|
612 |
||
613 |
{ ER_COULD_NOT_FIND_VAR, |
|
614 |
"Could not find variable with the name of {0}"}, |
|
615 |
||
616 |
{ ER_XSTRINGFORCHARS_CANNOT_TAKE_STRING, |
|
617 |
"XStringForChars can not take a string for an argument"}, |
|
618 |
||
619 |
{ ER_FASTSTRINGBUFFER_CANNOT_BE_NULL, |
|
620 |
"The FastStringBuffer argument can not be null"}, |
|
621 |
||
622 |
{ ER_TWO_OR_THREE, |
|
623 |
"2 or 3"}, |
|
624 |
||
625 |
{ ER_VARIABLE_ACCESSED_BEFORE_BIND, |
|
626 |
"Variable accessed before it is bound!"}, |
|
627 |
||
628 |
{ ER_FSB_CANNOT_TAKE_STRING, |
|
629 |
"XStringForFSB can not take a string for an argument!"}, |
|
630 |
||
631 |
{ ER_SETTING_WALKER_ROOT_TO_NULL, |
|
632 |
"\n !!!! Error! Setting the root of a walker to null!!!"}, |
|
633 |
||
634 |
{ ER_NODESETDTM_CANNOT_ITERATE, |
|
635 |
"This NodeSetDTM can not iterate to a previous node!"}, |
|
636 |
||
637 |
{ ER_NODESET_CANNOT_ITERATE, |
|
638 |
"This NodeSet can not iterate to a previous node!"}, |
|
639 |
||
640 |
{ ER_NODESETDTM_CANNOT_INDEX, |
|
641 |
"This NodeSetDTM can not do indexing or counting functions!"}, |
|
642 |
||
643 |
{ ER_NODESET_CANNOT_INDEX, |
|
644 |
"This NodeSet can not do indexing or counting functions!"}, |
|
645 |
||
646 |
{ ER_CANNOT_CALL_SETSHOULDCACHENODE, |
|
647 |
"Can not call setShouldCacheNodes after nextNode has been called!"}, |
|
648 |
||
649 |
{ ER_ONLY_ALLOWS, |
|
650 |
"{0} only allows {1} arguments"}, |
|
651 |
||
652 |
{ ER_UNKNOWN_STEP, |
|
653 |
"Programmer''s assertion in getNextStepPos: unknown stepType: {0}"}, |
|
654 |
||
655 |
//Note to translators: A relative location path is a form of XPath expression. |
|
656 |
// The message indicates that such an expression was expected following the |
|
657 |
// characters '/' or '//', but was not found. |
|
658 |
{ ER_EXPECTED_REL_LOC_PATH, |
|
659 |
"A relative location path was expected following the '/' or '//' token."}, |
|
660 |
||
661 |
// Note to translators: A location path is a form of XPath expression. |
|
662 |
// The message indicates that syntactically such an expression was expected,but |
|
663 |
// the characters specified by the substitution text were encountered instead. |
|
664 |
{ ER_EXPECTED_LOC_PATH, |
|
665 |
"A location path was expected, but the following token was encountered\u003a {0}"}, |
|
666 |
||
667 |
// Note to translators: A location path is a form of XPath expression. |
|
668 |
// The message indicates that syntactically such a subexpression was expected, |
|
669 |
// but no more characters were found in the expression. |
|
670 |
{ ER_EXPECTED_LOC_PATH_AT_END_EXPR, |
|
671 |
"A location path was expected, but the end of the XPath expression was found instead."}, |
|
672 |
||
673 |
// Note to translators: A location step is part of an XPath expression. |
|
674 |
// The message indicates that syntactically such an expression was expected |
|
675 |
// following the specified characters. |
|
676 |
{ ER_EXPECTED_LOC_STEP, |
|
677 |
"A location step was expected following the '/' or '//' token."}, |
|
678 |
||
679 |
// Note to translators: A node test is part of an XPath expression that is |
|
680 |
// used to test for particular kinds of nodes. In this case, a node test that |
|
681 |
// consists of an NCName followed by a colon and an asterisk or that consists |
|
682 |
// of a QName was expected, but was not found. |
|
683 |
{ ER_EXPECTED_NODE_TEST, |
|
684 |
"A node test that matches either NCName:* or QName was expected."}, |
|
685 |
||
686 |
// Note to translators: A step pattern is part of an XPath expression. |
|
687 |
// The message indicates that syntactically such an expression was expected, |
|
688 |
// but the specified character was found in the expression instead. |
|
689 |
{ ER_EXPECTED_STEP_PATTERN, |
|
690 |
"A step pattern was expected, but '/' was encountered."}, |
|
691 |
||
692 |
// Note to translators: A relative path pattern is part of an XPath expression. |
|
693 |
// The message indicates that syntactically such an expression was expected, |
|
694 |
// but was not found. |
|
695 |
{ ER_EXPECTED_REL_PATH_PATTERN, |
|
696 |
"A relative path pattern was expected."}, |
|
697 |
||
698 |
// Note to translators: The substitution text is the name of a data type. The |
|
699 |
// message indicates that a value of a particular type could not be converted |
|
700 |
// to a value of type boolean. |
|
701 |
{ ER_CANT_CONVERT_TO_BOOLEAN, |
|
702 |
"The XPathResult of XPath expression ''{0}'' has an XPathResultType of {1} which cannot be converted to a boolean."}, |
|
703 |
||
704 |
// Note to translators: Do not translate ANY_UNORDERED_NODE_TYPE and |
|
705 |
// FIRST_ORDERED_NODE_TYPE. |
|
706 |
{ ER_CANT_CONVERT_TO_SINGLENODE, |
|
707 |
"The XPathResult of XPath expression ''{0}'' has an XPathResultType of {1} which cannot be converted to a single node. The method getSingleNodeValue applies only to types ANY_UNORDERED_NODE_TYPE and FIRST_ORDERED_NODE_TYPE."}, |
|
708 |
||
709 |
// Note to translators: Do not translate UNORDERED_NODE_SNAPSHOT_TYPE and |
|
710 |
// ORDERED_NODE_SNAPSHOT_TYPE. |
|
711 |
{ ER_CANT_GET_SNAPSHOT_LENGTH, |
|
712 |
"The method getSnapshotLength cannot be called on the XPathResult of XPath expression ''{0}'' because its XPathResultType is {1}. This method applies only to types UNORDERED_NODE_SNAPSHOT_TYPE and ORDERED_NODE_SNAPSHOT_TYPE."}, |
|
713 |
||
714 |
{ ER_NON_ITERATOR_TYPE, |
|
715 |
"The method iterateNext cannot be called on the XPathResult of XPath expression ''{0}'' because its XPathResultType is {1}. This method applies only to types UNORDERED_NODE_ITERATOR_TYPE and ORDERED_NODE_ITERATOR_TYPE."}, |
|
716 |
||
717 |
// Note to translators: This message indicates that the document being operated |
|
718 |
// upon changed, so the iterator object that was being used to traverse the |
|
719 |
// document has now become invalid. |
|
720 |
{ ER_DOC_MUTATED, |
|
721 |
"Document mutated since result was returned. Iterator is invalid."}, |
|
722 |
||
723 |
{ ER_INVALID_XPATH_TYPE, |
|
724 |
"Invalid XPath type argument: {0}"}, |
|
725 |
||
726 |
{ ER_EMPTY_XPATH_RESULT, |
|
727 |
"Empty XPath result object"}, |
|
728 |
||
729 |
{ ER_INCOMPATIBLE_TYPES, |
|
730 |
"The XPathResult of XPath expression ''{0}'' has an XPathResultType of {1} which cannot be coerced into the specified XPathResultType of {2}."}, |
|
731 |
||
732 |
{ ER_NULL_RESOLVER, |
|
733 |
"Unable to resolve prefix with null prefix resolver."}, |
|
734 |
||
735 |
// Note to translators: The substitution text is the name of a data type. The |
|
736 |
// message indicates that a value of a particular type could not be converted |
|
737 |
// to a value of type string. |
|
738 |
{ ER_CANT_CONVERT_TO_STRING, |
|
739 |
"The XPathResult of XPath expression ''{0}'' has an XPathResultType of {1} which cannot be converted to a string."}, |
|
740 |
||
741 |
// Note to translators: Do not translate snapshotItem, |
|
742 |
// UNORDERED_NODE_SNAPSHOT_TYPE and ORDERED_NODE_SNAPSHOT_TYPE. |
|
743 |
{ ER_NON_SNAPSHOT_TYPE, |
|
744 |
"The method snapshotItem cannot be called on the XPathResult of XPath expression ''{0}'' because its XPathResultType is {1}. This method applies only to types UNORDERED_NODE_SNAPSHOT_TYPE and ORDERED_NODE_SNAPSHOT_TYPE."}, |
|
745 |
||
746 |
// Note to translators: XPathEvaluator is a Java interface name. An |
|
747 |
// XPathEvaluator is created with respect to a particular XML document, and in |
|
748 |
// this case the expression represented by this object was being evaluated with |
|
749 |
// respect to a context node from a different document. |
|
750 |
{ ER_WRONG_DOCUMENT, |
|
751 |
"Context node does not belong to the document that is bound to this XPathEvaluator."}, |
|
752 |
||
753 |
// Note to translators: The XPath expression cannot be evaluated with respect |
|
754 |
// to this type of node. |
|
755 |
{ ER_WRONG_NODETYPE, |
|
756 |
"The context node type is not supported."}, |
|
757 |
||
758 |
{ ER_XPATH_ERROR, |
|
759 |
"Unknown error in XPath."}, |
|
760 |
||
761 |
{ ER_CANT_CONVERT_XPATHRESULTTYPE_TO_NUMBER, |
|
762 |
"The XPathResult of XPath expression ''{0}'' has an XPathResultType of {1} which cannot be converted to a number"}, |
|
763 |
||
764 |
//BEGIN: Definitions of error keys used in exception messages of JAXP 1.3 XPath API implementation |
|
765 |
||
766 |
/** Field ER_EXTENSION_FUNCTION_CANNOT_BE_INVOKED */ |
|
767 |
||
768 |
{ ER_EXTENSION_FUNCTION_CANNOT_BE_INVOKED, |
|
769 |
"Extension function: ''{0}'' can not be invoked when the XMLConstants.FEATURE_SECURE_PROCESSING feature is set to true."}, |
|
770 |
||
771 |
/** Field ER_RESOLVE_VARIABLE_RETURNS_NULL */ |
|
772 |
||
773 |
{ ER_RESOLVE_VARIABLE_RETURNS_NULL, |
|
774 |
"resolveVariable for variable {0} returning null"}, |
|
775 |
||
776 |
/** Field ER_UNSUPPORTED_RETURN_TYPE */ |
|
777 |
||
778 |
{ ER_UNSUPPORTED_RETURN_TYPE, |
|
779 |
"UnSupported Return Type : {0}"}, |
|
780 |
||
781 |
/** Field ER_SOURCE_RETURN_TYPE_CANNOT_BE_NULL */ |
|
782 |
||
783 |
{ ER_SOURCE_RETURN_TYPE_CANNOT_BE_NULL, |
|
784 |
"Source and/or Return Type can not be null"}, |
|
785 |
||
786 |
/** Field ER_SOURCE_RETURN_TYPE_CANNOT_BE_NULL */ |
|
787 |
||
788 |
{ ER_SOURCE_RETURN_TYPE_CANNOT_BE_NULL, |
|
789 |
"Source and/or Return Type can not be null"}, |
|
790 |
||
791 |
/** Field ER_ARG_CANNOT_BE_NULL */ |
|
792 |
||
793 |
{ ER_ARG_CANNOT_BE_NULL, |
|
794 |
"{0} argument can not be null"}, |
|
795 |
||
796 |
/** Field ER_OBJECT_MODEL_NULL */ |
|
797 |
||
798 |
{ ER_OBJECT_MODEL_NULL, |
|
799 |
"{0}#isObjectModelSupported( String objectModel ) cannot be called with objectModel == null"}, |
|
800 |
||
801 |
/** Field ER_OBJECT_MODEL_EMPTY */ |
|
802 |
||
803 |
{ ER_OBJECT_MODEL_EMPTY, |
|
804 |
"{0}#isObjectModelSupported( String objectModel ) cannot be called with objectModel == \"\""}, |
|
805 |
||
806 |
/** Field ER_OBJECT_MODEL_EMPTY */ |
|
807 |
||
808 |
{ ER_FEATURE_NAME_NULL, |
|
809 |
"Trying to set a feature with a null name: {0}#setFeature( null, {1})"}, |
|
810 |
||
811 |
/** Field ER_FEATURE_UNKNOWN */ |
|
812 |
||
813 |
{ ER_FEATURE_UNKNOWN, |
|
814 |
"Trying to set the unknown feature \"{0}\":{1}#setFeature({0},{2})"}, |
|
815 |
||
816 |
/** Field ER_GETTING_NULL_FEATURE */ |
|
817 |
||
818 |
{ ER_GETTING_NULL_FEATURE, |
|
819 |
"Trying to get a feature with a null name: {0}#getFeature(null)"}, |
|
820 |
||
821 |
/** Field ER_GETTING_NULL_FEATURE */ |
|
822 |
||
823 |
{ ER_GETTING_UNKNOWN_FEATURE, |
|
824 |
"Trying to get the unknown feature \"{0}\":{1}#getFeature({0})"}, |
|
825 |
||
826 |
{ER_SECUREPROCESSING_FEATURE, |
|
827 |
"FEATURE_SECURE_PROCESSING: Cannot set the feature to false when security manager is present: {1}#setFeature({0},{2})"}, |
|
828 |
||
829 |
/** Field ER_NULL_XPATH_FUNCTION_RESOLVER */ |
|
830 |
||
831 |
{ ER_NULL_XPATH_FUNCTION_RESOLVER, |
|
832 |
"Attempting to set a null XPathFunctionResolver:{0}#setXPathFunctionResolver(null)"}, |
|
833 |
||
834 |
/** Field ER_NULL_XPATH_VARIABLE_RESOLVER */ |
|
835 |
||
836 |
{ ER_NULL_XPATH_VARIABLE_RESOLVER, |
|
837 |
"Attempting to set a null XPathVariableResolver:{0}#setXPathVariableResolver(null)"}, |
|
838 |
||
839 |
//END: Definitions of error keys used in exception messages of JAXP 1.3 XPath API implementation |
|
840 |
||
841 |
// Warnings... |
|
842 |
||
843 |
{ WG_LOCALE_NAME_NOT_HANDLED, |
|
844 |
"locale name in the format-number function not yet handled!"}, |
|
845 |
||
846 |
{ WG_PROPERTY_NOT_SUPPORTED, |
|
847 |
"XSL Property not supported: {0}"}, |
|
848 |
||
849 |
{ WG_DONT_DO_ANYTHING_WITH_NS, |
|
850 |
"Do not currently do anything with namespace {0} in property: {1}"}, |
|
851 |
||
852 |
{ WG_SECURITY_EXCEPTION, |
|
853 |
"SecurityException when trying to access XSL system property: {0}"}, |
|
854 |
||
855 |
{ WG_QUO_NO_LONGER_DEFINED, |
|
856 |
"Old syntax: quo(...) is no longer defined in XPath."}, |
|
857 |
||
858 |
{ WG_NEED_DERIVED_OBJECT_TO_IMPLEMENT_NODETEST, |
|
859 |
"XPath needs a derived object to implement nodeTest!"}, |
|
860 |
||
861 |
{ WG_FUNCTION_TOKEN_NOT_FOUND, |
|
862 |
"function token not found."}, |
|
863 |
||
864 |
{ WG_COULDNOT_FIND_FUNCTION, |
|
865 |
"Could not find function: {0}"}, |
|
866 |
||
867 |
{ WG_CANNOT_MAKE_URL_FROM, |
|
868 |
"Can not make URL from: {0}"}, |
|
869 |
||
870 |
{ WG_EXPAND_ENTITIES_NOT_SUPPORTED, |
|
871 |
"-E option not supported for DTM parser"}, |
|
872 |
||
873 |
{ WG_ILLEGAL_VARIABLE_REFERENCE, |
|
874 |
"VariableReference given for variable out of context or without definition! Name = {0}"}, |
|
875 |
||
876 |
{ WG_UNSUPPORTED_ENCODING, |
|
877 |
"Unsupported encoding: {0}"}, |
|
878 |
||
879 |
||
880 |
||
881 |
// Other miscellaneous text used inside the code... |
|
882 |
{ "ui_language", "en"}, |
|
883 |
{ "help_language", "en"}, |
|
884 |
{ "language", "en"}, |
|
885 |
{ "BAD_CODE", "Parameter to createMessage was out of bounds"}, |
|
886 |
{ "FORMAT_FAILED", "Exception thrown during messageFormat call"}, |
|
887 |
{ "version", ">>>>>>> Xalan Version "}, |
|
888 |
{ "version2", "<<<<<<<"}, |
|
889 |
{ "yes", "yes"}, |
|
890 |
{ "line", "Line #"}, |
|
891 |
{ "column", "Column #"}, |
|
892 |
{ "xsldone", "XSLProcessor: done"}, |
|
893 |
{ "xpath_option", "xpath options: "}, |
|
894 |
{ "optionIN", " [-in inputXMLURL]"}, |
|
895 |
{ "optionSelect", " [-select xpath expression]"}, |
|
896 |
{ "optionMatch", " [-match match pattern (for match diagnostics)]"}, |
|
897 |
{ "optionAnyExpr", "Or just an xpath expression will do a diagnostic dump"}, |
|
898 |
{ "noParsermsg1", "XSL Process was not successful."}, |
|
899 |
{ "noParsermsg2", "** Could not find parser **"}, |
|
900 |
{ "noParsermsg3", "Please check your classpath."}, |
|
901 |
{ "noParsermsg4", "If you don't have IBM's XML Parser for Java, you can download it from"}, |
|
902 |
{ "noParsermsg5", "IBM's AlphaWorks: http://www.alphaworks.ibm.com/formula/xml"}, |
|
903 |
{ "gtone", ">1" }, |
|
904 |
{ "zero", "0" }, |
|
905 |
{ "one", "1" }, |
|
906 |
{ "two" , "2" }, |
|
907 |
{ "three", "3" } |
|
908 |
||
909 |
}; |
|
910 |
||
911 |
/** |
|
912 |
* Get the association list. |
|
913 |
* |
|
914 |
* @return The association list. |
|
915 |
*/ |
|
916 |
public Object[][] getContents() |
|
917 |
{ |
|
918 |
return _contents; |
|
919 |
} |
|
920 |
||
921 |
||
922 |
// ================= INFRASTRUCTURE ====================== |
|
923 |
||
924 |
/** Field BAD_CODE */ |
|
925 |
public static final String BAD_CODE = "BAD_CODE"; |
|
926 |
||
927 |
/** Field FORMAT_FAILED */ |
|
928 |
public static final String FORMAT_FAILED = "FORMAT_FAILED"; |
|
929 |
||
930 |
/** Field ERROR_RESOURCES */ |
|
931 |
public static final String ERROR_RESOURCES = |
|
932 |
"com.sun.org.apache.xpath.internal.res.XPATHErrorResources"; |
|
933 |
||
934 |
/** Field ERROR_STRING */ |
|
935 |
public static final String ERROR_STRING = "#error"; |
|
936 |
||
937 |
/** Field ERROR_HEADER */ |
|
938 |
public static final String ERROR_HEADER = "Error: "; |
|
939 |
||
940 |
/** Field WARNING_HEADER */ |
|
941 |
public static final String WARNING_HEADER = "Warning: "; |
|
942 |
||
943 |
/** Field XSL_HEADER */ |
|
944 |
public static final String XSL_HEADER = "XSL "; |
|
945 |
||
946 |
/** Field XML_HEADER */ |
|
947 |
public static final String XML_HEADER = "XML "; |
|
948 |
||
949 |
/** Field QUERY_HEADER */ |
|
950 |
public static final String QUERY_HEADER = "PATTERN "; |
|
951 |
||
952 |
} |