KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > xdoclet > modules > caucho > L


1 /*
2  * Copyright (c) 2001, 2002 The XDoclet team
3  * All rights reserved.
4  */

5 package xdoclet.modules.caucho;
6
7 import xdoclet.XDocletException;
8 import xdoclet.util.Translator;
9
10 /**
11  * overkill
12  *
13  * @author Yoritaka Sakakura (yori@teardrop.org)
14  * @created June 6, 2002
15  */

16 public final class L
17 {
18     /**
19      * @msg.bundle msg="Generated from {0}."
20      */

21     public final static String JavaDoc GENERATED_FROM = "GENERATED_FROM";
22
23     /**
24      * @msg.bundle msg="No current Javadoc tag."
25      */

26     public final static String JavaDoc NO_CURRENT_JAVADOC_TAG = "NO_CURRENT_JAVADOC_TAG";
27
28     /**
29      * @msg.bundle msg="No current method."
30      */

31     public final static String JavaDoc NO_CURRENT_METHOD = "NO_CURRENT_METHOD";
32
33     /**
34      * @msg.bundle msg="No current parameter."
35      */

36     public final static String JavaDoc NO_CURRENT_PARAMETER = "NO_CURRENT_PARAMETER";
37
38
39     static XDocletException error(String JavaDoc key)
40     {
41         return error(key, null);
42     }
43
44     static XDocletException error(String JavaDoc key, String JavaDoc[] args)
45     {
46         return new XDocletException(l(key, args));
47     }
48
49     static String JavaDoc l(String JavaDoc key)
50     {
51         return l(key, null);
52     }
53
54     static String JavaDoc l(String JavaDoc key, String JavaDoc[] args)
55     {
56         return Translator.getString(L.class, key, args);
57     }
58 }
59
Popular Tags