Class TranslationFeatureKeyProvider
java.lang.Object
com.e1c.langtool.internal.emf.naming.TranslationFeatureKeyProvider
- All Implemented Interfaces:
ITranslationFeatureKeyProvider
-
Constructor Summary
Constructors -
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 object) Gets the old feature keys for the object if migration of feature keys needed.
-
Constructor Details
-
TranslationFeatureKeyProvider
public TranslationFeatureKeyProvider()
-
-
Method Details
-
getFeatureKey
public FeatureKey getFeatureKey(org.eclipse.emf.ecore.EObject object, FeatureSettings featureSettings) Description copied from interface:ITranslationFeatureKeyProviderGets the feature key for translating object- Specified by:
getFeatureKeyin interfaceITranslationFeatureKeyProvider- Parameters:
object- the object to translate, cannot benull.featureSettings- the feature settings, cannot benull.- Returns:
- the feature key
-
getKey
Description copied from interface:ITranslationFeatureKeyProviderGets the key of translating object.- Specified by:
getKeyin interfaceITranslationFeatureKeyProvider- Parameters:
object- the object, cannot benull.- Returns:
- the key
-
getOldFeatureKeys
Description copied from interface:ITranslationFeatureKeyProviderGets the old feature keys for the object if migration of feature keys needed.- Specified by:
getOldFeatureKeysin interfaceITranslationFeatureKeyProvider- Parameters:
object- the obj, cannot benull.- Returns:
- the old feature keys
- See Also:
-
getOldFeatureKeys
Description copied from interface:ITranslationFeatureKeyProviderGets the old feature keys for the feature value if migration of feature keys needed.- Specified by:
getOldFeatureKeysin interfaceITranslationFeatureKeyProvider- Parameters:
contexTranslationKey- the context translation key, cannot benull.- Returns:
- the old feature keys, cannot return
null - See Also:
-
getConvertedFeatureKey
public FeatureKey getConvertedFeatureKey(org.eclipse.emf.ecore.EObject object, FeatureSettings featureSettings, String translation, ITranslateProject project) Description copied from interface:ITranslationFeatureKeyProviderGets the converted feature key for the specifiedEObject.- Specified by:
getConvertedFeatureKeyin interfaceITranslationFeatureKeyProvider- 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.
-