Module org.jpo

Interface Query

All Known Implementing Classes:
CategoryQuery, DuplicatesQuery, StaticNodesQuery, TextQuery, YearQuery

public interface Query
An Interface that specifies what a query must implement, so it can be shown
  • Method Details

    • getNumberOfResults

      int getNumberOfResults()
      The query must be able to say how many results it will return.
      Returns:
      the number of results
    • getIndex

      SortableDefaultMutableTreeNode getIndex(int index)
      This method returns the SortableDefaultMutableTreeNode node for the indicated position in the query. If the index is out of bounds it returns null. The valid range is from 0 to getNumberOfResults().
      Parameters:
      index - The component index that is to be returned 0 to getNumberOfResults().
      Returns:
      the node for the index
    • getTitle

      String getTitle()
      Returns a title for the search that can be used to display the search results under.
      Returns:
      a string for the title
    • toString

      String toString()
      returns the title for the search that can be used to display the search results under.
      Overrides:
      toString in class Object
      Returns:
      a title
    • refresh

      void refresh()
      Forces the results to be refreshed