|
JBoss Logging I18n Tools 1.0.0.Beta7 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface Annotations
Defines the annotations and annotation values used to generate the concrete classes from the annotated interfaces.
| Nested Class Summary | |
|---|---|
static class |
Annotations.FormatType
The message format type. |
| Method Summary | |
|---|---|
Class<? extends Annotation> |
cause()
Returns the cause annotation class. |
Class<? extends Annotation> |
formatWith()
Returns the format with annotation class. |
boolean |
hasMessageId(ExecutableElement method)
Checks to see if the method has a message id. |
boolean |
inheritsMessageId(ExecutableElement method)
Checks to see if the method should inherit the message id from a different method if applicable. |
String |
loggerMethod(ExecutableElement method,
Annotations.FormatType formatType)
Returns the logger method name to use. |
String |
logLevel(ExecutableElement method)
Returns the log level enum. |
Class<? extends Annotation> |
logMessage()
Returns the log message annotation class. |
Class<? extends Annotation> |
message()
Returns the message annotation class. |
Class<? extends Annotation> |
messageBundle()
Returns the message bundle annotation class. |
Annotations.FormatType |
messageFormat(ExecutableElement method)
Returns the method format type. |
int |
messageId(ExecutableElement method)
Returns the message id. |
Class<? extends Annotation> |
messageLogger()
Returns the message logger annotation class. |
String |
messageValue(ExecutableElement method)
Returns the message value for the method. |
String |
projectCode(TypeElement intf)
The project code from the interface. |
| Method Detail |
|---|
Class<? extends Annotation> cause()
Class<? extends Annotation> formatWith()
Class<? extends Annotation> logMessage()
Class<? extends Annotation> message()
Class<? extends Annotation> messageBundle()
Class<? extends Annotation> messageLogger()
Annotations.FormatType messageFormat(ExecutableElement method)
method - the method with the Message annotation.
null if the format type
was not found.String projectCode(TypeElement intf)
intf - the interface to find the project code on.
null if one was not found.boolean hasMessageId(ExecutableElement method)
method - the method to check.
true if the message id was found, otherwise false.boolean inheritsMessageId(ExecutableElement method)
method - the method to check.
true if the message id should be inherited, otherwise false.int messageId(ExecutableElement method)
method - the method to check.
String messageValue(ExecutableElement method)
method - the method to check.
null is
returned.
String loggerMethod(ExecutableElement method,
Annotations.FormatType formatType)
method - the method used to determine the log method.formatType - the format type for the method.
String logLevel(ExecutableElement method)
method - the method used to determine the log method.
|
JBoss Logging I18n Tools 1.0.0.Beta7 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||