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
All Methods Instance Methods Abstract Methods Modifier and Type Method Description boolean
canLocalizeSymbolicLink(String symbolicLink, org.eclipse.emf.ecore.EObject contextObject, org.eclipse.emf.ecore.EStructuralFeature feature, Locale locale)
Tests whether theISymbolicLinkLocalizer
can localize thesymbolicLink
used for the referencing feature to the target locale.boolean
canLocalizeSymbolicLink(String symbolicLink, org.eclipse.emf.ecore.EObject contextObject, org.eclipse.emf.ecore.EStructuralFeature feature, ScriptVariant scriptVariant)
Tests whether theISymbolicLinkLocalizer
can localize thesymbolicLink
used for the referencing feature to the target locale.String
localizeSymbolicLink(String symbolicLink, org.eclipse.emf.ecore.EObject contextObject, org.eclipse.emf.ecore.EStructuralFeature feature, Locale locale)
Localizes thesymbolicLink
used for the referencing feature to the target locale.String
localizeSymbolicLink(String symbolicLink, org.eclipse.emf.ecore.EObject contextObject, org.eclipse.emf.ecore.EStructuralFeature feature, ScriptVariant scriptVariant)
Localizes thesymbolicLink
used for the referencing feature to the targetScriptVariant
.
-
-
-
Method Detail
-
canLocalizeSymbolicLink
boolean canLocalizeSymbolicLink(String symbolicLink, org.eclipse.emf.ecore.EObject contextObject, org.eclipse.emf.ecore.EStructuralFeature feature, Locale locale)
Tests whether theISymbolicLinkLocalizer
can localize thesymbolicLink
used 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 benull
contextObject
- the referencing object, may benull
feature
- the referencing feature, may benull
locale
- the target locale, can not benull
- Returns:
true
if theISymbolicLinkLocalizer
can localize thesymbolicLink
orfalse
otherwise
-
localizeSymbolicLink
String localizeSymbolicLink(String symbolicLink, org.eclipse.emf.ecore.EObject contextObject, org.eclipse.emf.ecore.EStructuralFeature feature, Locale locale)
Localizes thesymbolicLink
used 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 benull
contextObject
- the referencing object, may benull
feature
- the referencing feature, may benull
locale
- 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 theISymbolicLinkLocalizer
can localize thesymbolicLink
used 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 benull
contextObject
- the referencing object, may benull
feature
- the referencing feature, may benull
scriptVariant
- the targetScriptVariant
, can not benull
- Returns:
true
if theISymbolicLinkLocalizer
can localize thesymbolicLink
orfalse
otherwise
-
localizeSymbolicLink
String localizeSymbolicLink(String symbolicLink, org.eclipse.emf.ecore.EObject contextObject, org.eclipse.emf.ecore.EStructuralFeature feature, ScriptVariant scriptVariant)
Localizes thesymbolicLink
used 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 benull
contextObject
- the referencing object, may benull
feature
- the referencing feature, may benull
scriptVariant
- the targetScriptVariant
, can not benull
- Returns:
- the localized symbolic link or the original symbolic link, never
null
-
-