java.lang.Object
org.jpo.datamodel.CategoryQuery
- All Implemented Interfaces:
Query
This class implements the
Query
interface to show all the nodes
attached to a category.-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptiongetIndex
(int index) This method returns the SDMTN node for the indicated position in the query.int
The query must be able to say how many results it will return.getTitle()
returns a title for the search that can be used to display the search results under.void
refresh()
This method retrieves a new List of nodes that match the category.toString()
returns the title for the search that can be used to display the search results under.
-
Constructor Details
-
CategoryQuery
Constructor for a Category Query- Parameters:
key
- The key for the category
-
-
Method Details
-
getNumberOfResults
public int getNumberOfResults()The query must be able to say how many results it will return.- Specified by:
getNumberOfResults
in interfaceQuery
- Returns:
- the number of results
-
getIndex
This method returns the SDMTN node for the indicated position in the query. If the index is out of bounds it returns null. -
getTitle
returns a title for the search that can be used to display the search results under. -
toString
returns the title for the search that can be used to display the search results under. -
refresh
public void refresh()This method retrieves a new List of nodes that match the category.
-