Package com._1c.g5.v8.dt.md.naming
Class MdSymbolicLinkLocalizer
java.lang.Object
com._1c.g5.v8.dt.md.naming.MdSymbolicLinkLocalizer
- All Implemented Interfaces:
ISymbolicLinkLocalizer
The implementation of
ISymbolicLinkLocalizer
for translating symbolic links related to model objects.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionboolean
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.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.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
.
-
Constructor Details
-
MdSymbolicLinkLocalizer
public MdSymbolicLinkLocalizer()
-
-
Method Details
-
canLocalizeSymbolicLink
public boolean canLocalizeSymbolicLink(String symbolicLink, org.eclipse.emf.ecore.EObject contextObject, org.eclipse.emf.ecore.EStructuralFeature feature, Locale locale) Description copied from interface:ISymbolicLinkLocalizer
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.- Specified by:
canLocalizeSymbolicLink
in interfaceISymbolicLinkLocalizer
- 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
public String localizeSymbolicLink(String symbolicLink, org.eclipse.emf.ecore.EObject contextObject, org.eclipse.emf.ecore.EStructuralFeature feature, Locale locale) Description copied from interface:ISymbolicLinkLocalizer
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.- Specified by:
localizeSymbolicLink
in interfaceISymbolicLinkLocalizer
- 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
public boolean canLocalizeSymbolicLink(String symbolicLink, org.eclipse.emf.ecore.EObject contextObject, org.eclipse.emf.ecore.EStructuralFeature feature, ScriptVariant scriptVariant) Description copied from interface:ISymbolicLinkLocalizer
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.- Specified by:
canLocalizeSymbolicLink
in interfaceISymbolicLinkLocalizer
- 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
public String localizeSymbolicLink(String symbolicLink, org.eclipse.emf.ecore.EObject contextObject, org.eclipse.emf.ecore.EStructuralFeature feature, ScriptVariant scriptVariant) Description copied from interface:ISymbolicLinkLocalizer
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.- Specified by:
localizeSymbolicLink
in interfaceISymbolicLinkLocalizer
- 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
-