All messages resource keys should be defined in a Messages class, per package, as constants. The class is named like
this: XDocletMessages, or XDocletEjbDdMessages, i.e. full package name prefixed (making pointing to them easier).
They should not be referenced literally in any place, because it's easy to misspell it. Using Messages class means
this possibility is zero. Another benefit is that wherever you need to reference a resource key from another package,
you just use a phrase like xdoclet.ejb.Messages.class and not the literal, and that means if we refactor the code
(change packages) a refactoring tool like IDEA can update the references too. So even if we're pointing to external
resources, everything is compile time checked.
AMBIGUOUS_SUBTASK_DEFINITION
public static final String AMBIGUOUS_SUBTASK_DEFINITION
- msg = "Ambiguous subtask definition for logical name {0}: {1} and {2}"
ATTRIBUTE_NOT_PRESENT_ERROR
public static final String ATTRIBUTE_NOT_PRESENT_ERROR
- msg = "{0} attribute must be present."
ATTRIBUTE_NOT_SUPPORTED
public static final String ATTRIBUTE_NOT_SUPPORTED
- msg = "The {0} task doesn''t support the {1} attribute."
BAD_GETTEXT_DOC_TYPE
public static final String BAD_GETTEXT_DOC_TYPE
- msg = "doc argument passed to TemplateDoclet.getText is not of type ClassDoc or MethodDoc or
ConstructorDoc or FieldDoc. doc={0}"
BAD_PRGELEMDOC_TYPE
public static final String BAD_PRGELEMDOC_TYPE
- msg = "What''s going on here?!?!? prg_elem_doc={0}"
BAD_TAGVALUE_TYPE
public static final String BAD_TAGVALUE_TYPE
- msg = "Bad type. Should have been one of FOR_CLASS, FOR_METHOD, FOR_CONSTRUCTOR or FOR_FIELD."
CHECK_CLASS_FAILED
public static final String CHECK_CLASS_FAILED
- msg = "Make sure the jar file containing the {0} class is on the classpath specified in the
that defined {1}. These classes are needed in order to generate correct output."
CLASS_CAST_EXCEPTION
public static final String CLASS_CAST_EXCEPTION
- msg = "Couldn''t cast class {0} to {1}"
CLASS_NOT_FOUND
public static final String CLASS_NOT_FOUND
- msg = "Class ''{0}'' not found. Make sure it''s added to XDoclet''s classpath."
CLASS_NOT_FOUND_EXCEPTION
public static final String CLASS_NOT_FOUND_EXCEPTION
- msg = "Couldn''t find class {0}: {1}"
CLASS_TAG_EXPECTED
public static final String CLASS_TAG_EXPECTED
- msg = "{0} class tag expected in class {1} but not found."
CLASS_TAG_PARAMETER_EXPECTED
public static final String CLASS_TAG_PARAMETER_EXPECTED
- msg = "''{0}'' parameter of {1} class tag expected in class {2} but not found."
CONTEXT_READ_ERROR
public static final String CONTEXT_READ_ERROR
- msg = "Running XDoclet failed. An IO error occured while reading context data."
CONTEXT_WRITE_ERROR
public static final String CONTEXT_WRITE_ERROR
- msg = "Running {0} task failed. An IO error occured while writing context data."
COULDNT_CONF_XML_PARSER
public static final String COULDNT_CONF_XML_PARSER
- msg = "Couldn''t configure XML parser."
COULDNT_FIND_BEAN
public static final String COULDNT_FIND_BEAN
- msg = "Couldn''t find bean {0} in sourcepath {1}."
COULDNT_FIND_DTD
public static final String COULDNT_FIND_DTD
- msg = "WARNING: Couldn''t find DTD in xdoclet.jar: {0}. You should set validatexml=\"false\"."
COULDNT_INIT_XML_PARSER
public static final String COULDNT_INIT_XML_PARSER
- msg = "Couldn''t initialize XML parser."
COULDNT_INSTANTIATE_SUBTASK
public static final String COULDNT_INSTANTIATE_SUBTASK
- msg = "Could not instantiate SubTask class ''{0}''. Ignored. Make sure it''s in doclet''s classpath."
COULDNT_LOAD_DTD
public static final String COULDNT_LOAD_DTD
- msg = "Couldn''t load DTD."
COULDNT_LOAD_LOCAL_DTD
public static final String COULDNT_LOAD_LOCAL_DTD
- msg = "WARNING: couldn''t load local DTD for publicId={0}."
COULDNT_LOAD_XML_FILE
public static final String COULDNT_LOAD_XML_FILE
- msg = "Couldn''t load XML file."
CREATE_TASK_ERROR
public static final String CREATE_TASK_ERROR
- msg = "Can''t create a {0} element under {1}. Make sure the jar file containing the corresponding
subtask class is on the classpath specified in the that defined {2}."
DEPENDENT_CLASS_FOR_SUBTASK_NOT_FOUND
public static final String DEPENDENT_CLASS_FOR_SUBTASK_NOT_FOUND
- msg = "Couldn''t find the class {0} on the classpath: {1}"
DO_NOT_EDIT
public static final String DO_NOT_EDIT
- msg = "Generated file - Do not edit!"
DUPLICATED_TAG
public static final String DUPLICATED_TAG
- msg = "Duplicated tag {0} {1}=''{2}'' encountered. IGNORED."
GENERATED_BY_XDOCLET
public static final String GENERATED_BY_XDOCLET
- msg = "Generated by XDoclet"
GENERATING_SOMETHING
public static final String GENERATING_SOMETHING
- msg = "Generating {0}."
GENERATING_TEMPLATE_OUTPUT_PER_CLASS
public static final String GENERATING_TEMPLATE_OUTPUT_PER_CLASS
- msg = "Generating output for ''{0}'' using template file ''{1}''."
GENERATING_TEMPLATE_OUTPUT_SINGLE_FILE
public static final String GENERATING_TEMPLATE_OUTPUT_SINGLE_FILE
- msg = "Generating output ''{0}'' using template file ''{1}''."
ILLEGAL_ACCESS_EXCEPTION
public static final String ILLEGAL_ACCESS_EXCEPTION
- msg = "Couldn''t invoke constructor for class {0}: {1}"
INCORRECT_CLASSPATH
public static final String INCORRECT_CLASSPATH
- msg = "Running XDoclet failed. A needed class was not found. Configure classpath of XDoclet task
properly."
INIT_TEMPLATE_ENGINE_FAILED
public static final String INIT_TEMPLATE_ENGINE_FAILED
- msg = "Initializing template engine failed."
INSTANTIATION_EXCEPTION
public static final String INSTANTIATION_EXCEPTION
- msg = "Couldn''t instantiate class {0}: {1}"
INVALID_TAG_PARAM_VALUE_CLASS
public static final String INVALID_TAG_PARAM_VALUE_CLASS
- msg = "The value ''{0}'' specified for parameter ''{1}'' of {2} tag in {3} class is not valid. Valid
values for this tag are: '{'{4}}."
INVALID_TAG_PARAM_VALUE_CONSTRUCTOR
public static final String INVALID_TAG_PARAM_VALUE_CONSTRUCTOR
- msg = "The value ''{0}'' specified for parameter ''{1}'' of {2} tag in constructor of {3} class is
not valid. Valid values for this tag are: '{'{4}}."
INVALID_TAG_PARAM_VALUE_FIELD
public static final String INVALID_TAG_PARAM_VALUE_FIELD
- msg = "The value ''{0}'' specified for parameter ''{1}'' of {2} tag in {3} field of {4} class is not
valid. Valid values for this tag are: '{'{5}}."
INVALID_TAG_PARAM_VALUE_METHOD
public static final String INVALID_TAG_PARAM_VALUE_METHOD
- msg = "The value ''{0}'' specified for parameter ''{1}'' of {2} tag in {3} method of {4} class is not
valid. Valid values for this tag are: '{'{5}}."
JAVADOC_COULDNT_LOAD_CLASS
public static final String JAVADOC_COULDNT_LOAD_CLASS
- msg = "Javadoc couldn''t load class {0}, add it to the sourcepath please."
MANDATORY_TAG_PARAM_MISSING_CLASS
public static final String MANDATORY_TAG_PARAM_MISSING_CLASS
- msg = "Mandatory parameter ''{0}'' missing for {1} tag in {2} class."
MANDATORY_TAG_PARAM_MISSING_CONSTRUCTOR
public static final String MANDATORY_TAG_PARAM_MISSING_CONSTRUCTOR
- msg = "Mandatory parameter ''{0}'' missing for {1} tag in constructor of {2} class."
MANDATORY_TAG_PARAM_MISSING_FIELD
public static final String MANDATORY_TAG_PARAM_MISSING_FIELD
- msg = "Mandatory parameter ''{0}'' missing for {1} tag in {2} field of {3} class."
MANDATORY_TAG_PARAM_MISSING_METHOD
public static final String MANDATORY_TAG_PARAM_MISSING_METHOD
- msg = "Mandatory parameter ''{0}'' missing for {1} tag in {2} method of {3} class."
MANDATORY_TAG_PARAM_MISSING_TEMPLATE
public static final String MANDATORY_TAG_PARAM_MISSING_TEMPLATE
- msg = "Mandatory parameter ''{0}'' missing for template tag ''{1}''."
METHOD_FAILED
public static final String METHOD_FAILED
- msg = "{0} failed."
METHOD_NOT_FOUND
public static final String METHOD_NOT_FOUND
- msg = "Method {0} not found."
NO_DESCRIPTION
public static final String NO_DESCRIPTION
- msg = "No Description."
NO_FILESETS
public static final String NO_FILESETS
- msg = "You must specify at least one fileset to indicate which files are to be processed."
NO_XML_TAGS_ALLOWED
public static final String NO_XML_TAGS_ALLOWED
- msg = "Not an XmlSubTask, so can''t use Xml namespace template tags."
OBSOLETE_TASK_ATTRIBUTE
public static final String OBSOLETE_TASK_ATTRIBUTE
- msg = "{0} attribute is now obsolete. Please use a nested element."
PARAMETER_MISSING_OR_EMPTY
public static final String PARAMETER_MISSING_OR_EMPTY
- msg = "''{0}'' parameter missing or empty."
RUNNING_FAILED
public static final String RUNNING_FAILED
- msg = "Running XDoclet failed."
RUNNING_TASKNAME
public static final String RUNNING_TASKNAME
- msg = "Running {0}"
TAGVALUE_NULL
public static final String TAGVALUE_NULL
- msg = "Cannot have null program element when extracting tag value."
TAG_MALFORMED_VALUE
public static final String TAG_MALFORMED_VALUE
- msg = "Error in tag: parameters should be in paramName=\"paramValue\" format, class={0}, tag={1}."
TAG_MISSING_EQUALS
public static final String TAG_MISSING_EQUALS
- msg = "Error in tag: = sign expected after parameter name, class={0}, tag={1}."
TAG_MUST_ESCAPE_QUOTES
public static final String TAG_MUST_ESCAPE_QUOTES
- msg = "Error in tag: to put \"
inaparameter
valueyouneed
toescape\" character with \\,
class={0}, tag={1}."
TAG_MUST_INCLUDE_A_PROPERTY
public static final String TAG_MUST_INCLUDE_A_PROPERTY
- msg = "{0} tag must include a {1} property."
TAG_NO_CLOSING_QUOTE
public static final String TAG_NO_CLOSING_QUOTE
- msg = "Error in tag: trailing \"
signexpectedbut
notfound,class
= {0},
tag = {1}."
TAG_QUOTE_EXPECTED
public static final String TAG_QUOTE_EXPECTED
- msg = "Error in tag: \"
signexpectedbut
somethingdifferentfound,
class = {0},
tag = {1}."
TEMPLATE_TAGNAME_IS_NULL
public static final String TEMPLATE_TAGNAME_IS_NULL
- msg = "tagName mandatory parameter in template file is null."
XDOCLET_FAILED
public static final String XDOCLET_FAILED
- msg = "XDoclet failed."