public class LocalizationHelper extends Object
Constructor and Description |
---|
LocalizationHelper() |
Modifier and Type | Method and Description |
---|---|
void |
activate(org.osgi.service.component.ComponentContext componentContext) |
RESTActionType |
generateAction(ActionType actionType,
String language)
Creates a
RESTActionType based on the specified ActionType and localized using the specified language. |
Collection<RESTActionType> |
generateActions(Collection<ActionType> actionTypes,
String language)
Creates
RESTActionType s, localized using the specified language, based on the specified ActionType s. |
RESTConditionType |
generateCondition(ConditionType conditionType,
String language)
Creates a
RESTConditionType based on the specified ConditionType and localized using the specified language. |
Collection<RESTConditionType> |
generateConditions(Collection<ConditionType> conditionTypes,
String language)
Creates
RESTConditionType s, localized using the specified language, based on the specified ConditionType s. |
RESTParameter |
generateParameter(Parameter parameter,
String language)
Creates a
RESTParameter based on the specified Parameter and localized using the specified ResourceBundle . |
RESTValueType |
generateValueType(ValueType valueType,
String language)
Creates a
RESTValueType based on the specified ValueType and localized using the specified language. |
Collection<RESTValueType> |
generateValueTypes(Collection<ValueType> valueTypes,
String language)
Creates
RESTValueType s, localized using the specified language, based on the specified ValueType s. |
void |
setBundleContext(org.osgi.framework.BundleContext bundleContext) |
void |
setResourceBundleHelper(ResourceBundleHelper resourceBundleHelper) |
public void activate(org.osgi.service.component.ComponentContext componentContext)
public Collection<RESTConditionType> generateConditions(Collection<ConditionType> conditionTypes, String language)
RESTConditionType
s, localized using the specified language, based on the specified ConditionType
s.conditionTypes
- the ConditionType
s to be localizedlanguage
- the language to use to localize ConditionType
sRESTConditionType
s based on the specified ConditionType
s and localized using the specified languagepublic Collection<RESTActionType> generateActions(Collection<ActionType> actionTypes, String language)
RESTActionType
s, localized using the specified language, based on the specified ActionType
s.actionTypes
- the ActionType
s to be localizedlanguage
- the language to use to localize ActionType
sRESTActionType
s based on the specified ActionType
s and localized using the specified languagepublic RESTConditionType generateCondition(ConditionType conditionType, String language)
RESTConditionType
based on the specified ConditionType
and localized using the specified language.conditionType
- the ConditionType
to be localizedlanguage
- the language to use to localize ConditionType
RESTConditionType
based on the specified ConditionType
and localized using the specified languagepublic RESTActionType generateAction(ActionType actionType, String language)
RESTActionType
based on the specified ActionType
and localized using the specified language.actionType
- the ActionType
to be localizedlanguage
- the language to use to localize ActionType
RESTActionType
based on the specified ActionType
and localized using the specified languagepublic RESTParameter generateParameter(Parameter parameter, String language)
RESTParameter
based on the specified Parameter
and localized using the specified ResourceBundle
.parameter
- the Parameter
to be localizedlanguage
- the languageRESTParameter
based on the specified ActionType
and localized using the specified ResourceBundle
public Collection<RESTValueType> generateValueTypes(Collection<ValueType> valueTypes, String language)
RESTValueType
s, localized using the specified language, based on the specified ValueType
s.valueTypes
- the ValueType
s to be localizedlanguage
- the language to use to localize ValueType
sRESTValueType
s based on the specified ValueType
s and localized using the specified languagepublic RESTValueType generateValueType(ValueType valueType, String language)
RESTValueType
based on the specified ValueType
and localized using the specified language.valueType
- the ValueType
to be localizedlanguage
- the language to use to localize ValueType
RESTValueType
based on the specified ValueType
and localized using the specified languagepublic void setBundleContext(org.osgi.framework.BundleContext bundleContext)
public void setResourceBundleHelper(ResourceBundleHelper resourceBundleHelper)
Copyright © 2014–2023 Apache Software Foundation. All rights reserved.