public interface MessageVisitor
Modifier and Type | Method and Description |
---|---|
void |
endMessage(Message msg,
MessageTranslation trans)
Called after processing a message is complete.
|
void |
visitTranslation(String[] formNames,
boolean isDefault,
MessageFormatUtils.MessageStyle style,
String msg)
Called to process one variant of a message.
|
void endMessage(Message msg, MessageTranslation trans) throws MessageProcessingException
msg
- Message
instancetrans
- message translation, which may be the same as msg
MessageProcessingException
void visitTranslation(String[] formNames, boolean isDefault, MessageFormatUtils.MessageStyle style, String msg) throws MessageProcessingException
Note that the default message will always be passed in a call to this method, even if there are no selectors.
formNames
- array of form names, one for each selectorisDefault
- true if this is the default message (ie, all forms are
"other")style
- msg
- MessageProcessingException
Copyright © 2018. All rights reserved.