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
public class MdSymbolicLinkLocalizer extends Object implements ISymbolicLinkLocalizer
The implementation ofISymbolicLinkLocalizerfor translating symbolic links related to model objects.
-
-
Constructor Summary
Constructors Constructor Description MdSymbolicLinkLocalizer()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleancanLocalizeSymbolicLink(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.StringlocalizeSymbolicLink(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.StringlocalizeSymbolicLink(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 Detail
-
canLocalizeSymbolicLink
public boolean canLocalizeSymbolicLink(String symbolicLink, org.eclipse.emf.ecore.EObject contextObject, org.eclipse.emf.ecore.EStructuralFeature feature, Locale locale)
Description copied from interface:ISymbolicLinkLocalizerTests 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.- Specified by:
canLocalizeSymbolicLinkin interfaceISymbolicLinkLocalizer- 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
public String localizeSymbolicLink(String symbolicLink, org.eclipse.emf.ecore.EObject contextObject, org.eclipse.emf.ecore.EStructuralFeature feature, Locale locale)
Description copied from interface:ISymbolicLinkLocalizerLocalizes 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.- Specified by:
localizeSymbolicLinkin interfaceISymbolicLinkLocalizer- 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
public boolean canLocalizeSymbolicLink(String symbolicLink, org.eclipse.emf.ecore.EObject contextObject, org.eclipse.emf.ecore.EStructuralFeature feature, ScriptVariant scriptVariant)
Description copied from interface:ISymbolicLinkLocalizerTests 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.- Specified by:
canLocalizeSymbolicLinkin interfaceISymbolicLinkLocalizer- 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
public String localizeSymbolicLink(String symbolicLink, org.eclipse.emf.ecore.EObject contextObject, org.eclipse.emf.ecore.EStructuralFeature feature, ScriptVariant scriptVariant)
Description copied from interface:ISymbolicLinkLocalizerLocalizes 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.- Specified by:
localizeSymbolicLinkin interfaceISymbolicLinkLocalizer- 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
-
-