Class AbstractHtmlPageComparator<T extends org.eclipse.emf.ecore.EObject>

  • Type Parameters:
    T - the Html page type

    public abstract class AbstractHtmlPageComparator<T extends org.eclipse.emf.ecore.EObject>
    extends Object
    The Html page abstract comparator that compares and merges Html page files.
    • Constructor Detail

      • AbstractHtmlPageComparator

        public AbstractHtmlPageComparator()
    • Method Detail

      • compareHtmlPageFile

        public ComparisonFlags compareHtmlPageFile​(BmTopComparisonNode topParent,
                                                   AbstractComparedEmfObjects<T> comparingHtmlPages,
                                                   IComparisonSession session)
        Compares the Html page file.
        Parameters:
        topParent - the nearest top parent comparison node, cannot be null
        comparingHtmlPages - the comparing Html pages, cannot be null
        session - the current comparison session, cannot be null
        Returns:
        the resulting comparison flags, never null
      • importHtmlPageFile

        public void importHtmlPageFile​(T otherPage,
                                       MergeContext context)
        Imports the Html page file for the given other page.
        Parameters:
        otherPage - the OTHER side Html page, cannot be null
        context - the current merge context, cannot be null
      • mergeHtmlPageFile

        public void mergeHtmlPageFile​(AbstractComparedEmfObjects<T> mergingObjects,
                                      MergeContext context)
        Merges the Html page file.
        Parameters:
        mergingObjects - the merging Html pages, cannot be null
        context - the current merge context, cannot be null
      • deleteHtmlPageFile

        public void deleteHtmlPageFile​(T mainPage,
                                       MergeContext context)
        Deletes the Html page file for the given main page.
        Parameters:
        mainPage - the MAIN side Html page, cannot be null
        context - the current merge context, cannot be null
      • getHtmlPageLanguage

        protected abstract String getHtmlPageLanguage​(T page)
        Returns the Html page language.
        Parameters:
        page - the Html page to get language for, cannot be null
        Returns:
        the Html page language, never null
      • getHtmlPagePath

        protected abstract Path getHtmlPagePath​(String topParentSymlink,
                                                String pageLanguage)
        Returns the Html page path.
        Parameters:
        topParentSymlink - the nearest top parent symlink, cannot be null
        pageLanguage - the Html page language, cannot be null
        Returns:
        the Html page path, never null