Class DefaultMessageFormatSupport

java.lang.Object
de.codecamp.messages.shared.messageformat.AbstractMessageFormatSupport
de.codecamp.messages.shared.messageformat.DefaultMessageFormatSupport
All Implemented Interfaces:
MessageFormatSupport

public class DefaultMessageFormatSupport extends AbstractMessageFormatSupport
Implements MessageFormatSupport for Java's MessageFormat.

If changes are made to the checked types, this must be reflected in DefaultMessageArgConverter.

  • Field Details

  • Constructor Details

    • DefaultMessageFormatSupport

      public DefaultMessageFormatSupport()
  • Method Details

    • supportsFormat

      public boolean supportsFormat(String messageFormatId)
    • hasArgNameSupport

      public boolean hasArgNameSupport()
    • getArgInsertOptions

      public List<MessageFormatSupport.ArgInsert> getArgInsertOptions(de.codecamp.messages.MessageKeyWithArgs key)
    • createMessageBundleComment

      public String createMessageBundleComment(de.codecamp.messages.MessageKeyWithArgs key)
    • checkMessage

      public List<String> checkMessage(String message, String[] argTypes, String[] argNames, MessageFormatSupport.TypeChecker argTypeChecker)