Package org.openxava.util
Class Labels
java.lang.Object
org.openxava.util.Labels
Utility class for obtain the i18n of the labels.
- Author:
- Javier Paniza
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic booleanstatic booleanstatic booleanexistsExact(String id) static booleanexistsExact(String id, Locale locale) static Stringstatic StringOn any error returns the sentidwith the first letter in uppercase.static StringIfidis not found, or other error returnsdefaultValuestatic StringgetQualified(String id) On any error returns the sentidwith the first letter in uppercase.static StringgetQualified(String id, Locale locale) On any error returns the sentidwith the first letter in uppercase.static StringgetQualified(String id, Locale locale, String defaultValue) Qualified label.static voidAdd or change a label by locale.static StringremoveUnderlined(String label)
-
Constructor Details
-
Labels
public Labels()
-
-
Method Details
-
getQualified
On any error returns the sentidwith the first letter in uppercase. -
getQualified
On any error returns the sentidwith the first letter in uppercase. -
get
-
get
On any error returns the sentidwith the first letter in uppercase. -
put
Add or change a label by locale.The result is not persistent, after reinit the application the changes are gone.
- Since:
- 5.8
-
getQualified
Qualified label.If you sent customer.warehouse.name it return "Name of Warehouse of Customer".
Ifidis not found, or other error returnsdefaultValue -
get
Ifidis not found, or other error returnsdefaultValue -
exists
-
existsExact
- Throws:
XavaException
-
exists
-
existsExact
- Throws:
XavaException
-
removeUnderlined
-