ADDRESS_TYPE_EMAIL, ADDRESS_TYPE_IP, ADDRESS_TYPE_SMS, CSS_BOOLEANINPUT, CSS_DATEINPUT, CSS_DURATIONINPUT, CSS_ERRORINPUT, CSS_ERRORTEXT, CSS_INTINPUT, CSS_REQUIRED, CSS_TEXTINPUT, CSS_WARNINGINPUT, CSS_WARNINGTEXT, CSV_DELIMITER, DELIMITER, LANGUAGE_ATTRIBUTE_NAME, LANGUAGE_DEFAULT, LANGUAGES, MSGREL_AFTER, MSGREL_BEFORE, RESOURCE_STATUS_AVAILABLE, RESOURCE_STATUS_NOTAVAILABLE, RESOURCE_STATUS_REQUESTED, RESOURCE_STATUS_RESERVED, RESOURCE_STATUS_UNCHECKED, RESOURCE_STATUS_UNKNOWN, UTILISATION_TYPE_BEGIN, UTILISATION_TYPE_END, UTILISATION_TYPE_PLAN, WORD_SEPARATORS, XML_ACTIVITY, XML_ACTIVITYNAME, XML_ACTIVITYTYPE, XML_ADDRESS, XML_ADDRESSTYPE, XML_CAPABILITY, XML_CASEID, XML_CATEGORY, XML_CHANNEL, XML_DUMMY, XML_DURATION, XML_ENDTASKID, XML_ERROR, XML_EVENT_RECEIVE, XML_FILTERMODEL, XML_FROM, XML_ID, XML_MAX, XML_MESSAGE_SEND, XML_MESSAGEPUSH_SEND, XML_MESSAGES, XML_MIN, XML_MSGBODY, XML_MSGDURATION, XML_MSGREL, XML_MSGTO, XML_MSGTRANSFER, XML_MSGUTILISATIONTYPE, XML_OTHERACTIVITYNAME, XML_OTHERUTILISATIONTYPE, XML_PAYLOAD, XML_REQUESTTYPE, XML_RESCHEDULING, XML_RESERVATION, XML_RESERVATIONID, XML_RESOURCE, XML_RESOURCE_TYPE, XML_ROLE, XML_RUP, XML_RUP_LIGHT, XML_STARTTASKID, XML_STATUS, XML_STATUSTOBE, XML_SUBCATEGORY, XML_TEXT, XML_THISUTILISATIONTYPE, XML_TIMESTAMP, XML_TO, XML_UNIT, XML_UTILISATION, XML_UTILISATION_TYPE, XML_UTILISATIONREL, XML_UTILISATIONTYPE, XML_WARNING, XML_WORKLOAD, XSDDatatypes_Boolean, XSDDatatypes_DateTime, XSDDatatypes_Double, XSDDatatypes_Duration, XSDDatatypes_Int, XSDDatatypes_Long, XSDDatatypes_String
Modifier and Type | Method and Description |
---|---|
static ConfigManager |
getFromRequest(javax.servlet.http.HttpServletRequest request)
Gets the appropriate ConfigManager, based on a servlet request.
|
static ConfigManager |
getInstance()
Gets a ConfigManager instance using the default language (set in Constants)
|
static ConfigManager |
getInstance(java.lang.String language)
Gets a ConfigManager instance using the specified language
|
java.lang.String |
getLanguage()
Gets the language of the locale of the currently loaded ResourceBundle
|
java.util.Locale |
getLocale()
Gets the locale of the currently loaded ResourceBundle
|
java.lang.String |
getLocalizedJSONString(java.lang.String valueAndArgsAsJSON)
Gets the localised value (a string message in the current language) for a key.
|
java.lang.String |
getLocalizedString(java.lang.String key)
Gets the localised value (a string message in the current language) for a key
|
java.lang.String |
getLocalizedString(java.lang.String key,
java.lang.String... subKeys)
Gets the localised value (a string message in the current language) for a key.
|
public static ConfigManager getInstance()
public static ConfigManager getInstance(java.lang.String language)
language
- the language to get a ConfigManager instance forpublic static ConfigManager getFromRequest(javax.servlet.http.HttpServletRequest request)
request
- the request to use to select the appropriate ConfigManager instancepublic java.util.Locale getLocale()
public java.lang.String getLanguage()
public java.lang.String getLocalizedString(java.lang.String key, java.lang.String... subKeys)
key
- the key to get the value forsubKeys
- the set of keys to use as values for corresponding placeholders
in the original valuepublic java.lang.String getLocalizedJSONString(java.lang.String valueAndArgsAsJSON)
valueAndArgsAsJSON
- a JSON string containing the key to get the value for
and the set of keys to use as values for corresponding placeholders in the
original value (as an array)public java.lang.String getLocalizedString(java.lang.String key)
key
- the key to get the value forCopyright © 2004-2014 The YAWL Foundation.