com.hlcl.rql.util.as
Class DoubleFilenameCollector
java.lang.Object
com.hlcl.rql.util.as.DoubleFilenameCollector
public class DoubleFilenameCollector
- extends java.lang.Object
- Author:
- lejafr
This class collects page filenames, find pages with same filename and count page for different aspects.
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DoubleFilenameCollector
public DoubleFilenameCollector(Project project)
- Constructor.
addPage
public void addPage(Page physicalPage)
throws RQLException
- Adds a physical page and update all counters accordingly. Check for pages with same filename, but do not remember pages with empty filenames.
Pages without filename will not be remembered. It is assumed that the page id is used in filename of such pages, so repeating filename is impossible.
- Throws:
RQLException
getPagesAddedCounter
public int getPagesAddedCounter()
- Returns:
- Returns the pagesAddedCounter.
getPagesWithoutFilenameCounter
public int getPagesWithoutFilenameCounter()
- Returns:
- Returns the pagesWithoutFilenameCounter.
getPagesWithRepeatedFilename
public PageArrayList getPagesWithRepeatedFilename()
- Returns:
- Returns the pagesWithRepeatedFilename.
getPagesWithRepeatedFilenameCounter
public int getPagesWithRepeatedFilenameCounter()
- Returns:
- Returns the pagesWithRepeatedFilenameCounter.
getPageWithSameFilename
public Page getPageWithSameFilename(Page sameFilenamePage)
throws RQLException
- Returns:
- Returns the page with same filename as the given page, which should be identified as page repeating a filename.
Returns null, if page is not found in map of remembered pages.
- Throws:
RQLException
- See Also:
getPagesWithRepeatedFilename()