Interface MessageMethod.Message
-
- Enclosing interface:
- MessageMethod
public static interface MessageMethod.MessageRepresents aMessageannotation on a method.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description org.jboss.logging.annotations.Message.Formatformat()The message format type for the message.booleanhasId()Checks if the message has an id that was provided.intid()The message id for the message to use.booleaninheritsId()Checks if the message id was inherited.java.lang.Stringvalue()A format string that can be used with theformat().
-
-
-
Method Detail
-
id
int id()
The message id for the message to use. Any id less than 0 will be ignored.- Returns:
- the message id.
-
hasId
boolean hasId()
Checks if the message has an id that was provided. Returnstrueif the message id was specified or inherited, otherwise returnsfalse.- Returns:
trueif the message id was provided, otherwisefalse.
-
inheritsId
boolean inheritsId()
Checks if the message id was inherited. Returnstrueonly if the message id is inherited, otherwisefalseis returned.- Returns:
trueif the message id was inherited, otherwisefalse.
-
value
java.lang.String value()
A format string that can be used with theformat().- Returns:
- a format string.
-
format
org.jboss.logging.annotations.Message.Format format()
The message format type for the message.- Returns:
- the format type.
-
-