Interface MessageFormatSupport
-
- All Known Implementing Classes:
DefaultMessageFormatSupport,IcuMessageFormatSupport
public interface MessageFormatSupport
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static classMessageFormatSupport.ArgInsertstatic interfaceMessageFormatSupport.TypeChecker
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description List<String>checkMessage(String message, String[] argTypes, String[] argNames, MessageFormatSupport.TypeChecker argTypeChecker)StringcreateMessageBundleComment(MessageKeyWithArgs key)default StringformatArgType(String argType)Formats the given Java-type of a message argument to something less technical where possible.List<MessageFormatSupport.ArgInsert>getArgInsertOptions(MessageKeyWithArgs key)static MessageFormatSupportgetSupport(ProjectConf projectConf)booleanhasArgNameSupport()booleansupportsFormat(String otherMessageFormat)
-
-
-
Method Detail
-
supportsFormat
boolean supportsFormat(String otherMessageFormat)
-
hasArgNameSupport
boolean hasArgNameSupport()
-
formatArgType
default String formatArgType(String argType)
Formats the given Java-type of a message argument to something less technical where possible.- Parameters:
argType- the Java-type of the message argument- Returns:
- the formatted message argument type
-
getArgInsertOptions
List<MessageFormatSupport.ArgInsert> getArgInsertOptions(MessageKeyWithArgs key)
-
createMessageBundleComment
String createMessageBundleComment(MessageKeyWithArgs key)
-
checkMessage
List<String> checkMessage(String message, String[] argTypes, String[] argNames, MessageFormatSupport.TypeChecker argTypeChecker)
-
getSupport
static MessageFormatSupport getSupport(ProjectConf projectConf)
-
-