Package com.e1c.langtool.v8.dt.md
Class MdBaseNamingProvider
java.lang.Object
com.e1c.langtool.v8.dt.md.MdBaseNamingProvider
- All Implemented Interfaces:
IComputedNameProvider,IComputedStringFeatureProvider,IComputedStringFeatureTranslationProvider
public class MdBaseNamingProvider
extends Object
implements IComputedStringFeatureTranslationProvider
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected String_computeTranslatedString(EventSubscription object, EFeatureSettings stringFeature, IProjectTranslationProvider translationProvider, TranslateLanguage language) protected String_computeTranslatedString(Method object, EFeatureSettings stringFeature, IProjectTranslationProvider translationProvider, TranslateLanguage language) protected String_computeTranslatedString(Operation object, EFeatureSettings stringFeature, IProjectTranslationProvider translationProvider, TranslateLanguage language) protected String_computeTranslatedString(ScheduledJob object, EFeatureSettings stringFeature, IProjectTranslationProvider translationProvider, TranslateLanguage language) protected boolean_isComputedString(EventSubscription object, EFeatureSettings stringFeature) protected boolean_isComputedString(Method object, EFeatureSettings stringFeature) protected boolean_isComputedString(Operation object, EFeatureSettings stringFeature) protected boolean_isComputedString(ScheduledJob object, EFeatureSettings stringFeature) computeTranslatedString(org.eclipse.emf.ecore.EObject object, EFeatureSettings stringFeature, IProjectTranslationProvider translationProvider, TranslateLanguage language) Compute translated string from translations of base objects.getCommonModuleMethods(CommonModule commonModule, Predicate<org.eclipse.emf.ecore.EObject> predicate) Returns module export methods by predicate.booleanisComputedString(org.eclipse.emf.ecore.EObject object, EFeatureSettings stringFeature) Checks if the string in feature is computed string.booleanisSupported(org.eclipse.emf.ecore.EObject object) Checks if givenEObjectis supported by this provider.
-
Constructor Details
-
MdBaseNamingProvider
public MdBaseNamingProvider()
-
-
Method Details
-
isSupported
public boolean isSupported(org.eclipse.emf.ecore.EObject object) Description copied from interface:IComputedNameProviderChecks if givenEObjectis supported by this provider.- Specified by:
isSupportedin interfaceIComputedNameProvider- Parameters:
object- the object- Returns:
- true, if it is supported
-
isComputedString
public boolean isComputedString(org.eclipse.emf.ecore.EObject object, EFeatureSettings stringFeature) Description copied from interface:IComputedStringFeatureProviderChecks if the string in feature is computed string.- Specified by:
isComputedStringin interfaceIComputedStringFeatureProvider- Parameters:
object- the objectstringFeature- the string feature- Returns:
- true, if the string is computed
-
computeTranslatedString
public String computeTranslatedString(org.eclipse.emf.ecore.EObject object, EFeatureSettings stringFeature, IProjectTranslationProvider translationProvider, TranslateLanguage language) Description copied from interface:IComputedStringFeatureTranslationProviderCompute translated string from translations of base objects.- Specified by:
computeTranslatedStringin interfaceIComputedStringFeatureTranslationProvider- Parameters:
object- the objectstringFeature- the string featuretranslationProvider- the translation providerlanguage- the language- Returns:
- the computed string translated into given language
-
_isComputedString
-
_isComputedString
-
_isComputedString
-
_isComputedString
-
_computeTranslatedString
protected String _computeTranslatedString(Method object, EFeatureSettings stringFeature, IProjectTranslationProvider translationProvider, TranslateLanguage language) -
_computeTranslatedString
protected String _computeTranslatedString(Operation object, EFeatureSettings stringFeature, IProjectTranslationProvider translationProvider, TranslateLanguage language) -
_computeTranslatedString
protected String _computeTranslatedString(EventSubscription object, EFeatureSettings stringFeature, IProjectTranslationProvider translationProvider, TranslateLanguage language) -
_computeTranslatedString
protected String _computeTranslatedString(ScheduledJob object, EFeatureSettings stringFeature, IProjectTranslationProvider translationProvider, TranslateLanguage language) -
getCommonModuleMethods
public List<Method> getCommonModuleMethods(CommonModule commonModule, Predicate<org.eclipse.emf.ecore.EObject> predicate) Returns module export methods by predicate.- Parameters:
moduleDescription- the description of common module, cannot benullpredicate- the predicate action for filtering methods, can benull- Returns:
- the module export methods, never
null
-