public class I18nFormatUtil
extends java.lang.Object
| Constructor and Description |
|---|
I18nFormatUtil() |
| Modifier and Type | Method and Description |
|---|---|
static I18nConversionCategory[] |
formatParameterCategories(java.lang.String format)
Returns a
I18nConversionCategory for every conversion found in the format string. |
static boolean |
hasFormat(java.lang.String format,
I18nConversionCategory... cc)
Returns true if the format string is satisfiable, and if the format's parameters match the
passed
I18nConversionCategorys. |
static boolean |
isFormat(java.lang.String format) |
static void |
tryFormatSatisfiability(java.lang.String format)
Throws an exception if the format is not syntactically valid.
|
public static void tryFormatSatisfiability(java.lang.String format)
throws java.util.IllegalFormatException
java.util.IllegalFormatExceptionpublic static I18nConversionCategory[] formatParameterCategories(java.lang.String format) throws java.util.IllegalFormatException
I18nConversionCategory for every conversion found in the format string.
Throws an exception if the format is not syntactically valid.
java.util.IllegalFormatException@I18nChecksFormat public static boolean hasFormat(java.lang.String format, I18nConversionCategory... cc)
I18nConversionCategorys. Otherwise an error is thrown.@I18nValidFormat public static boolean isFormat(java.lang.String format)