Class ProjectBslKeyComputer

All Implemented Interfaces:
FeatureKeyMigrationnExtension, IFeatureKeyComputer

public class ProjectBslKeyComputer extends BslKeyComputer
  • Constructor Details

    • ProjectBslKeyComputer

      public ProjectBslKeyComputer()
  • Method Details

    • getFeatureKey

      public FeatureKey getFeatureKey(org.eclipse.emf.ecore.EObject obj)
      Description copied from interface: IFeatureKeyComputer
      Gets the feature key by given object.
      Specified by:
      getFeatureKey in interface IFeatureKeyComputer
      Overrides:
      getFeatureKey in class AbstractFeatureKeyComputer
      Parameters:
      obj - the object
      Returns:
      the feature key
    • getLanguageCode

      protected String getLanguageCode(StringLiteral literal)
      Description copied from class: BslKeyComputer
      Get default language code of the project this string literal defined in.
      Overrides:
      getLanguageCode in class BslKeyComputer
      Parameters:
      literal - String literal. Shall not be null.
      Returns:
      Language code string or null if we are failed to determine project default language code.
    • getDefaultLanguageCode

      public String getDefaultLanguageCode()
    • setDefaultLanguageCode

      public void setDefaultLanguageCode(String defaultLanguageCode)
    • getTranslationProperties

      protected TranslatorProperties getTranslationProperties(StringLiteral literal)
      Description copied from class: BslKeyComputer
      Gets the translation properties.
      Overrides:
      getTranslationProperties in class BslKeyComputer
      Parameters:
      literal - the literal, cannot be null
      Returns:
      the translation properties, can be null
    • setTranslationProperties

      public void setTranslationProperties(TranslatorProperties properties)
      Sets the translation properties.
      Parameters:
      properties - the new translation properties, cannot be null