Package org.jboss.logging.processor.apt
Class MessageMethodBuilder.AptMessage
java.lang.Object
org.jboss.logging.processor.apt.MessageMethodBuilder.AptMessage
- All Implemented Interfaces:
MessageMethod.Message
- Enclosing class:
MessageMethodBuilder
private static class MessageMethodBuilder.AptMessage
extends Object
implements MessageMethod.Message
-
Field Summary
Fields -
Constructor Summary
ConstructorsModifierConstructorDescriptionprivate
AptMessage
(Message message, Properties expressionProperties) -
Method Summary
Modifier and TypeMethodDescriptionformat()
The message format type for the message.boolean
hasId()
Checks if the message has an id that was provided.int
id()
The message id for the message to use.boolean
Checks if the message id was inherited.toString()
value()
A format string that can be used with theMessageMethod.Message.format()
.
-
Field Details
-
message
-
messageValue
-
id
private int id -
hasId
private boolean hasId -
inheritsId
private boolean inheritsId
-
-
Constructor Details
-
AptMessage
-
-
Method Details
-
id
public int id()Description copied from interface:MessageMethod.Message
The message id for the message to use. Any id less than 0 will be ignored.- Specified by:
id
in interfaceMessageMethod.Message
- Returns:
- the message id.
-
hasId
public boolean hasId()Description copied from interface:MessageMethod.Message
Checks if the message has an id that was provided. Returnstrue
if the message id was specified or inherited, otherwise returnsfalse
.- Specified by:
hasId
in interfaceMessageMethod.Message
- Returns:
true
if the message id was provided, otherwisefalse
.
-
inheritsId
public boolean inheritsId()Description copied from interface:MessageMethod.Message
Checks if the message id was inherited. Returnstrue
only if the message id is inherited, otherwisefalse
is returned.- Specified by:
inheritsId
in interfaceMessageMethod.Message
- Returns:
true
if the message id was inherited, otherwisefalse
.
-
value
Description copied from interface:MessageMethod.Message
A format string that can be used with theMessageMethod.Message.format()
.- Specified by:
value
in interfaceMessageMethod.Message
- Returns:
- a format string.
-
format
Description copied from interface:MessageMethod.Message
The message format type for the message.- Specified by:
format
in interfaceMessageMethod.Message
- Returns:
- the format type.
-
toString
-