Package com._1c.g5.v8.dt.core.naming
Interface ISymbolicLinkLocalizer
- All Known Implementing Classes:
FormSymbolicLinkLocalizer,MdSymbolicLinkLocalizer
public interface ISymbolicLinkLocalizer
The interface of the component responsible for localizing symbolic link names from the English representation
to another representation, for example, to Russian. The English representation of the symbolic link means
that names of types and references are in English. The term of the Russian representation is defined similarly.
Examples of the English and Russian representation are given below.
English representation:
- CatalogRef.Products
- CatalogRef.Продукты
- СправочникСсылка.Products
- СправочникСсылка.Продукты
-
Method Summary
Modifier and TypeMethodDescriptionbooleancanLocalizeSymbolicLink(String symbolicLink, org.eclipse.emf.ecore.EObject contextObject, org.eclipse.emf.ecore.EStructuralFeature feature, Locale locale) Tests whether theISymbolicLinkLocalizercan localize thesymbolicLinkused for the referencing feature to the target locale.booleancanLocalizeSymbolicLink(String symbolicLink, org.eclipse.emf.ecore.EObject contextObject, org.eclipse.emf.ecore.EStructuralFeature feature, ScriptVariant scriptVariant) Tests whether theISymbolicLinkLocalizercan localize thesymbolicLinkused for the referencing feature to the target locale.localizeSymbolicLink(String symbolicLink, org.eclipse.emf.ecore.EObject contextObject, org.eclipse.emf.ecore.EStructuralFeature feature, Locale locale) Localizes thesymbolicLinkused for the referencing feature to the target locale.localizeSymbolicLink(String symbolicLink, org.eclipse.emf.ecore.EObject contextObject, org.eclipse.emf.ecore.EStructuralFeature feature, ScriptVariant scriptVariant) Localizes thesymbolicLinkused for the referencing feature to the targetScriptVariant.
-
Method Details
-
canLocalizeSymbolicLink
boolean canLocalizeSymbolicLink(String symbolicLink, org.eclipse.emf.ecore.EObject contextObject, org.eclipse.emf.ecore.EStructuralFeature feature, Locale locale) Tests whether theISymbolicLinkLocalizercan localize thesymbolicLinkused for the referencing feature to the target locale. The symbolic links are not always unique in a global context, so in that cases you need to know the context the symbolic link is used for.- Parameters:
symbolicLink- the symbolic link, can not benullcontextObject- the referencing object, may benullfeature- the referencing feature, may benulllocale- the target locale, can not benull- Returns:
trueif theISymbolicLinkLocalizercan localize thesymbolicLinkorfalseotherwise
-
localizeSymbolicLink
String localizeSymbolicLink(String symbolicLink, org.eclipse.emf.ecore.EObject contextObject, org.eclipse.emf.ecore.EStructuralFeature feature, Locale locale) Localizes thesymbolicLinkused for the referencing feature to the target locale. The symbolic links are not always unique in a global context, so in that cases you need to know the context the symbolic link is used for.- Parameters:
symbolicLink- the symbolic link, can not benullcontextObject- the referencing object, may benullfeature- the referencing feature, may benulllocale- the target locale, can not benull- Returns:
- the localized symbolic link or the original symbolic link, never
null
-
canLocalizeSymbolicLink
boolean canLocalizeSymbolicLink(String symbolicLink, org.eclipse.emf.ecore.EObject contextObject, org.eclipse.emf.ecore.EStructuralFeature feature, ScriptVariant scriptVariant) Tests whether theISymbolicLinkLocalizercan localize thesymbolicLinkused for the referencing feature to the target locale. The symbolic links are not always unique in a global context, so in that cases you need to know the context the symbolic link is used for.- Parameters:
symbolicLink- the symbolic link, can not benullcontextObject- the referencing object, may benullfeature- the referencing feature, may benullscriptVariant- the targetScriptVariant, can not benull- Returns:
trueif theISymbolicLinkLocalizercan localize thesymbolicLinkorfalseotherwise
-
localizeSymbolicLink
String localizeSymbolicLink(String symbolicLink, org.eclipse.emf.ecore.EObject contextObject, org.eclipse.emf.ecore.EStructuralFeature feature, ScriptVariant scriptVariant) Localizes thesymbolicLinkused for the referencing feature to the targetScriptVariant. The symbolic links are not always unique in a global context, so in that cases you need to know the context the symbolic link is used for.- Parameters:
symbolicLink- the symbolic link, can not benullcontextObject- the referencing object, may benullfeature- the referencing feature, may benullscriptVariant- the targetScriptVariant, can not benull- Returns:
- the localized symbolic link or the original symbolic link, never
null
-