Class AbstractMessageFormatSupport

java.lang.Object
de.codecamp.messages.shared.messageformat.AbstractMessageFormatSupport
All Implemented Interfaces:
MessageFormatSupport
Direct Known Subclasses:
DefaultMessageFormatSupport, IcuMessageFormatSupport

public abstract class AbstractMessageFormatSupport extends Object implements MessageFormatSupport
  • Field Details

    • JAVATYPES_INTEGER

      public static final List<String> JAVATYPES_INTEGER
    • JAVATYPES_DECIMAL

      public static final List<String> JAVATYPES_DECIMAL
    • JAVATYPES_DATETIME

      public static final List<String> JAVATYPES_DATETIME
    • JAVATYPES_DATE

      public static final List<String> JAVATYPES_DATE
    • JAVATYPES_TIME

      public static final List<String> JAVATYPES_TIME
  • Constructor Details

    • AbstractMessageFormatSupport

      public AbstractMessageFormatSupport()
  • Method Details

    • formatArgType

      public String formatArgType(String argType)
      Formats the given Java-type of a message argument to something less technical where possible. The result is only intended for display purposes.
      Specified by:
      formatArgType in interface MessageFormatSupport
      Parameters:
      argType - the Java-type of the message argument
      Returns:
      the formatted message argument type