public class FormatPattern extends Object implements Internationalization
| Modifier and Type | Field and Description |
|---|---|
protected DateFormat |
dateFormat |
protected String |
message |
protected List |
params |
protected static String |
SEPARATOR |
DEBUG_LANGUAGE| Constructor and Description |
|---|
FormatPattern(String pattern) |
| Modifier and Type | Method and Description |
|---|---|
protected Object |
convertValue(Object value) |
protected Object[] |
convertValues(Object[] params) |
protected Object[] |
createValues(int index,
Hashtable values) |
DateFormat |
getDateFormat() |
String |
getMessage() |
List |
getParams() |
Vector |
getTextsToTranslate()
Returns all the texts in the element suitable for being translated.
|
boolean |
isEmpty() |
String |
parse(int index,
Hashtable values) |
String |
parse(Object param) |
String |
parse(Object[] params) |
void |
setComponentLocale(Locale l) |
void |
setDateFormat(DateFormat dateFormat) |
void |
setDateFormat(String dateFormat) |
void |
setResourceBundle(ResourceBundle rb)
Sets the language resource bundle.
|
protected static final String SEPARATOR
protected String message
protected List params
protected DateFormat dateFormat
public FormatPattern(String pattern)
public boolean isEmpty()
public String getMessage()
public List getParams()
public DateFormat getDateFormat()
public void setDateFormat(String dateFormat)
public void setDateFormat(DateFormat dateFormat)
public Vector getTextsToTranslate()
InternationalizationgetTextsToTranslate in interface Internationalizationpublic void setComponentLocale(Locale l)
setComponentLocale in interface Internationalizationpublic void setResourceBundle(ResourceBundle rb)
InternationalizationsetResourceBundle in interface Internationalizationrb - the new language bundle.Copyright © 2016 Imatia Innovation S.L.. All rights reserved.