Class MdRepresentationUtils

  • public class MdRepresentationUtils
    extends Object
    Utility methods for obtaining representation of MD object properties and their inner elements.
    • Constructor Detail

      • MdRepresentationUtils

        public MdRepresentationUtils()
    • Method Detail

      • typeItemToString

        public static String typeItemToString​(IComparisonDataSource dataSource,
                                              TypeDescription typeDescription,
                                              TypeItem typeItem,
                                              org.eclipse.xtext.scoping.IScopeProvider scopeProvider,
                                              ISymbolicLinkLocalizer symbolicLinkLocalizer,
                                              boolean withAddInfo)
        Returns the string representation of the specified type item.
        dataSource - the comparison data source the specified type item related to, cannot be null
        typeDescription - the type item host type description, cannot be null
        typeItem - the type item to get representation for, cannot be null
        scopeProvider - the scope provider, cannot be null
        symbolicLinkLocalizer - the symbolic link localizer, cannot be null
        withAddInfo - tell whether add info from qualifiers to the specified type item represenation
        the string representation, never null
      • getLocalizedEnumerator

        public static String getLocalizedEnumerator​(org.eclipse.emf.ecore.EEnum eEnum,
                                                    org.eclipse.emf.common.util.Enumerator enumerator)