Package com.e1c.langtool.emf.naming
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 Summary
Modifier and TypeMethodDescriptiongetConvertedFeatureKey(org.eclipse.emf.ecore.EObject object, FeatureSettings featureSettings, String translation, ITranslateProject project) Gets the converted feature key for the specifiedEObject.getFeatureKey(org.eclipse.emf.ecore.EObject object, FeatureSettings featureSettings) Gets the feature key for translating objectgetKey(org.eclipse.emf.ecore.EObject object) Gets the key of translating object.getOldFeatureKeys(ContextTranslationKey contexTranslationKey) Gets the old feature keys for the feature value if migration of feature keys needed.getOldFeatureKeys(org.eclipse.emf.ecore.EObject obj) Gets the old feature keys for the object if migration of feature keys needed.
-
Method Details
-
getFeatureKey
Gets the feature key for translating object- Parameters:
object- the object to translate, cannot benull.featureSettings- the feature settings, cannot benull.- Returns:
- the feature key
-
getKey
Gets the key of translating object.- Parameters:
object- the object, cannot benull.- Returns:
- the key
-
getOldFeatureKeys
Gets the old feature keys for the object if migration of feature keys needed.- Parameters:
obj- the obj, cannot benull.- Returns:
- the old feature keys
- See Also:
-
getOldFeatureKeys
Gets the old feature keys for the feature value if migration of feature keys needed.- Parameters:
contexTranslationKey- the context translation key, cannot benull.- 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 specifiedEObject.- Parameters:
object- theEObjectfor which to retrieve the converted feature key, cannot benull.featureSettings- theFeatureSettingsto be considered during the conversion, cannot benull.translation- the translation information, a string representing, cannot benull.project- theITranslateProjectrepresenting the translation project context, cannot benull.- Returns:
- the converted
FeatureKeyassociated with the specifiedEObject.
-