- 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 StringBuffer
format(Object obj, StringBuffer toAppendTo, FieldPosition pos)
static String
format(String pattern, Map<? super String,?> parameters)
static String
format(String pattern, Map<? super String,?> parameters, Locale locale)
static String
format(String pattern, Map<? super String,?> parameters, Locale locale, Map<String,SubFormatterFactory> formatterFactories)
String
format(Map<String,?> parameters)
Locale
getLocale()
String
getPattern()
Map<String,SubFormatterFactory>
getSubFormatterFactories()
Object
parseObject(String source, ParsePosition pos)
NameBasedMessageFormat
withLocale(Locale locale)
NameBasedMessageFormat
withPattern(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:
parseObject
in 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)
-
-