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 java.lang.Object implements MessageMethod.Message
-
-
Field Summary
Fields Modifier and Type Field Description private booleanhasIdprivate intidprivate booleaninheritsIdprivate Messagemessageprivate java.lang.StringmessageValue
-
Constructor Summary
Constructors Modifier Constructor Description privateAptMessage(Message message, java.util.Properties expressionProperties)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description 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.StringtoString()java.lang.Stringvalue()A format string that can be used with theMessageMethod.Message.format().
-
-
-
Field Detail
-
message
private final Message message
-
messageValue
private final java.lang.String messageValue
-
id
private int id
-
hasId
private boolean hasId
-
inheritsId
private boolean inheritsId
-
-
Constructor Detail
-
AptMessage
private AptMessage(Message message, java.util.Properties expressionProperties)
-
-
Method Detail
-
id
public int id()
Description copied from interface:MessageMethod.MessageThe message id for the message to use. Any id less than 0 will be ignored.- Specified by:
idin interfaceMessageMethod.Message- Returns:
- the message id.
-
hasId
public boolean hasId()
Description copied from interface:MessageMethod.MessageChecks if the message has an id that was provided. Returnstrueif the message id was specified or inherited, otherwise returnsfalse.- Specified by:
hasIdin interfaceMessageMethod.Message- Returns:
trueif the message id was provided, otherwisefalse.
-
inheritsId
public boolean inheritsId()
Description copied from interface:MessageMethod.MessageChecks if the message id was inherited. Returnstrueonly if the message id is inherited, otherwisefalseis returned.- Specified by:
inheritsIdin interfaceMessageMethod.Message- Returns:
trueif the message id was inherited, otherwisefalse.
-
value
public java.lang.String value()
Description copied from interface:MessageMethod.MessageA format string that can be used with theMessageMethod.Message.format().- Specified by:
valuein interfaceMessageMethod.Message- Returns:
- a format string.
-
format
public Message.Format format()
Description copied from interface:MessageMethod.MessageThe message format type for the message.- Specified by:
formatin interfaceMessageMethod.Message- Returns:
- the format type.
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
-