Module org.jpo

Class DuplicatesQuery

java.lang.Object
org.jpo.datamodel.DuplicatesQuery
All Implemented Interfaces:
Query

public class DuplicatesQuery extends Object implements Query
This class finds duplicates and adds them to a query object
  • Constructor Details

    • DuplicatesQuery

      public DuplicatesQuery()
  • Method Details

    • getNumberOfResults

      public int getNumberOfResults()
      The number of entries found
      Specified by:
      getNumberOfResults in interface Query
      Returns:
      the number of entries found
    • getIndex

      public SortableDefaultMutableTreeNode getIndex(int index)
      Returns the element specified in the index
      Specified by:
      getIndex in interface Query
      Parameters:
      index - The element to be returned
      Returns:
      returns the node or null if the query is not right.
    • getTitle

      public String getTitle()
      Returns a title for the query
      Specified by:
      getTitle in interface Query
      Returns:
      The title for the query
    • toString

      public String toString()
      returns the title for the search that can be used to display the search results under. The JTree asks for toString()
      Specified by:
      toString in interface Query
      Overrides:
      toString in class Object
      Returns:
      a title
    • refresh

      public void refresh()
      Refreshes the search results
      Specified by:
      refresh in interface Query