Interface ITranslationFeatureKeyProvider

All Known Implementing Classes:
TranslationFeatureKeyProvider

public interface ITranslationFeatureKeyProvider
The Interface of service that provides FeatureKey key to EObject and append key segments by given EFeatureSettings name. All special key computers must be registred in extension point com.e1c.langtool.featureKeyComputers.
See Also:
  • Method Details

    • getFeatureKey

      FeatureKey getFeatureKey(org.eclipse.emf.ecore.EObject object, FeatureSettings featureSettings)
      Gets the feature key for translating object
      Parameters:
      object - the object to translate, cannot be null.
      featureSettings - the feature settings, cannot be null.
      Returns:
      the feature key
    • getKey

      FeatureKey getKey(org.eclipse.emf.ecore.EObject object)
      Gets the key of translating object.
      Parameters:
      object - the object, cannot be null.
      Returns:
      the key
    • getOldFeatureKeys

      Collection<FeatureKey> getOldFeatureKeys(org.eclipse.emf.ecore.EObject obj)
      Gets the old feature keys for the object if migration of feature keys needed.
      Parameters:
      obj - the obj, cannot be null.
      Returns:
      the old feature keys
      See Also:
    • getOldFeatureKeys

      Collection<FeatureKey> getOldFeatureKeys(ContextTranslationKey contexTranslationKey)
      Gets the old feature keys for the feature value if migration of feature keys needed.
      Parameters:
      contexTranslationKey - the context translation key, cannot be null.
      Returns:
      the old feature keys, cannot return null
      See Also:
    • getConvertedFeatureKey

      FeatureKey getConvertedFeatureKey(org.eclipse.emf.ecore.EObject object, FeatureSettings featureSettings, String translation, ITranslateProject project)
      Gets the converted feature key for the specified EObject.
      Parameters:
      object - the EObject for which to retrieve the converted feature key, cannot be null.
      featureSettings - the FeatureSettings to be considered during the conversion, cannot be null.
      translation - the translation information, a string representing, cannot be null.
      project - the ITranslateProject representing the translation project context, cannot be null.
      Returns:
      the converted FeatureKey associated with the specified EObject.