Module de.codecamp.messages.shared
Class IcuMessageFormatSupport
java.lang.Object
de.codecamp.messages.shared.messageformat.AbstractMessageFormatSupport
de.codecamp.messages.shared.messageformat.IcuMessageFormatSupport
- All Implemented Interfaces:
MessageFormatSupport
Implements
MessageFormatSupport for ICU's MessageFormat.
If changes are made to the checked types, this must be reflected in
IcuMessageArgConverter.
-
Nested Class Summary
Nested classes/interfaces inherited from interface de.codecamp.messages.shared.messageformat.MessageFormatSupport
MessageFormatSupport.ArgInsert, MessageFormatSupport.TypeChecker -
Field Summary
FieldsFields inherited from class de.codecamp.messages.shared.messageformat.AbstractMessageFormatSupport
JAVATYPES_DATE, JAVATYPES_DATETIME, JAVATYPES_DECIMAL, JAVATYPES_INTEGER, JAVATYPES_TIME -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncheckMessage(String message, String[] argTypes, String[] argNames, MessageFormatSupport.TypeChecker argTypeChecker) createMessageBundleComment(de.codecamp.messages.MessageKeyWithArgs key) formatArgType(String argType) Formats the given Java-type of a message argument to something less technical where possible.getArgInsertOptions(de.codecamp.messages.MessageKeyWithArgs key) booleanbooleansupportsFormat(String messageFormatId)
-
Field Details
-
ID
- See Also:
-
-
Constructor Details
-
IcuMessageFormatSupport
public IcuMessageFormatSupport()
-
-
Method Details
-
supportsFormat
-
hasArgNameSupport
public boolean hasArgNameSupport() -
getArgInsertOptions
public List<MessageFormatSupport.ArgInsert> getArgInsertOptions(de.codecamp.messages.MessageKeyWithArgs key) -
createMessageBundleComment
-
formatArgType
Description copied from class:AbstractMessageFormatSupportFormats the given Java-type of a message argument to something less technical where possible. The result is only intended for display purposes.- Specified by:
formatArgTypein interfaceMessageFormatSupport- Overrides:
formatArgTypein classAbstractMessageFormatSupport- Parameters:
argType- the Java-type of the message argument- Returns:
- the formatted message argument type
-