|
JBoss Logging I18n Tools 1.0.0.Beta7 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.jboss.logging.BaseAnnotations
public class BaseAnnotations
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from interface org.jboss.logging.Annotations |
|---|
Annotations.FormatType |
| Field Summary | |
|---|---|
static Class<org.jboss.logging.Cause> |
CAUSE_ANNOTATION
|
static Class<org.jboss.logging.FormatWith> |
FORMAT_WITH_ANNOTATION
|
static Class<org.jboss.logging.LogMessage> |
LOG_MESSAGE_ANNOTATION
|
static Class<org.jboss.logging.Message> |
MESSAGE_ANNOTATION
|
static Class<org.jboss.logging.MessageBundle> |
MESSAGE_BUNDLE_ANNOTATION
|
static Class<org.jboss.logging.MessageLogger> |
MESSAGE_LOGGER_ANNOTATION
|
| Constructor Summary | |
|---|---|
BaseAnnotations()
|
|
| 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. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final Class<org.jboss.logging.FormatWith> FORMAT_WITH_ANNOTATION
public static final Class<org.jboss.logging.Cause> CAUSE_ANNOTATION
public static final Class<org.jboss.logging.MessageBundle> MESSAGE_BUNDLE_ANNOTATION
public static final Class<org.jboss.logging.MessageLogger> MESSAGE_LOGGER_ANNOTATION
public static final Class<org.jboss.logging.LogMessage> LOG_MESSAGE_ANNOTATION
public static final Class<org.jboss.logging.Message> MESSAGE_ANNOTATION
| Constructor Detail |
|---|
public BaseAnnotations()
| Method Detail |
|---|
public Class<? extends Annotation> cause()
Annotations
cause in interface Annotationspublic Class<? extends Annotation> formatWith()
Annotations
formatWith in interface Annotationspublic Class<? extends Annotation> logMessage()
Annotations
logMessage in interface Annotationspublic Class<? extends Annotation> message()
Annotations
message in interface Annotationspublic Class<? extends Annotation> messageBundle()
Annotations
messageBundle in interface Annotationspublic Class<? extends Annotation> messageLogger()
Annotations
messageLogger in interface Annotationspublic Annotations.FormatType messageFormat(ExecutableElement method)
Annotations
messageFormat in interface Annotationsmethod - the method with the Message annotation.
null if the format type
was not found.public String projectCode(TypeElement intf)
Annotations
projectCode in interface Annotationsintf - the interface to find the project code on.
null if one was not found.public boolean hasMessageId(ExecutableElement method)
Annotations
hasMessageId in interface Annotationsmethod - the method to check.
true if the message id was found, otherwise false.public boolean inheritsMessageId(ExecutableElement method)
Annotations
inheritsMessageId in interface Annotationsmethod - the method to check.
true if the message id should be inherited, otherwise false.public int messageId(ExecutableElement method)
Annotations
messageId in interface Annotationsmethod - the method to check.
public String messageValue(ExecutableElement method)
Annotations
messageValue in interface Annotationsmethod - the method to check.
null is
returned.
public String loggerMethod(ExecutableElement method,
Annotations.FormatType formatType)
Annotations
loggerMethod in interface Annotationsmethod - the method used to determine the log method.formatType - the format type for the method.
public String logLevel(ExecutableElement method)
Annotations
logLevel in interface Annotationsmethod - 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 | |||||||||