Class MdSymbolicLinkLocalizer

    • Constructor Detail

      • MdSymbolicLinkLocalizer

        public MdSymbolicLinkLocalizer()
    • 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: ISymbolicLinkLocalizer
        Tests whether the ISymbolicLinkLocalizer can localize the symbolicLink 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 interface ISymbolicLinkLocalizer
        Parameters:
        symbolicLink - the symbolic link, can not be null
        contextObject - the referencing object, may be null
        feature - the referencing feature, may be null
        locale - the target locale, can not be null
        Returns:
        true if the ISymbolicLinkLocalizer can localize the symbolicLink or false 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 the symbolicLink 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 interface ISymbolicLinkLocalizer
        Parameters:
        symbolicLink - the symbolic link, can not be null
        contextObject - the referencing object, may be null
        feature - the referencing feature, may be null
        locale - the target locale, can not be null
        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 the ISymbolicLinkLocalizer can localize the symbolicLink 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 interface ISymbolicLinkLocalizer
        Parameters:
        symbolicLink - the symbolic link, can not be null
        contextObject - the referencing object, may be null
        feature - the referencing feature, may be null
        scriptVariant - the target ScriptVariant, can not be null
        Returns:
        true if the ISymbolicLinkLocalizer can localize the symbolicLink or false 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 the symbolicLink used for the referencing feature to the target ScriptVariant. 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 interface ISymbolicLinkLocalizer
        Parameters:
        symbolicLink - the symbolic link, can not be null
        contextObject - the referencing object, may be null
        feature - the referencing feature, may be null
        scriptVariant - the target ScriptVariant, can not be null
        Returns:
        the localized symbolic link or the original symbolic link, never null