Package org.faktorips.fl
Class LocalizedFunctionsResolver<T extends org.faktorips.codegen.CodeFragment>
java.lang.Object
org.faktorips.fl.DefaultFunctionResolver<T>
org.faktorips.fl.LocalizedFunctionsResolver<T>
- Type Parameters:
T- aCodeFragmentimplementation for a specific target language
- All Implemented Interfaces:
FunctionResolver<T>
- Direct Known Subclasses:
AssociationNavigationFunctionsResolver,ExcelFunctionsResolver
public abstract class LocalizedFunctionsResolver<T extends org.faktorips.codegen.CodeFragment>
extends DefaultFunctionResolver<T>
A
FunctionResolver that supports localized names for functions.-
Constructor Summary
ConstructorsConstructorDescriptionLocalizedFunctionsResolver(Locale locale) Creates a new resolver that contains a set of functions that use locale dependent names. -
Method Summary
Modifier and TypeMethodDescriptiongetFctDescription(String key) Returns the localized description for theFlFunctionidentified by the key.getFctName(String key) Returns the localized name for theFlFunctionidentified by the key.protected abstract StringReturns the base name for the localization files, for example"org.faktorips.fl.MyFunctionResolver"where localization files are"org/faktorips/fl/MyFunctionResolver_de.properties"and"org/faktorips/fl/MyFunctionResolver_en.properties"Methods inherited from class org.faktorips.fl.DefaultFunctionResolver
add, getFunctions, remove
-
Constructor Details
-
LocalizedFunctionsResolver
Creates a new resolver that contains a set of functions that use locale dependent names.- Parameters:
locale- The locale that determines the language of the function names.
-
-
Method Details
-
getLocalizationFileBaseName
Returns the base name for the localization files, for example"org.faktorips.fl.MyFunctionResolver"where localization files are"org/faktorips/fl/MyFunctionResolver_de.properties"and"org/faktorips/fl/MyFunctionResolver_en.properties"- Returns:
- the base name for the localization files
-
getFctName
Returns the localized name for theFlFunctionidentified by the key.- Parameters:
key- the key of theFlFunction.- Returns:
- the localized name for the
FlFunction
-
getFctDescription
Returns the localized description for theFlFunctionidentified by the key.- Parameters:
key- the key of theFlFunction.- Returns:
- the localized description for the
FlFunction
-