- java.lang.Object
-
- java.text.Format
-
- org.omnifaces.utils.text.NameBasedMessageFormat
-
- All Implemented Interfaces:
Serializable,Cloneable
public class NameBasedMessageFormat extends Format
- See Also:
- Serialized Form
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class java.text.Format
Format.Field
-
-
Constructor Summary
Constructors Constructor Description NameBasedMessageFormat(String messagePattern)NameBasedMessageFormat(String pattern, Locale locale)NameBasedMessageFormat(String pattern, Locale locale, Map<String,SubFormatterFactory> subFormatterFactories)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description StringBufferformat(Object obj, StringBuffer toAppendTo, FieldPosition pos)static Stringformat(String pattern, Map<? super String,?> parameters)static Stringformat(String pattern, Map<? super String,?> parameters, Locale locale)static Stringformat(String pattern, Map<? super String,?> parameters, Locale locale, Map<String,SubFormatterFactory> formatterFactories)Stringformat(Map<String,?> parameters)LocalegetLocale()StringgetPattern()Map<String,SubFormatterFactory>getSubFormatterFactories()ObjectparseObject(String source, ParsePosition pos)NameBasedMessageFormatwithLocale(Locale locale)NameBasedMessageFormatwithPattern(String pattern)-
Methods inherited from class java.text.Format
clone, format, formatToCharacterIterator, parseObject
-
-
-
-
Method Detail
-
format
public StringBuffer format(Object obj, StringBuffer toAppendTo, FieldPosition pos)
-
withLocale
public NameBasedMessageFormat withLocale(Locale locale)
-
withPattern
public NameBasedMessageFormat withPattern(String pattern)
-
parseObject
public Object parseObject(String source, ParsePosition pos)
- Specified by:
parseObjectin classFormat
-
getPattern
public String getPattern()
-
getSubFormatterFactories
public Map<String,SubFormatterFactory> getSubFormatterFactories()
-
getLocale
public Locale getLocale()
-
format
public static String format(String pattern, Map<? super String,?> parameters, Locale locale)
-
-