KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > xdoclet > XDocletMessages


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

5 package xdoclet;
6
7 /**
8  * All messages resource keys should be defined in a Messages class, per package, as constants. The class is named like
9  * this: XDocletMessages, or XDocletEjbDdMessages, i.e. full package name prefixed (making pointing to them easier).
10  * They should not be referenced literally in any place, because it's easy to misspell it. Using Messages class means
11  * this possibility is zero. Another benefit is that wherever you need to reference a resource key from another package,
12  * you just use a phrase like xdoclet.ejb.Messages.class and not the literal, and that means if we refactor the code
13  * (change packages) a refactoring tool like IDEA can update the references too. So even if we're pointing to external
14  * resources, everything is compile time checked.
15  *
16  * @author Ara Abrahamian (ara_e_w@yahoo.com)
17  * @created May 30, 2002
18  * @version $Revision: 1.16 $
19  */

20 public final class XDocletMessages
21 {
22     /**
23      * @msg.bundle msg="''{0}'' parameter missing or empty."
24      */

25     public final static String JavaDoc PARAMETER_MISSING_OR_EMPTY = "PARAMETER_MISSING_OR_EMPTY";
26
27     /**
28      * @msg.bundle msg="Running {0} task failed. An IO error occured while writing context data."
29      */

30     public final static String JavaDoc CONTEXT_WRITE_ERROR = "CONTEXT_WRITE_ERROR";
31
32     /**
33      * @msg.bundle msg="Running XDoclet failed. An IO error occured while reading context data."
34      */

35     public final static String JavaDoc CONTEXT_READ_ERROR = "CONTEXT_READ_ERROR";
36
37     /**
38      * @msg.bundle msg="{0} attribute must be present."
39      */

40     public final static String JavaDoc ATTRIBUTE_NOT_PRESENT_ERROR = "ATTRIBUTE_NOT_PRESENT_ERROR";
41
42     /**
43      * @msg.bundle msg="You must specify at least one fileset to indicate which files are to be processed."
44      */

45     public final static String JavaDoc NO_FILESETS = "NO_FILESETS";
46
47     /**
48      * @msg.bundle msg="Running {0}"
49      */

50     public final static String JavaDoc RUNNING_TASKNAME = "RUNNING_TASKNAME";
51
52     /**
53      * @msg.bundle msg="Running XDoclet failed."
54      */

55     public final static String JavaDoc RUNNING_FAILED = "RUNNING_FAILED";
56
57     /**
58      * @msg.bundle msg="Running XDoclet failed. A needed class was not found. Configure classpath of XDoclet task
59      * properly."
60      */

61     public final static String JavaDoc INCORRECT_CLASSPATH = "INCORRECT_CLASSPATH";
62
63     /**
64      * @msg.bundle msg="Could not instantiate SubTask class ''{0}''. Ignored. Make sure it''s in doclet''s classpath."
65      */

66     public final static String JavaDoc COULDNT_INSTANTIATE_SUBTASK = "COULDNT_INSTANTIATE_SUBTASK";
67
68     /**
69      * @msg.bundle msg="Initializing template engine failed."
70      */

71     public final static String JavaDoc INIT_TEMPLATE_ENGINE_FAILED = "INIT_TEMPLATE_ENGINE_FAILED";
72
73     /**
74      * @msg.bundle msg="Mandatory parameter ''{0}'' missing for {1} tag in {2} field of {3} class."
75      */

76     public final static String JavaDoc MANDATORY_TAG_PARAM_MISSING_FIELD = "MANDATORY_TAG_PARAM_MISSING_FIELD";
77
78     /**
79      * @msg.bundle msg="Mandatory parameter ''{0}'' missing for {1} tag in constructor of {2} class."
80      */

81     public final static String JavaDoc MANDATORY_TAG_PARAM_MISSING_CONSTRUCTOR = "MANDATORY_TAG_PARAM_MISSING_CONSTRUCTOR";
82
83     /**
84      * @msg.bundle msg="Mandatory parameter ''{0}'' missing for {1} tag in {2} class."
85      */

86     public final static String JavaDoc MANDATORY_TAG_PARAM_MISSING_CLASS = "MANDATORY_TAG_PARAM_MISSING_CLASS";
87
88     /**
89      * @msg.bundle msg="Mandatory parameter ''{0}'' missing for {1} tag in {2} method of {3} class."
90      */

91     public final static String JavaDoc MANDATORY_TAG_PARAM_MISSING_METHOD = "MANDATORY_TAG_PARAM_MISSING_METHOD";
92
93     /**
94      * @msg.bundle msg="Generated by XDoclet"
95      */

96     public final static String JavaDoc GENERATED_BY_XDOCLET = "GENERATED_BY_XDOCLET";
97
98     /**
99      * @msg.bundle msg="Generated file - Do not edit!"
100      */

101     public final static String JavaDoc DO_NOT_EDIT = "DO_NOT_EDIT";
102
103     /**
104      * @msg.bundle msg="No Description."
105      */

106     public final static String JavaDoc NO_DESCRIPTION = "NO_DESCRIPTION";
107
108     /**
109      * @msg.bundle msg="Javadoc couldn''t load class {0}, add it to the sourcepath please."
110      */

111     public final static String JavaDoc JAVADOC_COULDNT_LOAD_CLASS = "JAVADOC_COULDNT_LOAD_CLASS";
112
113     /**
114      * @msg.bundle msg="{0} failed."
115      */

116     public final static String JavaDoc METHOD_FAILED = "METHOD_FAILED";
117
118     /**
119      * @msg.bundle msg="Class ''{0}'' not found. Make sure it''s added to XDoclet''s classpath."
120      */

121     public final static String JavaDoc CLASS_NOT_FOUND = "CLASS_NOT_FOUND";
122
123     /**
124      * @msg.bundle msg="Not an XmlSubTask, so can''t use Xml namespace template tags."
125      */

126     public final static String JavaDoc NO_XML_TAGS_ALLOWED = "NO_XML_TAGS_ALLOWED";
127
128     /**
129      * @msg.bundle msg="doc argument passed to TemplateDoclet.getText is not of type ClassDoc or MethodDoc or
130      * ConstructorDoc or FieldDoc. doc={0}"
131      */

132     public final static String JavaDoc BAD_GETTEXT_DOC_TYPE = "BAD_GETTEXT_DOC_TYPE";
133
134     /**
135      * @msg.bundle msg="Couldn''t configure XML parser."
136      */

137     public final static String JavaDoc COULDNT_CONF_XML_PARSER = "COULDNT_CONF_XML_PARSER";
138
139     /**
140      * @msg.bundle msg="Couldn''t load DTD."
141      */

142     public final static String JavaDoc COULDNT_LOAD_DTD = "COULDNT_LOAD_DTD";
143
144     /**
145      * @msg.bundle msg="Couldn''t load XML file."
146      */

147     public final static String JavaDoc COULDNT_LOAD_XML_FILE = "COULDNT_LOAD_XML_FILE";
148
149     /**
150      * @msg.bundle msg="Couldn''t initialize XML parser."
151      */

152     public final static String JavaDoc COULDNT_INIT_XML_PARSER = "COULDNT_INIT_XML_PARSER";
153
154     /**
155      * @msg.bundle msg="WARNING: couldn''t load local DTD for publicId={0}."
156      */

157     public final static String JavaDoc COULDNT_LOAD_LOCAL_DTD = "COULDNT_LOAD_LOCAL_DTD";
158
159     /**
160      * @msg.bundle msg="WARNING: Couldn''t find DTD in xdoclet.jar: {0}. You should set validatexml=\"false\"."
161      */

162     public final static String JavaDoc COULDNT_FIND_DTD = "COULDNT_FIND_DTD";
163
164     /**
165      * @msg.bundle msg="''{0}'' parameter of {1} class tag expected in class {2} but not found."
166      */

167     public final static String JavaDoc CLASS_TAG_PARAMETER_EXPECTED = "CLASS_TAG_PARAMETER_EXPECTED";
168
169     /**
170      * @msg.bundle msg="{0} class tag expected in class {1} but not found."
171      */

172     public final static String JavaDoc CLASS_TAG_EXPECTED = "CLASS_TAG_EXPECTED";
173
174     /**
175      * @msg.bundle msg="The value ''{0}'' specified for parameter ''{1}'' of {2} tag in {3} field of {4} class is not
176      * valid. Valid values for this tag are: '{'{5}}."
177      */

178     public final static String JavaDoc INVALID_TAG_PARAM_VALUE_FIELD = "INVALID_TAG_PARAM_VALUE_FIELD";
179
180     /**
181      * @msg.bundle msg="The value ''{0}'' specified for parameter ''{1}'' of {2} tag in constructor of {3} class is
182      * not valid. Valid values for this tag are: '{'{4}}."
183      */

184     public final static String JavaDoc INVALID_TAG_PARAM_VALUE_CONSTRUCTOR = "INVALID_TAG_PARAM_VALUE_CONSTRUCTOR";
185
186     /**
187      * @msg.bundle msg="The value ''{0}'' specified for parameter ''{1}'' of {2} tag in {3} class is not valid. Valid
188      * values for this tag are: '{'{4}}."
189      */

190     public final static String JavaDoc INVALID_TAG_PARAM_VALUE_CLASS = "INVALID_TAG_PARAM_VALUE_CLASS";
191
192     /**
193      * @msg.bundle msg="The value ''{0}'' specified for parameter ''{1}'' of {2} tag in {3} method of {4} class is not
194      * valid. Valid values for this tag are: '{'{5}}."
195      */

196     public final static String JavaDoc INVALID_TAG_PARAM_VALUE_METHOD = "INVALID_TAG_PARAM_VALUE_METHOD";
197
198     /**
199      * @msg.bundle msg="What''s going on here?!?!? prg_elem_doc={0}"
200      */

201     public final static String JavaDoc BAD_PRGELEMDOC_TYPE = "BAD_PRGELEMDOC_TYPE";
202
203     /**
204      * @msg.bundle msg="Generating output for ''{0}'' using template file ''{1}''."
205      */

206     public final static String JavaDoc GENERATING_TEMPLATE_OUTPUT_PER_CLASS = "GENERATING_TEMPLATE_OUTPUT_PER_CLASS";
207
208     /**
209      * @msg.bundle msg="Generating output ''{0}'' using template file ''{1}''."
210      */

211     public final static String JavaDoc GENERATING_TEMPLATE_OUTPUT_SINGLE_FILE = "GENERATING_TEMPLATE_OUTPUT_SINGLE_FILE";
212
213     /**
214      * @msg.bundle msg="Couldn''t find bean {0} in sourcepath {1}."
215      */

216     public final static String JavaDoc COULDNT_FIND_BEAN = "COULDNT_FIND_BEAN";
217
218     /**
219      * @msg.bundle msg="Error in tag: = sign expected after parameter name, class={0}, tag={1}."
220      */

221     public final static String JavaDoc TAG_MISSING_EQUALS = "TAG_MISSING_EQUALS";
222
223     /**
224      * @msg.bundle msg="Error in tag: parameters should be in paramName=\"paramValue\" format, class={0}, tag={1}."
225      */

226     public final static String JavaDoc TAG_MALFORMED_VALUE = "TAG_MALFORMED_VALUE";
227
228     /**
229      * @msg.bundle msg="Error in tag: \" sign expected but something different found, class={0}, tag={1}."
230      */

231     public final static String JavaDoc TAG_QUOTE_EXPECTED = "TAG_QUOTE_EXPECTED";
232
233     /**
234      * @msg.bundle msg="Error in tag: to put \" in a parameter value you need to escape \" character with \\,
235      * class={0}, tag={1}."
236      */

237     public final static String JavaDoc TAG_MUST_ESCAPE_QUOTES = "TAG_MUST_ESCAPE_QUOTES";
238
239     /**
240      * @msg.bundle msg="Error in tag: trailing \" sign expected but not found, class={0}, tag={1}."
241      */

242     public final static String JavaDoc TAG_NO_CLOSING_QUOTE = "TAG_NO_CLOSING_QUOTE";
243
244     /**
245      * @msg.bundle msg="tagName mandatory parameter in template file is null."
246      */

247     public final static String JavaDoc TEMPLATE_TAGNAME_IS_NULL = "TEMPLATE_TAGNAME_IS_NULL";
248
249     /**
250      * @msg.bundle msg="Bad type. Should have been one of FOR_CLASS, FOR_METHOD, FOR_CONSTRUCTOR or FOR_FIELD."
251      */

252     public final static String JavaDoc BAD_TAGVALUE_TYPE = "BAD_TAGVALUE_TYPE";
253
254     /**
255      * @msg.bundle msg="Cannot have null program element when extracting tag value."
256      */

257     public final static String JavaDoc TAGVALUE_NULL = "TAGVALUE_NULL";
258
259     /**
260      * @msg.bundle msg="Mandatory parameter ''{0}'' missing for template tag ''{1}''."
261      */

262     public final static String JavaDoc MANDATORY_TAG_PARAM_MISSING_TEMPLATE = "MANDATORY_TAG_PARAM_MISSING_TEMPLATE";
263
264     /**
265      * @msg.bundle msg="Generating {0}."
266      */

267     public final static String JavaDoc GENERATING_SOMETHING = "GENERATING_SOMETHING";
268
269     /**
270      * @msg.bundle msg="Method {0} not found."
271      */

272     public final static String JavaDoc METHOD_NOT_FOUND = "METHOD_NOT_FOUND";
273
274     /**
275      * @msg.bundle msg="{0} tag must include a {1} property."
276      */

277     public final static String JavaDoc TAG_MUST_INCLUDE_A_PROPERTY = "TAG_MUST_INCLUDE_A_PROPERTY";
278
279     /**
280      * @msg.bundle msg="Duplicated tag {0} {1}=''{2}'' encountered. IGNORED."
281      */

282     public final static String JavaDoc DUPLICATED_TAG = "DUPLICATED_TAG";
283
284     /**
285      * @msg.bundle msg="The {0} task doesn''t support the {1} attribute."
286      */

287     public final static String JavaDoc ATTRIBUTE_NOT_SUPPORTED = "ATTRIBUTE_NOT_SUPPORTED";
288
289     /**
290      * @msg.bundle msg="{0} attribute is now obsolete. Please use a nested <fileset> element."
291      */

292     public final static String JavaDoc OBSOLETE_TASK_ATTRIBUTE = "PACKAGENAMES_OBSOLETE";
293
294     /**
295      * @msg.bundle msg="Can''t create a {0} element under {1}. Make sure the jar file containing the corresponding
296      * subtask class is on the classpath specified in the <taskdef> that defined {2}."
297      */

298     public final static String JavaDoc CREATE_TASK_ERROR = "CREATE_TASK_ERROR";
299
300     /**
301      * @msg.bundle msg="Couldn''t find class {0}: {1}"
302      */

303     public final static String JavaDoc CLASS_NOT_FOUND_EXCEPTION = "CLASS_NOT_FOUND_EXCEPTION";
304
305     /**
306      * @msg.bundle msg="Couldn''t instantiate class {0}: {1}"
307      */

308     public final static String JavaDoc INSTANTIATION_EXCEPTION = "INSTANTIATION_EXCEPTION";
309
310     /**
311      * @msg.bundle msg="Couldn''t invoke constructor for class {0}: {1}"
312      */

313     public final static String JavaDoc ILLEGAL_ACCESS_EXCEPTION = "ILLEGAL_ACCESS_EXCEPTION";
314
315     /**
316      * @msg.bundle msg="XDoclet failed."
317      */

318     public final static String JavaDoc XDOCLET_FAILED = "XDOCLET_FAILED";
319
320     /**
321      * @msg.bundle msg="Make sure the jar file containing the {0} class is on the classpath specified in the <taskdef>
322      * that defined {1}. These classes are needed in order to generate correct output."
323      */

324     public final static String JavaDoc CHECK_CLASS_FAILED = "CHECK_CLASS_FAILED";
325
326     /**
327      * @msg.bundle msg="Ambiguous subtask definition for logical name {0}: {1} and {2}"
328      */

329     public final static String JavaDoc AMBIGUOUS_SUBTASK_DEFINITION = "AMBIGUOUS_SUBTASK_DEFINITION";
330
331     /**
332      * @msg.bundle msg="Couldn''t find the class {0} on the classpath: {1}"
333      */

334     public final static String JavaDoc DEPENDENT_CLASS_FOR_SUBTASK_NOT_FOUND = "DEPENDENT_CLASS_FOR_SUBTASK_NOT_FOUND";
335
336     /**
337      * @msg.bundle msg="Couldn''t cast class {0} to {1}"
338      */

339     public final static String JavaDoc CLASS_CAST_EXCEPTION = "CLASS_CAST_EXCEPTION";
340 }
341
Popular Tags