KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > com > sun > org > apache > xml > internal > res > XMLErrorResources_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: XMLErrorResources_sv.java,v 1.3 2004/02/17 04:14:26 minchau Exp $
18  */

19 package com.sun.org.apache.xml.internal.res;
20
21
22 /**
23  * Set up error messages.
24  * We build a two dimensional array of message keys and
25  * message strings. In order to add a new message here,
26  * you need to first add a String constant. And you need
27  * to enter key, value pair as part of the contents
28  * array. You also need to update MAX_CODE for error strings
29  * and MAX_WARNING for warnings ( Needed for only information
30  * purpose )
31  */

32 public class XMLErrorResources_sv extends XMLErrorResources
33 {
34
35   /** Maximum error messages, this is needed to keep track of the number of messages. */
36   public static final int MAX_CODE = 61;
37
38   /** Maximum warnings, this is needed to keep track of the number of warnings. */
39   public static final int MAX_WARNING = 0;
40
41   /** Maximum misc strings. */
42   public static final int MAX_OTHERS = 4;
43
44   /** Maximum total warnings and error messages. */
45   public static final int MAX_MESSAGES = MAX_CODE + MAX_WARNING + 1;
46
47   
48   // Error messages...
49

50   /** The lookup table for error messages. */
51   public static final Object JavaDoc[][] contents = {
52
53   /** Error message ID that has a null message, but takes in a single object. */
54     {"ER0000" , "{0}" },
55
56   /** ER_FUNCTION_NOT_SUPPORTED */
57   //public static final int ER_FUNCTION_NOT_SUPPORTED = 80;
58

59
60   {
61     ER_FUNCTION_NOT_SUPPORTED, "Funktion inte underst\u00f6dd:"},
62
63   
64   /** Can't overwrite cause */
65   //public static final int ER_CANNOT_OVERWRITE_CAUSE = 115;
66

67
68   {
69     ER_CANNOT_OVERWRITE_CAUSE,
70             "Kan inte skriva \u00f6ver orsak"},
71
72   
73    /** No default implementation found */
74   //public static final int ER_NO_DEFAULT_IMPL = 156;
75

76
77   {
78     ER_NO_DEFAULT_IMPL,
79          "Standardimplementering saknas i:"},
80
81   
82    /** ChunkedIntArray({0}) not currently supported */
83   //public static final int ER_CHUNKEDINTARRAY_NOT_SUPPORTED = 157;
84

85
86   {
87     ER_CHUNKEDINTARRAY_NOT_SUPPORTED,
88        "ChunkedIntArray({0}) underst\u00f6ds f\u00f6r n\u00e4rvarande inte"},
89
90   
91    /** Offset bigger than slot */
92   //public static final int ER_OFFSET_BIGGER_THAN_SLOT = 158;
93

94
95   {
96     ER_OFFSET_BIGGER_THAN_SLOT,
97        "Offset st\u00f6rre \u00e4n fack"},
98
99   
100    /** Coroutine not available, id= */
101   //public static final int ER_COROUTINE_NOT_AVAIL = 159;
102

103
104   {
105     ER_COROUTINE_NOT_AVAIL,
106        "Sidorutin inte tillg\u00e4nglig, id={0}"},
107
108   
109    /** CoroutineManager recieved co_exit() request */
110   //public static final int ER_COROUTINE_CO_EXIT = 160;
111

112
113   {
114     ER_COROUTINE_CO_EXIT,
115        "CoroutineManager mottog co_exit()-f\u00f6rfr\u00e5gan"},
116
117   
118    /** co_joinCoroutineSet() failed */
119   //public static final int ER_COJOINROUTINESET_FAILED = 161;
120

121
122   {
123     ER_COJOINROUTINESET_FAILED,
124        "co_joinCoroutineSet() misslyckades"},
125
126   
127    /** Coroutine parameter error () */
128   //public static final int ER_COROUTINE_PARAM = 162;
129

130
131   {
132     ER_COROUTINE_PARAM,
133        "Sidorutin fick parameterfel ({0})"},
134
135   
136    /** UNEXPECTED: Parser doTerminate answers */
137   //public static final int ER_PARSER_DOTERMINATE_ANSWERS = 163;
138

139
140   {
141     ER_PARSER_DOTERMINATE_ANSWERS,
142        "\nOV\u00c4NTAT: Parser doTerminate-svar {0}"},
143
144   
145    /** parse may not be called while parsing */
146   //public static final int ER_NO_PARSE_CALL_WHILE_PARSING = 164;
147

148
149   {
150     ER_NO_PARSE_CALL_WHILE_PARSING,
151        "parse f\u00e5r inte anropas medan tolkning sker"},
152
153   
154    /** Error: typed iterator for axis {0} not implemented */
155   //public static final int ER_TYPED_ITERATOR_AXIS_NOT_IMPLEMENTED = 165;
156

157
158   {
159     ER_TYPED_ITERATOR_AXIS_NOT_IMPLEMENTED,
160        "Fel: typad upprepare f\u00f6r axel {0} inte implementerad"},
161
162   
163    /** Error: iterator for axis {0} not implemented */
164   //public static final int ER_ITERATOR_AXIS_NOT_IMPLEMENTED = 166;
165

166
167   {
168     ER_ITERATOR_AXIS_NOT_IMPLEMENTED,
169        "Fel: upprepare f\u00f6r axel {0} inte implementerad"},
170
171   
172    /** Iterator clone not supported */
173   //public static final int ER_ITERATOR_CLONE_NOT_SUPPORTED = 167;
174

175
176   {
177     ER_ITERATOR_CLONE_NOT_SUPPORTED,
178        "Uppreparklon underst\u00f6ds inte"},
179
180   
181    /** Unknown axis traversal type */
182   //public static final int ER_UNKNOWN_AXIS_TYPE = 168;
183

184
185   {
186     ER_UNKNOWN_AXIS_TYPE,
187        "Ok\u00e4nd axeltraverstyp: {0}"},
188
189   
190    /** Axis traverser not supported */
191   //public static final int ER_AXIS_NOT_SUPPORTED = 169;
192

193
194   {
195     ER_AXIS_NOT_SUPPORTED,
196        "Axeltravers underst\u00f6ds inte: {0}"},
197
198   
199    /** No more DTM IDs are available */
200   //public static final int ER_NO_DTMIDS_AVAIL = 170;
201

202
203   {
204     ER_NO_DTMIDS_AVAIL,
205        "Inga fler DTM-IDs \u00e4r tillg\u00e4ngliga"},
206
207   
208    /** Not supported */
209   //public static final int ER_NOT_SUPPORTED = 171;
210

211
212   {
213     ER_NOT_SUPPORTED,
214        "Underst\u00f6ds inte: {0}"},
215
216   
217    /** node must be non-null for getDTMHandleFromNode */
218   //public static final int ER_NODE_NON_NULL = 172;
219

220
221   {
222     ER_NODE_NON_NULL,
223        "Nod m\u00e5ste vara icke-null f\u00f6r getDTMHandleFromNode"},
224
225   
226    /** Could not resolve the node to a handle */
227   //public static final int ER_COULD_NOT_RESOLVE_NODE = 173;
228

229
230   {
231     ER_COULD_NOT_RESOLVE_NODE,
232        "Kunde inte l\u00f6sa nod till ett handtag"},
233
234   
235    /** startParse may not be called while parsing */
236   //public static final int ER_STARTPARSE_WHILE_PARSING = 174;
237

238
239   {
240     ER_STARTPARSE_WHILE_PARSING,
241        "startParse f\u00e5r inte anropas medan tolkning sker"},
242
243   
244    /** startParse needs a non-null SAXParser */
245   //public static final int ER_STARTPARSE_NEEDS_SAXPARSER = 175;
246

247
248   {
249     ER_STARTPARSE_NEEDS_SAXPARSER,
250        "startParse beh\u00f6ver en SAXParser som \u00e4r icke-null"},
251
252   
253    /** could not initialize parser with */
254   //public static final int ER_COULD_NOT_INIT_PARSER = 176;
255

256
257   {
258     ER_COULD_NOT_INIT_PARSER,
259        "kunde inte initialisera tolk med"},
260
261   
262    /** exception creating new instance for pool */
263   //public static final int ER_EXCEPTION_CREATING_POOL = 178;
264

265
266   {
267     ER_EXCEPTION_CREATING_POOL,
268        "undantag skapar ny instans f\u00f6r pool"},
269
270   
271    /** Path contains invalid escape sequence */
272   //public static final int ER_PATH_CONTAINS_INVALID_ESCAPE_SEQUENCE = 179;
273

274
275   {
276     ER_PATH_CONTAINS_INVALID_ESCAPE_SEQUENCE,
277        "V\u00e4g inneh\u00e5ller ogiltig flyktsekvens"},
278
279   
280    /** Scheme is required! */
281   //public static final int ER_SCHEME_REQUIRED = 180;
282

283
284   {
285     ER_SCHEME_REQUIRED,
286        "Schema kr\u00e4vs!"},
287
288   
289    /** No scheme found in URI */
290   //public static final int ER_NO_SCHEME_IN_URI = 181;
291

292
293   {
294     ER_NO_SCHEME_IN_URI,
295        "Schema saknas i URI: {0}"},
296
297   
298    /** No scheme found in URI */
299   //public static final int ER_NO_SCHEME_INURI = 182;
300

301
302   {
303     ER_NO_SCHEME_INURI,
304        "Schema saknas i URI"},
305
306   
307    /** Path contains invalid character: */
308   //public static final int ER_PATH_INVALID_CHAR = 183;
309

310
311   {
312     ER_PATH_INVALID_CHAR,
313        "V\u00e4g inneh\u00e5ller ogiltigt tecken: {0}"},
314
315   
316    /** Cannot set scheme from null string */
317   //public static final int ER_SCHEME_FROM_NULL_STRING = 184;
318

319
320   {
321     ER_SCHEME_FROM_NULL_STRING,
322        "Kan inte s\u00e4tta schema fr\u00e5n null-str\u00e4ng"},
323
324   
325    /** The scheme is not conformant. */
326   //public static final int ER_SCHEME_NOT_CONFORMANT = 185;
327

328
329   {
330     ER_SCHEME_NOT_CONFORMANT,
331        "Schemat \u00e4r inte likformigt."},
332
333   
334    /** Host is not a well formed address */
335   //public static final int ER_HOST_ADDRESS_NOT_WELLFORMED = 186;
336

337
338   {
339     ER_HOST_ADDRESS_NOT_WELLFORMED,
340        "V\u00e4rd \u00e4r inte en v\u00e4lformulerad adress"},
341
342   
343    /** Port cannot be set when host is null */
344   //public static final int ER_PORT_WHEN_HOST_NULL = 187;
345

346
347   {
348     ER_PORT_WHEN_HOST_NULL,
349        "Port kan inte s\u00e4ttas n\u00e4r v\u00e4rd \u00e4r null"},
350
351   
352    /** Invalid port number */
353   //public static final int ER_INVALID_PORT = 188;
354

355
356   {
357     ER_INVALID_PORT,
358        "Ogiltigt portnummer"},
359
360   
361    /** Fragment can only be set for a generic URI */
362   //public static final int ER_FRAG_FOR_GENERIC_URI = 189;
363

364
365   {
366     ER_FRAG_FOR_GENERIC_URI,
367        "Fragment kan bara s\u00e4ttas f\u00f6r en allm\u00e4n URI"},
368
369   
370    /** Fragment cannot be set when path is null */
371   //public static final int ER_FRAG_WHEN_PATH_NULL = 190;
372

373
374   {
375     ER_FRAG_WHEN_PATH_NULL,
376        "Fragment kan inte s\u00e4ttas n\u00e4r v\u00e4g \u00e4r null"},
377
378   
379    /** Fragment contains invalid character */
380   //public static final int ER_FRAG_INVALID_CHAR = 191;
381

382
383   {
384     ER_FRAG_INVALID_CHAR,
385        "Fragment inneh\u00e5ller ogiltigt tecken"},
386
387   
388  
389   
390    /** Parser is already in use */
391   //public static final int ER_PARSER_IN_USE = 192;
392

393
394   {
395     ER_PARSER_IN_USE,
396         "Tolk anv\u00e4nds redan"},
397
398   
399    /** Parser is already in use */
400   //public static final int ER_CANNOT_CHANGE_WHILE_PARSING = 193;
401

402
403   {
404     ER_CANNOT_CHANGE_WHILE_PARSING,
405         "Kan inte \u00e4ndra {0} {1} medan tolkning sker"},
406
407   
408    /** Self-causation not permitted */
409   //public static final int ER_SELF_CAUSATION_NOT_PERMITTED = 194;
410

411
412   {
413     ER_SELF_CAUSATION_NOT_PERMITTED,
414         "Sj\u00e4lvorsakande inte till\u00e5ten"},
415
416   
417    /** Userinfo may not be specified if host is not specified */
418   //public static final int ER_NO_USERINFO_IF_NO_HOST = 198;
419

420
421   {
422     ER_NO_USERINFO_IF_NO_HOST,
423         "Userinfo f\u00e5r inte anges om v\u00e4rden inte \u00e4r angiven"},
424
425   
426    /** Port may not be specified if host is not specified */
427   //public static final int ER_NO_PORT_IF_NO_HOST = 199;
428

429
430   {
431     ER_NO_PORT_IF_NO_HOST,
432         "Port f\u00e5r inte anges om v\u00e4rden inte \u00e4r angiven"},
433
434   
435    /** Query string cannot be specified in path and query string */
436   //public static final int ER_NO_QUERY_STRING_IN_PATH = 200;
437

438
439   {
440     ER_NO_QUERY_STRING_IN_PATH,
441         "F\u00f6rfr\u00e5gan-str\u00e4ng kan inte anges i v\u00e4g och f\u00f6rfr\u00e5gan-str\u00e4ng"},
442
443   
444    /** Fragment cannot be specified in both the path and fragment */
445   //public static final int ER_NO_FRAGMENT_STRING_IN_PATH = 201;
446

447
448   {
449     ER_NO_FRAGMENT_STRING_IN_PATH,
450         "Fragment kan inte anges i b\u00e5de v\u00e4gen och fragmentet"},
451
452   
453    /** Cannot initialize URI with empty parameters */
454   //public static final int ER_CANNOT_INIT_URI_EMPTY_PARMS = 202;
455

456
457   {
458     ER_CANNOT_INIT_URI_EMPTY_PARMS,
459         "Kan inte initialisera URI med tomma parametrar"},
460
461   
462   /** Method not yet supported */
463   //public static final int ER_METHOD_NOT_SUPPORTED = 210;
464

465
466   {
467     ER_METHOD_NOT_SUPPORTED,
468         "Metod \u00e4nnu inte underst\u00f6dd "},
469
470
471   /** IncrementalSAXSource_Filter not currently restartable */
472   //public static final int ER_INCRSAXSRCFILTER_NOT_RESTARTABLE = 214;
473

474
475   {
476     ER_INCRSAXSRCFILTER_NOT_RESTARTABLE,
477      "IncrementalSAXSource_Filter kan f\u00f6r n\u00e4rvarande inte startas om"},
478
479   
480   /** IncrementalSAXSource_Filter not currently restartable */
481   //public static final int ER_XMLRDR_NOT_BEFORE_STARTPARSE = 215;
482

483
484   {
485     ER_XMLRDR_NOT_BEFORE_STARTPARSE,
486      "XMLReader inte innan startParse-beg\u00e4ran"},
487
488
489 // Axis traverser not supported: {0}
490
//public static final int ER_AXIS_TRAVERSER_NOT_SUPPORTED = 235;
491

492   {
493     ER_AXIS_TRAVERSER_NOT_SUPPORTED,
494      "Det g\u00e5r inte att v\u00e4nda axeln: {0}"},
495
496
497 // ListingErrorHandler created with null PrintWriter!
498
//public static final int ER_ERRORHANDLER_CREATED_WITH_NULL_PRINTWRITER = 236;
499

500   {
501     ER_ERRORHANDLER_CREATED_WITH_NULL_PRINTWRITER,
502      "ListingErrorHandler skapad med null PrintWriter!"},
503
504
505   //public static final int ER_SYSTEMID_UNKNOWN = 240;
506

507   {
508     ER_SYSTEMID_UNKNOWN,
509      "SystemId ok\u00e4nt"},
510
511
512   // Location of error unknown
513
//public static final int ER_LOCATION_UNKNOWN = 241;
514

515   {
516     ER_LOCATION_UNKNOWN,
517      "Platsen f\u00f6r felet \u00e4r ok\u00e4nd"},
518
519
520   /** Field ER_PREFIX_MUST_RESOLVE */
521   //public static final int ER_PREFIX_MUST_RESOLVE = 52;
522

523
524   {
525     ER_PREFIX_MUST_RESOLVE,
526       "Prefix must resolve to a namespace: {0}"},
527
528
529   /** Field ER_CREATEDOCUMENT_NOT_SUPPORTED */
530   //public static final int ER_CREATEDOCUMENT_NOT_SUPPORTED = 54;
531

532
533   {
534     ER_CREATEDOCUMENT_NOT_SUPPORTED,
535       "createDocument() underst\u00f6ds inte av XPathContext!"},
536
537
538   /** Field ER_CHILD_HAS_NO_OWNER_DOCUMENT */
539   //public static final int ER_CHILD_HAS_NO_OWNER_DOCUMENT = 55;
540

541
542   {
543     ER_CHILD_HAS_NO_OWNER_DOCUMENT,
544       "Attributbarn saknar \u00e4gardokument!"},
545
546
547   /** Field ER_CHILD_HAS_NO_OWNER_DOCUMENT_ELEMENT */
548   //public static final int ER_CHILD_HAS_NO_OWNER_DOCUMENT_ELEMENT = 56;
549

550
551   {
552     ER_CHILD_HAS_NO_OWNER_DOCUMENT_ELEMENT,
553       "Attributbarn saknar \u00e4gardokumentelement!"},
554
555
556   /** Field ER_CANT_OUTPUT_TEXT_BEFORE_DOC */
557   //public static final int ER_CANT_OUTPUT_TEXT_BEFORE_DOC = 63;
558

559
560   {
561     ER_CANT_OUTPUT_TEXT_BEFORE_DOC,
562       "Varning: kan inte skriva ut text innan dokumentelement! Ignorerar..."},
563
564
565   /** Field ER_CANT_HAVE_MORE_THAN_ONE_ROOT */
566   //public static final int ER_CANT_HAVE_MORE_THAN_ONE_ROOT = 64;
567

568
569   {
570     ER_CANT_HAVE_MORE_THAN_ONE_ROOT,
571       "Kan inte ha mer \u00e4n en rot p\u00e5 en DOM!"},
572
573   
574    /** Argument 'localName' is null */
575   //public static final int ER_ARG_LOCALNAME_NULL = 70;
576

577
578   {
579     ER_ARG_LOCALNAME_NULL,
580        "Argument 'localName' \u00e4r null"},
581
582
583   // Note to translators: A QNAME has the syntactic form [NCName:]NCName
584
// The localname is the portion after the optional colon; the message indicates
585
// that there is a problem with that part of the QNAME.
586

587   /** localname in QNAME should be a valid NCName */
588   //public static final int ER_ARG_LOCALNAME_INVALID = 101;
589

590
591   {
592     ER_ARG_LOCALNAME_INVALID,
593        "Localname i QNAME b\u00f6r vara ett giltigt NCName"},
594
595   
596   // Note to translators: A QNAME has the syntactic form [NCName:]NCName
597
// The prefix is the portion before the optional colon; the message indicates
598
// that there is a problem with that part of the QNAME.
599

600   /** prefix in QNAME should be a valid NCName */
601   //public static final int ER_ARG_PREFIX_INVALID = 102;
602

603
604   {
605     ER_ARG_PREFIX_INVALID,
606        "Prefixet i QNAME b\u00f6r vara ett giltigt NCName"},
607
608   { "BAD_CODE",
609       "Parameter till createMessage ligger utanf\u00f6r till\u00e5tet intervall"},
610   { "FORMAT_FAILED",
611       "Undantag utl\u00f6st vid messageFormat-anrop"},
612   { "line", "Rad #"},
613   { "column", "Kolumn #"}
614          
615   };
616  
617   /**
618    * Get the association list.
619    *
620    * @return The association list.
621    */

622   public Object JavaDoc[][] getContents()
623   {
624     return contents;
625   }
626  
627 }
628
Popular Tags