Interface CountCountMax<C extends FDSConfig,D>
- Type Parameters:
C
- The type of configuration, extendingFDSConfig
.D
- The type of the translated data.
- All Superinterfaces:
Translator<C,
,D> TranslatorTiming<C,
D>
- All Known Implementing Classes:
CountCountMaxR4
,CountCountMaxR5
Interface for translating "timing.repeat.count" / "timing.repeat.countMax".
- Author:
- jy95
-
Method Summary
Modifier and TypeMethodDescriptiondefault com.ibm.icu.text.MessageFormat
getCountMaxMsg
(ResourceBundle bundle, Locale locale) MessageFormat instance used for "count" & "countMax" translationdefault com.ibm.icu.text.MessageFormat
getCountMsg
(ResourceBundle bundle, Locale locale) MessageFormat instance used for "count" translationboolean
hasCountMax
(D dosage) Check if "timing.repeat.countMax" existsMethods inherited from interface io.github.jy95.fds.common.types.Translator
convert
Methods inherited from interface io.github.jy95.fds.common.types.TranslatorTiming
hasRequiredElements, hasTiming, isPresent
-
Method Details
-
getCountMaxMsg
MessageFormat instance used for "count" & "countMax" translation- Parameters:
bundle
- The bundle to extract the keylocale
- The locale for the message- Returns:
- The message template for "count" & "countMax"
-
getCountMsg
MessageFormat instance used for "count" translation- Parameters:
bundle
- The bundle to extract the keylocale
- The locale for the message- Returns:
- The message template for "count"
-
hasCountMax
Check if "timing.repeat.countMax" exists- Parameters:
dosage
- the dosage object to check- Returns:
- True if it is the case, false otherwise
-