Class LocalizedFunctionsResolver<T extends org.faktorips.codegen.CodeFragment>

java.lang.Object
org.faktorips.fl.DefaultFunctionResolver<T>
org.faktorips.fl.LocalizedFunctionsResolver<T>
Type Parameters:
T - a CodeFragment implementation 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 Details

    • LocalizedFunctionsResolver

      public LocalizedFunctionsResolver(Locale locale)
      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

      protected abstract String 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

      public String getFctName(String key)
      Returns the localized name for the FlFunction identified by the key.
      Parameters:
      key - the key of the FlFunction.
      Returns:
      the localized name for the FlFunction
    • getFctDescription

      public String getFctDescription(String key)
      Returns the localized description for the FlFunction identified by the key.
      Parameters:
      key - the key of the FlFunction.
      Returns:
      the localized description for the FlFunction