KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > com > sun > org > apache > xpath > internal > res > XPATHErrorResources_sv


1 /*
2  * Copyright 1999-2004 The Apache Software Foundation.
3  *
4  * Licensed under the Apache License, Version 2.0 (the "License");
5  * you may not use this file except in compliance with the License.
6  * You may obtain a copy of the License at
7  *
8  * http://www.apache.org/licenses/LICENSE-2.0
9  *
10  * Unless required by applicable law or agreed to in writing, software
11  * distributed under the License is distributed on an "AS IS" BASIS,
12  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13  * See the License for the specific language governing permissions and
14  * limitations under the License.
15  */

16 /*
17  * $Id: XPATHErrorResources_sv.java,v 1.7 2004/02/17 04:36:46 minchau Exp $
18  */

19 package com.sun.org.apache.xpath.internal.res;
20
21 /**
22  * Set up error messages.
23  * We build a two dimensional array of message keys and
24  * message strings. In order to add a new message here,
25  * you need to first add a Static string constant for the
26  * Key and update the contents array with Key, Value pair
27   * Also you need to update the count of messages(MAX_CODE)or
28  * the count of warnings(MAX_WARNING) [ Information purpose only]
29  * @xsl.usage advanced
30  */

31 public class XPATHErrorResources_sv extends XPATHErrorResources
32 {
33
34
35   /** Field MAX_CODE */
36 public static final int MAX_CODE = 108; // this is needed to keep track of the number of messages
37

38   /** Field MAX_WARNING */
39   public static final int MAX_WARNING = 11; // this is needed to keep track of the number of warnings
40

41   /** Field MAX_OTHERS */
42   public static final int MAX_OTHERS = 20;
43
44   /** Field MAX_MESSAGES */
45   public static final int MAX_MESSAGES = MAX_CODE + MAX_WARNING + 1;
46
47
48   // Error messages...
49
public static final Object JavaDoc[][] contents = {
50
51   /** Field ERROR0000 */
52   //public static final int ERROR0000 = 0;
53

54
55   {
56     "ERROR0000", "{0}"},
57
58
59   /** Field ER_CURRENT_NOT_ALLOWED_IN_MATCH */
60   //public static final int ER_CURRENT_NOT_ALLOWED_IN_MATCH = 1;
61

62
63   {
64     ER_CURRENT_NOT_ALLOWED_IN_MATCH,
65       "Funktionen current() \u00e4r inte till\u00e5ten i ett matchningsm\u00f6nster!"},
66
67
68   /** Field ER_CURRENT_TAKES_NO_ARGS */
69   //public static final int ER_CURRENT_TAKES_NO_ARGS = 2;
70

71
72   {
73     ER_CURRENT_TAKES_NO_ARGS,
74       "Funktionen current() tar inte emot argument!"},
75
76
77   /** Field ER_DOCUMENT_REPLACED */
78   //public static final int ER_DOCUMENT_REPLACED = 3;
79

80
81   {
82     ER_DOCUMENT_REPLACED,
83       "Implementeringen av funktionen document() har ersatts av com.sun.org.apache.xalan.internal.xslt.FuncDocument!"},
84
85
86   /** Field ER_CONTEXT_HAS_NO_OWNERDOC */
87   //public static final int ER_CONTEXT_HAS_NO_OWNERDOC = 4;
88

89
90   {
91     ER_CONTEXT_HAS_NO_OWNERDOC,
92       "Kontext saknar \u00e4gardokument!"},
93
94
95   /** Field ER_LOCALNAME_HAS_TOO_MANY_ARGS */
96   //public static final int ER_LOCALNAME_HAS_TOO_MANY_ARGS = 5;
97

98
99   {
100     ER_LOCALNAME_HAS_TOO_MANY_ARGS,
101       "local-name() har f\u00f6r m\u00e5nga argument."},
102
103
104   /** Field ER_NAMESPACEURI_HAS_TOO_MANY_ARGS */
105   //public static final int ER_NAMESPACEURI_HAS_TOO_MANY_ARGS = 6;
106

107
108   {
109     ER_NAMESPACEURI_HAS_TOO_MANY_ARGS,
110       "namespace-uri() har f\u00f6r m\u00e5nga argument."},
111
112
113   /** Field ER_NORMALIZESPACE_HAS_TOO_MANY_ARGS */
114   //public static final int ER_NORMALIZESPACE_HAS_TOO_MANY_ARGS = 7;
115

116
117   {
118     ER_NORMALIZESPACE_HAS_TOO_MANY_ARGS,
119       "normalize-space() har f\u00f6r m\u00e5nga argument."},
120
121
122   /** Field ER_NUMBER_HAS_TOO_MANY_ARGS */
123   //public static final int ER_NUMBER_HAS_TOO_MANY_ARGS = 8;
124

125
126   {
127     ER_NUMBER_HAS_TOO_MANY_ARGS,
128       "number() har f\u00f6r m\u00e5nga argument."},
129
130
131   /** Field ER_NAME_HAS_TOO_MANY_ARGS */
132   //public static final int ER_NAME_HAS_TOO_MANY_ARGS = 9;
133

134
135   {
136     ER_NAME_HAS_TOO_MANY_ARGS, "name() har f\u00f6r m\u00e5nga argument."},
137
138
139   /** Field ER_STRING_HAS_TOO_MANY_ARGS */
140   //public static final int ER_STRING_HAS_TOO_MANY_ARGS = 10;
141

142
143   {
144     ER_STRING_HAS_TOO_MANY_ARGS,
145       "string() har f\u00f6r m\u00e5nga argument."},
146
147
148   /** Field ER_STRINGLENGTH_HAS_TOO_MANY_ARGS */
149   //public static final int ER_STRINGLENGTH_HAS_TOO_MANY_ARGS = 11;
150

151
152   {
153     ER_STRINGLENGTH_HAS_TOO_MANY_ARGS,
154       "string.length() har f\u00f6r m\u00e5nga argument."},
155
156
157   /** Field ER_TRANSLATE_TAKES_3_ARGS */
158   //public static final int ER_TRANSLATE_TAKES_3_ARGS = 12;
159

160
161   {
162     ER_TRANSLATE_TAKES_3_ARGS,
163       "Funktionen translate() tar emot tre argument!"},
164
165
166   /** Field ER_UNPARSEDENTITYURI_TAKES_1_ARG */
167   //public static final int ER_UNPARSEDENTITYURI_TAKES_1_ARG = 13;
168

169
170   {
171     ER_UNPARSEDENTITYURI_TAKES_1_ARG,
172       "Funktionen unparsed-entity-uri borde ta emot ett argument!"},
173
174
175   /** Field ER_NAMESPACEAXIS_NOT_IMPLEMENTED */
176   //public static final int ER_NAMESPACEAXIS_NOT_IMPLEMENTED = 14;
177

178
179   {
180     ER_NAMESPACEAXIS_NOT_IMPLEMENTED,
181       "Namespace-axel inte implementerad \u00e4n!"},
182
183
184   /** Field ER_UNKNOWN_AXIS */
185   //public static final int ER_UNKNOWN_AXIS = 15;
186

187
188   {
189     ER_UNKNOWN_AXIS, "ok\u00e4nd axel: {0}"},
190
191
192   /** Field ER_UNKNOWN_MATCH_OPERATION */
193   //public static final int ER_UNKNOWN_MATCH_OPERATION = 16;
194

195
196   {
197     ER_UNKNOWN_MATCH_OPERATION, "ok\u00e4nd matchningshandling!"},
198
199
200   /** Field ER_INCORRECT_ARG_LENGTH */
201   //public static final int ER_INCORRECT_ARG_LENGTH = 17;
202

203
204   {
205     ER_INCORRECT_ARG_LENGTH,
206       "Nodtests argumentl\u00e4ngd i processing-instruction() \u00e4r inte korrekt!"},
207
208
209   /** Field ER_CANT_CONVERT_TO_NUMBER */
210   //public static final int ER_CANT_CONVERT_TO_NUMBER = 18;
211

212
213   {
214     ER_CANT_CONVERT_TO_NUMBER,
215       "Kan inte konvertera {0} till ett nummer"},
216
217
218   /** Field ER_CANT_CONVERT_TO_NODELIST */
219   //public static final int ER_CANT_CONVERT_TO_NODELIST = 19;
220

221
222   {
223     ER_CANT_CONVERT_TO_NODELIST,
224       "Kan inte konvertera {0} till en NodeList!"},
225
226
227   /** Field ER_CANT_CONVERT_TO_MUTABLENODELIST */
228   //public static final int ER_CANT_CONVERT_TO_MUTABLENODELIST = 20;
229

230
231   {
232     ER_CANT_CONVERT_TO_MUTABLENODELIST,
233       "Kan inte konvertera {0} till en NodeSetDTM!"},
234
235
236   /** Field ER_CANT_CONVERT_TO_TYPE */
237   //public static final int ER_CANT_CONVERT_TO_TYPE = 21;
238

239
240   {
241     ER_CANT_CONVERT_TO_TYPE,
242       "Kan inte konvertera {0} till en type//{1}"},
243
244
245   /** Field ER_EXPECTED_MATCH_PATTERN */
246   //public static final int ER_EXPECTED_MATCH_PATTERN = 22;
247

248
249   {
250     ER_EXPECTED_MATCH_PATTERN,
251       "Matchningsm\u00f6nster i getMatchScore f\u00f6rv\u00e4ntat!"},
252
253
254   /** Field ER_COULDNOT_GET_VAR_NAMED */
255   //public static final int ER_COULDNOT_GET_VAR_NAMED = 23;
256

257
258   {
259     ER_COULDNOT_GET_VAR_NAMED,
260       "Kunde inte h\u00e4mta variabeln {0}"},
261
262
263   /** Field ER_UNKNOWN_OPCODE */
264   //public static final int ER_UNKNOWN_OPCODE = 24;
265

266
267   {
268     ER_UNKNOWN_OPCODE, "FEL! Ok\u00e4nd op-kod: {0}"},
269
270
271   /** Field ER_EXTRA_ILLEGAL_TOKENS */
272   //public static final int ER_EXTRA_ILLEGAL_TOKENS = 25;
273

274
275   {
276     ER_EXTRA_ILLEGAL_TOKENS, "Ytterligare otill\u00e5tna tecken: {0}"},
277
278
279   /** Field ER_EXPECTED_DOUBLE_QUOTE */
280   //public static final int ER_EXPECTED_DOUBLE_QUOTE = 26;
281

282
283   {
284     ER_EXPECTED_DOUBLE_QUOTE,
285       "Litteral omges av fel sorts citationstecken... dubbla citationstecken f\u00f6rv\u00e4ntade!"},
286
287
288   /** Field ER_EXPECTED_SINGLE_QUOTE */
289   //public static final int ER_EXPECTED_SINGLE_QUOTE = 27;
290

291
292   {
293     ER_EXPECTED_SINGLE_QUOTE,
294       "Litteral omges av fel sorts citationstecken... enkla citationstecken f\u00f6rv\u00e4ntade!"},
295
296
297   /** Field ER_EMPTY_EXPRESSION */
298   //public static final int ER_EMPTY_EXPRESSION = 28;
299

300
301   {
302     ER_EMPTY_EXPRESSION, "Tomt uttryck!"},
303
304
305   /** Field ER_EXPECTED_BUT_FOUND */
306   //public static final int ER_EXPECTED_BUT_FOUND = 29;
307

308
309   {
310     ER_EXPECTED_BUT_FOUND, "{0} f\u00f6rv\u00e4ntat, men hittade: {1}"},
311
312
313   /** Field ER_INCORRECT_PROGRAMMER_ASSERTION */
314   //public static final int ER_INCORRECT_PROGRAMMER_ASSERTION = 30;
315

316
317   {
318     ER_INCORRECT_PROGRAMMER_ASSERTION,
319       "Programmerares f\u00f6rs\u00e4kran \u00e4r inte korrekt! - {0}"},
320
321
322   /** Field ER_BOOLEAN_ARG_NO_LONGER_OPTIONAL */
323   //public static final int ER_BOOLEAN_ARG_NO_LONGER_OPTIONAL = 31;
324

325
326   {
327     ER_BOOLEAN_ARG_NO_LONGER_OPTIONAL,
328       "boolean(...)-argument \u00e4r inte l\u00e4ngre valfri med 19990709 XPath-utkast."},
329
330
331   /** Field ER_FOUND_COMMA_BUT_NO_PRECEDING_ARG */
332   //public static final int ER_FOUND_COMMA_BUT_NO_PRECEDING_ARG = 32;
333

334
335   {
336     ER_FOUND_COMMA_BUT_NO_PRECEDING_ARG,
337       "Hittade ',' men inget f\u00f6reg\u00e5ende argument!"},
338
339
340   /** Field ER_FOUND_COMMA_BUT_NO_FOLLOWING_ARG */
341   //public static final int ER_FOUND_COMMA_BUT_NO_FOLLOWING_ARG = 33;
342

343
344   {
345     ER_FOUND_COMMA_BUT_NO_FOLLOWING_ARG,
346       "Hittade ',' men inget efterf\u00f6ljande argument!"},
347
348
349   /** Field ER_PREDICATE_ILLEGAL_SYNTAX */
350   //public static final int ER_PREDICATE_ILLEGAL_SYNTAX = 34;
351

352
353   {
354     ER_PREDICATE_ILLEGAL_SYNTAX,
355       "'..[predikat]' or '.[predikat]' \u00e4r otill\u00e5ten syntax. Anv\u00e4nd 'self::node()[predikat]' ist\u00e4llet."},
356
357
358   /** Field ER_ILLEGAL_AXIS_NAME */
359   //public static final int ER_ILLEGAL_AXIS_NAME = 35;
360

361
362   {
363     ER_ILLEGAL_AXIS_NAME, "otill\u00e5tet axel-namn: {0}"},
364
365
366   /** Field ER_UNKNOWN_NODETYPE */
367   //public static final int ER_UNKNOWN_NODETYPE = 36;
368

369
370   {
371     ER_UNKNOWN_NODETYPE, "ok\u00e4nd nodtyp: {0}"},
372
373
374   /** Field ER_PATTERN_LITERAL_NEEDS_BE_QUOTED */
375   //public static final int ER_PATTERN_LITERAL_NEEDS_BE_QUOTED = 37;
376

377
378   {
379     ER_PATTERN_LITERAL_NEEDS_BE_QUOTED,
380       "M\u00f6nsterlitteral {0} m\u00e5ste s\u00e4ttas inom citationstecken!"},
381
382
383   /** Field ER_COULDNOT_BE_FORMATTED_TO_NUMBER */
384   //public static final int ER_COULDNOT_BE_FORMATTED_TO_NUMBER = 38;
385

386
387   {
388     ER_COULDNOT_BE_FORMATTED_TO_NUMBER,
389       "{0} kunde inte formateras till ett nummer"},
390
391
392   /** Field ER_COULDNOT_CREATE_XMLPROCESSORLIAISON */
393   //public static final int ER_COULDNOT_CREATE_XMLPROCESSORLIAISON = 39;
394

395
396   {
397     ER_COULDNOT_CREATE_XMLPROCESSORLIAISON,
398       "Kunde inte skapa XML TransformerFactory Liaison: {0}"},
399
400
401   /** Field ER_DIDNOT_FIND_XPATH_SELECT_EXP */
402   //public static final int ER_DIDNOT_FIND_XPATH_SELECT_EXP = 40;
403

404
405   {
406     ER_DIDNOT_FIND_XPATH_SELECT_EXP,
407       "Fel! Hittade inte xpath select-uttryck (-select)."},
408
409
410   /** Field ER_COULDNOT_FIND_ENDOP_AFTER_OPLOCATIONPATH */
411   //public static final int ER_COULDNOT_FIND_ENDOP_AFTER_OPLOCATIONPATH = 41;
412

413
414   {
415     ER_COULDNOT_FIND_ENDOP_AFTER_OPLOCATIONPATH,
416       "FEL! Hittade inte ENDOP efter OP_LOCATIONPATH"},
417
418
419   /** Field ER_ERROR_OCCURED */
420   //public static final int ER_ERROR_OCCURED = 42;
421

422
423   {
424     ER_ERROR_OCCURED, "Fel intr\u00e4ffade!"},
425
426
427   /** Field ER_ILLEGAL_VARIABLE_REFERENCE */
428   //public static final int ER_ILLEGAL_VARIABLE_REFERENCE = 43;
429

430
431   {
432     ER_ILLEGAL_VARIABLE_REFERENCE,
433       "VariableReference angiven f\u00f6r variabel som \u00e4r utanf\u00f6r sammanhanget eller som saknar definition! Namn = {0}"},
434
435
436   /** Field ER_AXES_NOT_ALLOWED */
437   //public static final int ER_AXES_NOT_ALLOWED = 44;
438

439
440   {
441     ER_AXES_NOT_ALLOWED,
442       "Enbart barn::- och attribut::- axlar \u00e4r till\u00e5tna i matchningsm\u00f6nster! Regelvidriga axlar = {0}"},
443
444
445   /** Field ER_KEY_HAS_TOO_MANY_ARGS */
446   //public static final int ER_KEY_HAS_TOO_MANY_ARGS = 45;
447

448
449   {
450     ER_KEY_HAS_TOO_MANY_ARGS,
451       "key() har ett felaktigt antal argument."},
452
453
454   /** Field ER_COUNT_TAKES_1_ARG */
455   //public static final int ER_COUNT_TAKES_1_ARG = 46;
456

457
458   {
459     ER_COUNT_TAKES_1_ARG,
460       "Funktionen count borde ta emot ett argument!"},
461
462
463   /** Field ER_COULDNOT_FIND_FUNCTION */
464   //public static final int ER_COULDNOT_FIND_FUNCTION = 47;
465

466
467   {
468     ER_COULDNOT_FIND_FUNCTION, "Hittade inte funktionen: {0}"},
469
470
471   /** Field ER_UNSUPPORTED_ENCODING */
472   //public static final int ER_UNSUPPORTED_ENCODING = 48;
473

474
475   {
476     ER_UNSUPPORTED_ENCODING, "Ej underst\u00f6dd kodning: {0}"},
477
478
479   /** Field ER_PROBLEM_IN_DTM_NEXTSIBLING */
480   //public static final int ER_PROBLEM_IN_DTM_NEXTSIBLING = 49;
481

482
483   {
484     ER_PROBLEM_IN_DTM_NEXTSIBLING,
485       "Problem intr\u00e4ffade i DTM i getNextSibling... f\u00f6rs\u00f6ker \u00e5terh\u00e4mta"},
486
487
488   /** Field ER_CANNOT_WRITE_TO_EMPTYNODELISTIMPL */
489   //public static final int ER_CANNOT_WRITE_TO_EMPTYNODELISTIMPL = 50;
490

491
492   {
493     ER_CANNOT_WRITE_TO_EMPTYNODELISTIMPL,
494       "Programmerarfel: EmptyNodeList kan inte skrivas till."},
495
496
497   /** Field ER_SETDOMFACTORY_NOT_SUPPORTED */
498   //public static final int ER_SETDOMFACTORY_NOT_SUPPORTED = 51;
499

500
501   {
502     ER_SETDOMFACTORY_NOT_SUPPORTED,
503       "setDOMFactory underst\u00f6ds inte av XPathContext!"},
504
505
506   /** Field ER_PREFIX_MUST_RESOLVE */
507   //public static final int ER_PREFIX_MUST_RESOLVE = 52;
508

509
510   {
511     ER_PREFIX_MUST_RESOLVE,
512       "Prefix must resolve to a namespace: {0}"},
513
514
515   /** Field ER_PARSE_NOT_SUPPORTED */
516   //public static final int ER_PARSE_NOT_SUPPORTED = 53;
517

518
519   {
520     ER_PARSE_NOT_SUPPORTED,
521       "parse (InputSource source) underst\u00f6ds inte av XPathContext! Kan inte \u00f6ppna {0}"},
522
523
524   /** Field ER_SAX_API_NOT_HANDLED */
525   //public static final int ER_SAX_API_NOT_HANDLED = 57;
526

527
528   {
529     ER_SAX_API_NOT_HANDLED,
530       "SAX API-tecken(char ch[]... hanteras inte av DTM!"},
531
532
533   /** Field ER_IGNORABLE_WHITESPACE_NOT_HANDLED */
534   //public static final int ER_IGNORABLE_WHITESPACE_NOT_HANDLED = 58;
535

536
537   {
538     ER_IGNORABLE_WHITESPACE_NOT_HANDLED,
539       "ignorableWhitespace(char ch[]... hanteras inte av DTM!"},
540
541
542   /** Field ER_DTM_CANNOT_HANDLE_NODES */
543   //public static final int ER_DTM_CANNOT_HANDLE_NODES = 59;
544

545
546   {
547     ER_DTM_CANNOT_HANDLE_NODES,
548       "DTMLiaison kan inte hantera noder av typen {0}"},
549
550
551   /** Field ER_XERCES_CANNOT_HANDLE_NODES */
552   //public static final int ER_XERCES_CANNOT_HANDLE_NODES = 60;
553

554
555   {
556     ER_XERCES_CANNOT_HANDLE_NODES,
557       "DOM2Helper kan inte hantera noder av typen {0}"},
558
559
560   /** Field ER_XERCES_PARSE_ERROR_DETAILS */
561   //public static final int ER_XERCES_PARSE_ERROR_DETAILS = 61;
562

563
564   {
565     ER_XERCES_PARSE_ERROR_DETAILS,
566       "DOM2Helper.parse-fel: SystemID - {0} rad - {1}"},
567
568
569   /** Field ER_XERCES_PARSE_ERROR */
570   //public static final int ER_XERCES_PARSE_ERROR = 62;
571

572
573   {
574     ER_XERCES_PARSE_ERROR, "DOM2Helper.parse-fel"},
575
576
577   /** Field ER_INVALID_UTF16_SURROGATE */
578   //public static final int ER_INVALID_UTF16_SURROGATE = 65;
579

580
581   {
582     ER_INVALID_UTF16_SURROGATE,
583       "Ogiltigt UTF-16-surrogat uppt\u00e4ckt: {0} ?"},
584
585
586   /** Field ER_OIERROR */
587   //public static final int ER_OIERROR = 66;
588

589
590   {
591     ER_OIERROR, "IO-fel"},
592
593
594   /** Field ER_CANNOT_CREATE_URL */
595   //public static final int ER_CANNOT_CREATE_URL = 67;
596

597
598   {
599     ER_CANNOT_CREATE_URL, "Kan inte skapa url f\u00f6r: {0}"},
600
601
602   /** Field ER_XPATH_READOBJECT */
603   //public static final int ER_XPATH_READOBJECT = 68;
604

605
606   {
607     ER_XPATH_READOBJECT, "I XPath.readObject: {0}"},
608
609   
610   /** Field ER_XPATH_READOBJECT */
611   //public static final int ER_FUNCTION_TOKEN_NOT_FOUND = 69;
612

613
614   {
615     ER_FUNCTION_TOKEN_NOT_FOUND,
616       "funktionstecken saknas."},
617
618   
619    /** Can not deal with XPath type: */
620   //public static final int ER_CANNOT_DEAL_XPATH_TYPE = 71;
621

622
623   {
624     ER_CANNOT_DEAL_XPATH_TYPE,
625        "Kan inte hantera XPath-typ: {0}"},
626
627   
628    /** This NodeSet is not mutable */
629   //public static final int ER_NODESET_NOT_MUTABLE = 72;
630

631
632   {
633     ER_NODESET_NOT_MUTABLE,
634        "NodeSet \u00e4r of\u00f6r\u00e4nderlig"},
635
636   
637    /** This NodeSetDTM is not mutable */
638   //public static final int ER_NODESETDTM_NOT_MUTABLE = 73;
639

640
641   {
642     ER_NODESETDTM_NOT_MUTABLE,
643        "NodeSetDTM \u00e4r of\u00f6r\u00e4nderlig"},
644
645   
646    /** Variable not resolvable: */
647   //public static final int ER_VAR_NOT_RESOLVABLE = 74;
648

649
650   {
651     ER_VAR_NOT_RESOLVABLE,
652         "Variabel ej l\u00f6sbar: {0}"},
653
654   
655    /** Null error handler */
656   //public static final int ER_NULL_ERROR_HANDLER = 75;
657

658
659   {
660     ER_NULL_ERROR_HANDLER,
661         "Null error handler"},
662
663   
664    /** Programmer's assertion: unknown opcode */
665   //public static final int ER_PROG_ASSERT_UNKNOWN_OPCODE = 76;
666

667
668   {
669     ER_PROG_ASSERT_UNKNOWN_OPCODE,
670        "Programmerares f\u00f6rs\u00e4kran: ok\u00e4nd op-kod: {0}"},
671
672   
673    /** 0 or 1 */
674   //public static final int ER_ZERO_OR_ONE = 77;
675

676
677   {
678     ER_ZERO_OR_ONE,
679        "0 eller 1"},
680
681   
682   
683    /** rtf() not supported by XRTreeFragSelectWrapper */
684   //public static final int ER_RTF_NOT_SUPPORTED_XRTREEFRAGSELECTWRAPPER = 78;
685

686
687   {
688     ER_RTF_NOT_SUPPORTED_XRTREEFRAGSELECTWRAPPER,
689        "rtf() underst\u00f6ds inte av XRTreeFragSelectWrapper!"},
690
691   
692    /** asNodeIterator() not supported by XRTreeFragSelectWrapper */
693   //public static final int ER_ASNODEITERATOR_NOT_SUPPORTED_XRTREEFRAGSELECTWRAPPER = 79;
694

695
696   {
697     ER_ASNODEITERATOR_NOT_SUPPORTED_XRTREEFRAGSELECTWRAPPER,
698        "asNodeIterator() underst\u00f6ds inte av XRTreeFragSelectWrapper!"},
699
700   
701    /** fsb() not supported for XStringForChars */
702   //public static final int ER_FSB_NOT_SUPPORTED_XSTRINGFORCHARS = 80;
703

704
705   {
706     ER_FSB_NOT_SUPPORTED_XSTRINGFORCHARS,
707        "fsb() underst\u00f6ds inte av XRStringForChars!"},
708
709   
710    /** Could not find variable with the name of */
711   //public static final int ER_COULD_NOT_FIND_VAR = 81;
712

713
714   {
715     ER_COULD_NOT_FIND_VAR,
716       "Hittade inte variabeln med namn {0}"},
717
718   
719    /** XStringForChars can not take a string for an argument */
720   //public static final int ER_XSTRINGFORCHARS_CANNOT_TAKE_STRING = 82;
721

722
723   {
724     ER_XSTRINGFORCHARS_CANNOT_TAKE_STRING,
725       "XStringForChars kan inte ta en str\u00e4ng som argument"},
726
727   
728    /** The FastStringBuffer argument can not be null */
729   //public static final int ER_FASTSTRINGBUFFER_CANNOT_BE_NULL = 83;
730

731
732   {
733     ER_FASTSTRINGBUFFER_CANNOT_BE_NULL,
734       "FastStringBuffer-argumentet f\u00e5r inte vara null"},
735     
736 /* MANTIS_XALAN CHANGE: BEGIN */
737    /** 2 or 3 */
738   //public static final int ER_TWO_OR_THREE = 84;
739

740
741   {
742     ER_TWO_OR_THREE,
743        "2 eller 3"},
744
745
746    /** Variable accessed before it is bound! */
747   //public static final int ER_VARIABLE_ACCESSED_BEFORE_BIND = 85;
748

749
750   {
751     ER_VARIABLE_ACCESSED_BEFORE_BIND,
752        "Variabeln anv\u00e4ndes innan den bands!"},
753
754
755    /** XStringForFSB can not take a string for an argument! */
756   //public static final int ER_FSB_CANNOT_TAKE_STRING = 86;
757

758
759   {
760     ER_FSB_CANNOT_TAKE_STRING,
761        "XStringForFSB kan inte ha en str\u00e4ng som argument!"},
762
763
764    /** Error! Setting the root of a walker to null! */
765   //public static final int ER_SETTING_WALKER_ROOT_TO_NULL = 87;
766

767
768   {
769     ER_SETTING_WALKER_ROOT_TO_NULL,
770        "\n !!!! Fel! Anger roten f\u00f6r en \"walker\" till null!!!"},
771
772
773    /** This NodeSetDTM can not iterate to a previous node! */
774   //public static final int ER_NODESETDTM_CANNOT_ITERATE = 88;
775

776
777   {
778     ER_NODESETDTM_CANNOT_ITERATE,
779        "Detta NodeSetDTM kan inte iterera till en tidigare nod!"},
780
781
782   /** This NodeSet can not iterate to a previous node! */
783   //public static final int ER_NODESET_CANNOT_ITERATE = 89;
784

785
786   {
787     ER_NODESET_CANNOT_ITERATE,
788        "Detta NodeSet kan inte iterera till en tidigare nod!"},
789
790
791   /** This NodeSetDTM can not do indexing or counting functions! */
792   //public static final int ER_NODESETDTM_CANNOT_INDEX = 90;
793

794
795   {
796     ER_NODESETDTM_CANNOT_INDEX,
797        "Detta NodeSetDTM har inte funktioner f\u00f6r indexering och r\u00e4kning!"},
798
799
800   /** This NodeSet can not do indexing or counting functions! */
801   //public static final int ER_NODESET_CANNOT_INDEX = 91;
802

803
804   {
805     ER_NODESET_CANNOT_INDEX,
806        "Detta NodeSet har inte funktioner f\u00f6r indexering och r\u00e4kning!"},
807
808
809   /** Can not call setShouldCacheNodes after nextNode has been called! */
810   //public static final int ER_CANNOT_CALL_SETSHOULDCACHENODE = 92;
811

812
813   {
814     ER_CANNOT_CALL_SETSHOULDCACHENODE,
815        "Det g\u00e5r inte att anropa setShouldCacheNodes efter att nextNode har anropats!"},
816
817
818   /** {0} only allows {1} arguments */
819   //public static final int ER_ONLY_ALLOWS = 93;
820

821
822   {
823     ER_ONLY_ALLOWS,
824        "{0} till\u00e5ter bara {1} argument"},
825
826
827   /** Programmer's assertion in getNextStepPos: unknown stepType: {0} */
828   //public static final int ER_UNKNOWN_STEP = 94;
829

830
831   {
832     ER_UNKNOWN_STEP,
833        "Programmerarkontroll i getNextStepPos: ok\u00e4nt steg Typ: {0}"},
834
835
836   //Note to translators: A relative location path is a form of XPath expression.
837
// The message indicates that such an expression was expected following the
838
// characters '/' or '//', but was not found.
839

840   /** Problem with RelativeLocationPath */
841   //public static final int ER_EXPECTED_REL_LOC_PATH = 95;
842

843
844   {
845     ER_EXPECTED_REL_LOC_PATH,
846        "En relativ s\u00f6kv\u00e4g f\u00f6rv\u00e4ntades efter token '/' eller '//'."},
847
848
849   // Note to translators: A location path is a form of XPath expression.
850
// The message indicates that syntactically such an expression was expected,but
851
// the characters specified by the substitution text were encountered instead.
852

853   /** Problem with LocationPath */
854   //public static final int ER_EXPECTED_LOC_PATH = 96;
855

856
857   {
858     ER_EXPECTED_LOC_PATH,
859        "En plats f\u00f6rv\u00e4ntades, men f\u00f6ljande token p\u00e5tr\u00e4ffades\u003a {0}"},
860
861
862   // Note to translators: A location step is part of an XPath expression.
863
// The message indicates that syntactically such an expression was expected
864
// following the specified characters.
865

866   /** Problem with Step */
867   //public static final int ER_EXPECTED_LOC_STEP = 97;
868

869
870   {
871     ER_EXPECTED_LOC_STEP,
872        "Ett platssteg f\u00f6rv\u00e4ntades efter token '/' eller '//'."},
873
874
875   // Note to translators: A node test is part of an XPath expression that is
876
// used to test for particular kinds of nodes. In this case, a node test that
877
// consists of an NCName followed by a colon and an asterisk or that consists
878
// of a QName was expected, but was not found.
879

880   /** Problem with NodeTest */
881   //public static final int ER_EXPECTED_NODE_TEST = 98;
882

883
884   {
885     ER_EXPECTED_NODE_TEST,
886        "Ett nodtest som matchar antingen NCName:* eller QName f\u00f6rv\u00e4ntades."},
887
888
889   // Note to translators: A step pattern is part of an XPath expression.
890
// The message indicates that syntactically such an expression was expected,
891
// but the specified character was found in the expression instead.
892

893   /** Expected step pattern */
894   //public static final int ER_EXPECTED_STEP_PATTERN = 99;
895

896
897   {
898     ER_EXPECTED_STEP_PATTERN,
899        "Ett stegm\u00f6nster f\u00f6rv\u00e4ntades, men '/' p\u00e5tr\u00e4ffades."},
900
901
902   // Note to translators: A relative path pattern is part of an XPath expression.
903
// The message indicates that syntactically such an expression was expected,
904
// but was not found.
905

906   /** Expected relative path pattern */
907   //public static final int ER_EXPECTED_REL_PATH_PATTERN = 100;
908

909
910   {
911     ER_EXPECTED_REL_PATH_PATTERN,
912        "Ett m\u00f6nster f\u00f6r relativ s\u00f6kv\u00e4g f\u00f6rv\u00e4ntades."},
913
914
915   // Note to translators: The substitution text is the name of a data type. The
916
// message indicates that a value of a particular type could not be converted
917
// to a value of type string.
918

919   /** Field ER_CANT_CONVERT_TO_BOOLEAN */
920   //public static final int ER_CANT_CONVERT_TO_BOOLEAN = 103;
921

922
923   {
924     ER_CANT_CONVERT_TO_BOOLEAN,
925        "Det g\u00e5r inte att konvertera {0} till ett Booleskt v\u00e4rde."},
926
927
928   // Note to translators: Do not translate ANY_UNORDERED_NODE_TYPE and
929
// FIRST_ORDERED_NODE_TYPE.
930

931   /** Field ER_CANT_CONVERT_TO_SINGLENODE */
932   //public static final int ER_CANT_CONVERT_TO_SINGLENODE = 104;
933

934
935   {
936     ER_CANT_CONVERT_TO_SINGLENODE,
937        "Det g\u00e5r inte att konvertera {0} till en enda nod. G\u00e4ller typerna ANY_UNORDERED_NODE_TYPE och FIRST_ORDERED_NODE_TYPE."},
938
939
940   // Note to translators: Do not translate UNORDERED_NODE_SNAPSHOT_TYPE and
941
// ORDERED_NODE_SNAPSHOT_TYPE.
942

943   /** Field ER_CANT_GET_SNAPSHOT_LENGTH */
944   //public static final int ER_CANT_GET_SNAPSHOT_LENGTH = 105;
945

946
947   {
948     ER_CANT_GET_SNAPSHOT_LENGTH,
949        "Det g\u00e5r inte att erh\u00e5lla l\u00e4ngd f\u00f6r \u00f6gonblicksbild p\u00e5 typ: {0}. G\u00e4ller typerna UNORDERED_NODE_SNAPSHOT_TYPE och ORDERED_NODE_SNAPSHOT_TYPE."},
950
951
952   /** Field ER_NON_ITERATOR_TYPE */
953   //public static final int ER_NON_ITERATOR_TYPE = 106;
954

955
956   {
957     ER_NON_ITERATOR_TYPE,
958        "Det g\u00e5r inte att iterera \u00f6ver den icke itererbara typen: {0}"},
959
960
961   // Note to translators: This message indicates that the document being operated
962
// upon changed, so the iterator object that was being used to traverse the
963
// document has now become invalid.
964

965   /** Field ER_DOC_MUTATED */
966   //public static final int ER_DOC_MUTATED = 107;
967

968
969   {
970     ER_DOC_MUTATED,
971        "Dokumentet har \u00e4ndrats sedan resultatet genererades. Iterering ogiltig."},
972
973
974   /** Field ER_INVALID_XPATH_TYPE */
975   //public static final int ER_INVALID_XPATH_TYPE = 108;
976

977
978   {
979     ER_INVALID_XPATH_TYPE,
980        "Ogiltigt XPath-typargument: {0}"},
981
982
983   /** Field ER_EMPTY_XPATH_RESULT */
984   //public static final int ER_EMPTY_XPATH_RESULT = 109;
985

986
987   {
988     ER_EMPTY_XPATH_RESULT,
989        "Tomt XPath-resultatobjekt"},
990
991
992   /** Field ER_INCOMPATIBLE_TYPES */
993   //public static final int ER_INCOMPATIBLE_TYPES = 110;
994

995
996   {
997     ER_INCOMPATIBLE_TYPES,
998        "Den genererade typen: {0} kan inte bearbetas i den angivna typen: {1}"},
999
1000
1001  /** Field ER_NULL_RESOLVER */
1002  //public static final int ER_NULL_RESOLVER = 111;
1003

1004
1005  {
1006    ER_NULL_RESOLVER,
1007       "Det g\u00e5r inte att l\u00f6sa prefixet utan prefixl\u00f6sare."},
1008
1009
1010  // Note to translators: The substitution text is the name of a data type. The
1011
// message indicates that a value of a particular type could not be converted
1012
// to a value of type string.
1013

1014  /** Field ER_CANT_CONVERT_TO_STRING */
1015  //public static final int ER_CANT_CONVERT_TO_STRING = 112;
1016

1017
1018  {
1019    ER_CANT_CONVERT_TO_STRING,
1020       "Det g\u00e5r inte att konvertera {0} till en str\u00e4ng."},
1021
1022
1023  // Note to translators: Do not translate snapshotItem,
1024
// UNORDERED_NODE_SNAPSHOT_TYPE and ORDERED_NODE_SNAPSHOT_TYPE.
1025

1026  /** Field ER_NON_SNAPSHOT_TYPE */
1027  //public static final int ER_NON_SNAPSHOT_TYPE = 113;
1028

1029
1030  {
1031    ER_NON_SNAPSHOT_TYPE,
1032       "Det g\u00e5r inte att anropa snapshotItem p\u00e5 typ: {0}. Metoden g\u00e4ller typerna UNORDERED_NODE_SNAPSHOT_TYPE och ORDERED_NODE_SNAPSHOT_TYPE."},
1033
1034
1035  // Note to translators: XPathEvaluator is a Java interface name. An
1036
// XPathEvaluator is created with respect to a particular XML document, and in
1037
// this case the expression represented by this object was being evaluated with
1038
// respect to a context node from a different document.
1039

1040  /** Field ER_WRONG_DOCUMENT */
1041  //public static final int ER_WRONG_DOCUMENT = 114;
1042

1043
1044  {
1045    ER_WRONG_DOCUMENT,
1046       "Kontextnoden tillh\u00f6r inte dokumentet som \u00e4r bundet till denna XPathEvaluator."},
1047
1048
1049  // Note to translators: The XPath expression cannot be evaluated with respect
1050
// to this type of node.
1051
/** Field ER_WRONG_NODETYPE */
1052  //public static final int ER_WRONG_NODETYPE = 115;
1053

1054
1055  {
1056    ER_WRONG_NODETYPE ,
1057       "Kontextnoden kan inte hanteras."},
1058
1059
1060  /** Field ER_XPATH_ERROR */
1061  //public static final int ER_XPATH_ERROR = 116;
1062

1063
1064  {
1065    ER_XPATH_ERROR ,
1066       "Ok\u00e4nt fel i XPath."},
1067
1068
1069
1070  // Warnings...
1071

1072  /** Field WG_LOCALE_NAME_NOT_HANDLED */
1073  //public static final int WG_LOCALE_NAME_NOT_HANDLED = 1;
1074

1075
1076  {
1077    WG_LOCALE_NAME_NOT_HANDLED,
1078      "locale-namnet i format-number-funktionen \u00e4nnu inte hanterat!"},
1079
1080
1081  /** Field WG_PROPERTY_NOT_SUPPORTED */
1082  //public static final int WG_PROPERTY_NOT_SUPPORTED = 2;
1083

1084
1085  {
1086    WG_PROPERTY_NOT_SUPPORTED,
1087      "XSL-Egenskap underst\u00f6ds inte: {0}"},
1088
1089
1090  /** Field WG_DONT_DO_ANYTHING_WITH_NS */
1091  //public static final int WG_DONT_DO_ANYTHING_WITH_NS = 3;
1092

1093
1094  {
1095    WG_DONT_DO_ANYTHING_WITH_NS,
1096      "G\u00f6r f\u00f6r n\u00e4rvarande inte n\u00e5gonting med namespace {0} i egenskap: {1}"},
1097
1098
1099  /** Field WG_SECURITY_EXCEPTION */
1100  //public static final int WG_SECURITY_EXCEPTION = 4;
1101

1102
1103  {
1104    WG_SECURITY_EXCEPTION,
1105      "SecurityException vid f\u00f6rs\u00f6k att f\u00e5 tillg\u00e5ng till XSL-systemegenskap: {0}"},
1106
1107
1108  /** Field WG_QUO_NO_LONGER_DEFINED */
1109  //public static final int WG_QUO_NO_LONGER_DEFINED = 5;
1110

1111
1112  {
1113    WG_QUO_NO_LONGER_DEFINED,
1114      "Gammal syntax: quo(...) \u00e4r inte l\u00e4ngre definierad i XPath."},
1115
1116
1117  /** Field WG_NEED_DERIVED_OBJECT_TO_IMPLEMENT_NODETEST */
1118  //public static final int WG_NEED_DERIVED_OBJECT_TO_IMPLEMENT_NODETEST = 6;
1119

1120
1121  {
1122    WG_NEED_DERIVED_OBJECT_TO_IMPLEMENT_NODETEST,
1123      "XPath beh\u00f6ver ett deriverat objekt f\u00f6r att implementera nodeTest!"},
1124
1125
1126  /** Field WG_FUNCTION_TOKEN_NOT_FOUND */
1127  //public static final int WG_FUNCTION_TOKEN_NOT_FOUND = 7;
1128

1129
1130  {
1131    WG_FUNCTION_TOKEN_NOT_FOUND,
1132      "funktionstecken saknas."},
1133
1134
1135  /** Field WG_COULDNOT_FIND_FUNCTION */
1136  //public static final int WG_COULDNOT_FIND_FUNCTION = 8;
1137

1138
1139  {
1140    WG_COULDNOT_FIND_FUNCTION,
1141      "Hittade inte funktion: {0}"},
1142
1143
1144  /** Field WG_CANNOT_MAKE_URL_FROM */
1145  //public static final int WG_CANNOT_MAKE_URL_FROM = 9;
1146

1147
1148  {
1149    WG_CANNOT_MAKE_URL_FROM,
1150      "Kan inte skapa URL fr\u00e5n: {0}"},
1151
1152
1153  /** Field WG_EXPAND_ENTITIES_NOT_SUPPORTED */
1154  //public static final int WG_EXPAND_ENTITIES_NOT_SUPPORTED = 10;
1155

1156
1157  {
1158    WG_EXPAND_ENTITIES_NOT_SUPPORTED,
1159      "Alternativet -E underst\u00f6ds inte f\u00f6r DTM-tolk"},
1160
1161
1162  /** Field WG_ILLEGAL_VARIABLE_REFERENCE */
1163  //public static final int WG_ILLEGAL_VARIABLE_REFERENCE = 11;
1164

1165
1166  {
1167    WG_ILLEGAL_VARIABLE_REFERENCE,
1168      "VariableReference angiven f\u00f6r variabel som \u00e4r utanf\u00f6r sammanhanget eller som saknar definition! Namn = {0}"},
1169
1170
1171  /** Field WG_UNSUPPORTED_ENCODING */
1172  //public static final int WG_UNSUPPORTED_ENCODING = 12;
1173

1174
1175  {
1176    WG_UNSUPPORTED_ENCODING, "Ej underst\u00f6dd kodning: {0}"},
1177
1178
1179  // Other miscellaneous text used inside the code...
1180

1181  { "ui_language", "sv"},
1182  { "help_language", "sv"},
1183  { "language", "sv"},
1184    { "BAD_CODE",
1185      "Parameter till createMessage ligger utanf\u00f6r till\u00e5tet intervall"},
1186    { "FORMAT_FAILED",
1187      "Undantag utl\u00f6st vid messageFormat-anrop"},
1188    { "version", ">>>>>>> Xalan Version"},
1189    { "version2", "<<<<<<<"},
1190    { "yes", "ja"},
1191    { "line", "Rad //"},
1192    { "column", "Kolumn //"},
1193    { "xsldone", "XSLProcessor f\u00e4rdig"},
1194    { "xpath_option", "xpath-alternativ"},
1195    { "optionIN", " [-in inputXMLURL]"},
1196    { "optionSelect", "[-select xpath-uttryck]"},
1197    { "optionMatch",
1198      " [-match matchningsm\u00f6nster (f\u00f6r matchningsdiagnostik)]"},
1199    { "optionAnyExpr",
1200      "Eller bara ett xpath-uttryck kommer att g\u00f6ra en diagnostik-dump"},
1201    { "noParsermsg1", "XSL-Process misslyckades."},
1202    { "noParsermsg2", "** Hittade inte tolk **"},
1203    { "noParsermsg3", "V\u00e4nligen kontrollera din classpath"},
1204    { "noParsermsg4",
1205      "Om du inte har IBMs XML-Tolk f\u00f6r Java, kan du ladda ner den fr\u00e5n"},
1206    { "noParsermsg5",
1207      "IBMs AlphaWorks: http://www.alphaworks.ibm.com/formula/xml"}
1208  };
1209
1210  // ================= INFRASTRUCTURE ======================
1211

1212  /** Field BAD_CODE */
1213  public static final String JavaDoc BAD_CODE = "D\u00c5LIG_KOD";
1214
1215  /** Field FORMAT_FAILED */
1216  public static final String JavaDoc FORMAT_FAILDE = "FORMATTERING_MISSLYCKADES";
1217
1218  /** Field ERROR_RESOURCES */
1219  public static final String JavaDoc ERROR_RESOURCES =
1220    "com.sun.org.apache.xpath.internal.res.XPATHErrorResources";
1221
1222  /** Field ERROR_STRING */
1223  public static final String JavaDoc ERROR_STRING = "//fel";
1224
1225  /** Field ERROR_HEADER */
1226  public static final String JavaDoc ERROR_HEADER = "Fel: ";
1227
1228  /** Field WARNING_HEADER */
1229  public static final String JavaDoc WARNING_HEADER = "Varning: ";
1230
1231  /** Field XSL_HEADER */
1232  public static final String JavaDoc XSL_HEADER = "XSL ";
1233
1234  /** Field XML_HEADER */
1235  public static final String JavaDoc XML_HEADER = "XML ";
1236
1237  /** Field QUERY_HEADER */
1238  public static final String JavaDoc QUERY_HEADER = "M\u00d6NSTER ";
1239
1240  /**
1241   * Get the association list.
1242   *
1243   * @return The association list.
1244   */

1245  protected Object JavaDoc[][] getContents() {
1246      // return a copy of contents; in theory we want a deep clone
1247
// of contents, but since it only contains (immutable) Strings,
1248
// this shallow copy is sufficient
1249
Object JavaDoc[][] msgCopy = new Object JavaDoc[contents.length][2];
1250      for (int i = 0; i < contents.length; i++) {
1251          msgCopy[i][0] = contents[i][0];
1252          msgCopy[i][1] = contents[i][1];
1253      }
1254      return msgCopy;
1255  }
1256}
1257
1258
1259
Popular Tags