Module de.codecamp.messages.shared
Class IcuMessageFormatSupport
java.lang.Object
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
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncheckMessage(String message, String[] argTypes, String[] argNames, MessageFormatSupport.TypeChecker argTypeChecker) formatArgType(String argType) Formats the given Java-type of a message argument to something less technical where possible.booleanbooleansupportsFormat(String messageFormat)
-
Field Details
-
ID
- See Also:
-
-
Constructor Details
-
IcuMessageFormatSupport
public IcuMessageFormatSupport()
-
-
Method Details
-
supportsFormat
- Specified by:
supportsFormatin interfaceMessageFormatSupport
-
hasArgNameSupport
public boolean hasArgNameSupport()- Specified by:
hasArgNameSupportin interfaceMessageFormatSupport
-
formatArgType
Description copied from interface:MessageFormatSupportFormats the given Java-type of a message argument to something less technical where possible.- Specified by:
formatArgTypein interfaceMessageFormatSupport- Parameters:
argType- the Java-type of the message argument- Returns:
- the formatted message argument type
-
getArgInsertOptions
- Specified by:
getArgInsertOptionsin interfaceMessageFormatSupport
-
createMessageBundleComment
- Specified by:
createMessageBundleCommentin interfaceMessageFormatSupport
-