Class AbstractHtmlPageComparator<T extends org.eclipse.emf.ecore.EObject>
- java.lang.Object
-
- com._1c.g5.v8.dt.md.compare.participant.AbstractHtmlPageComparator<T>
-
- 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 Summary
Constructors Constructor Description AbstractHtmlPageComparator()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description ComparisonFlags
compareHtmlPageFile(TopComparisonNode topParent, AbstractComparedEmfObjects<T> comparingHtmlPages, IComparisonSession session)
Compares the Html page file.void
deleteHtmlPageFile(T mainPage, MergeContext context)
Deletes the Html page file for the given main page.protected abstract String
getHtmlPageLanguage(T page)
Returns the Html page language.protected abstract Path
getHtmlPagePath(String topParentSymlink, String pageLanguage)
Returns the Html page path.void
importHtmlPageFile(T otherPage, MergeContext context)
Imports the Html page file for the given other page.void
mergeHtmlPageFile(AbstractComparedEmfObjects<T> mergingObjects, MergeContext context)
Merges the Html page file.
-
-
-
Method Detail
-
compareHtmlPageFile
public ComparisonFlags compareHtmlPageFile(TopComparisonNode topParent, AbstractComparedEmfObjects<T> comparingHtmlPages, IComparisonSession session)
Compares the Html page file.- Parameters:
topParent
- the nearest top parent comparison node, cannot benull
comparingHtmlPages
- the comparing Html pages, cannot benull
session
- the current comparison session, cannot benull
- 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 benull
context
- the current merge context, cannot benull
-
mergeHtmlPageFile
public void mergeHtmlPageFile(AbstractComparedEmfObjects<T> mergingObjects, MergeContext context)
Merges the Html page file.- Parameters:
mergingObjects
- the merging Html pages, cannot benull
context
- the current merge context, cannot benull
-
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 benull
context
- the current merge context, cannot benull
-
getHtmlPageLanguage
protected abstract String getHtmlPageLanguage(T page)
Returns the Html page language.- Parameters:
page
- the Html page to get language for, cannot benull
- 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 benull
pageLanguage
- the Html page language, cannot benull
- Returns:
- the Html page path, never
null
-
-