Class DefaultMessageFormatSupport
- java.lang.Object
-
- de.codecamp.messages.shared.messageformat.DefaultMessageFormatSupport
-
- All Implemented Interfaces:
MessageFormatSupport
public class DefaultMessageFormatSupport extends Object implements MessageFormatSupport
ImplementsMessageFormatSupportforJava's MessageFormat.If changes are made to the checked types, this must be reflected in
DefaultMessageArgConverter.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface de.codecamp.messages.shared.messageformat.MessageFormatSupport
MessageFormatSupport.ArgInsert, MessageFormatSupport.TypeChecker
-
-
Constructor Summary
Constructors Constructor Description DefaultMessageFormatSupport()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description List<String>checkMessage(String message, String[] argTypes, String[] argNames, MessageFormatSupport.TypeChecker argTypeChecker)StringcreateMessageBundleComment(MessageKeyWithArgs key)List<MessageFormatSupport.ArgInsert>getArgInsertOptions(MessageKeyWithArgs key)booleanhasArgNameSupport()booleansupportsFormat(String messageFormat)-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface de.codecamp.messages.shared.messageformat.MessageFormatSupport
formatArgType
-
-
-
-
Field Detail
-
ID
public static final String ID
- See Also:
- Constant Field Values
-
-
Method Detail
-
supportsFormat
public boolean supportsFormat(String messageFormat)
- Specified by:
supportsFormatin interfaceMessageFormatSupport
-
hasArgNameSupport
public boolean hasArgNameSupport()
- Specified by:
hasArgNameSupportin interfaceMessageFormatSupport
-
getArgInsertOptions
public List<MessageFormatSupport.ArgInsert> getArgInsertOptions(MessageKeyWithArgs key)
- Specified by:
getArgInsertOptionsin interfaceMessageFormatSupport
-
createMessageBundleComment
public String createMessageBundleComment(MessageKeyWithArgs key)
- Specified by:
createMessageBundleCommentin interfaceMessageFormatSupport
-
checkMessage
public List<String> checkMessage(String message, String[] argTypes, String[] argNames, MessageFormatSupport.TypeChecker argTypeChecker)
- Specified by:
checkMessagein interfaceMessageFormatSupport
-
-