Class ResultPage


  • public class ResultPage
    extends Object
    Support for returning a paged view of a list of RDF resources. The results resources are expected to all be in the same model. The model will be side-effected to add the paging information
    Author:
    Dave Reynolds
    • Field Summary

      Fields 
      Modifier and Type Field Description
      protected org.apache.jena.rdf.model.Resource page  
      protected PageInfo pageInfo  
      protected List<org.apache.jena.rdf.model.Resource> results  
      protected org.apache.jena.rdf.model.Resource root  
    • Constructor Summary

      Constructors 
      Constructor Description
      ResultPage​(PageInfo pageInfo, List<org.apache.jena.rdf.model.Resource> results)  
      ResultPage​(PageInfo pageInfo, org.apache.jena.rdf.model.Resource[] resultsArray)  
    • Field Detail

      • results

        protected List<org.apache.jena.rdf.model.Resource> results
      • root

        protected org.apache.jena.rdf.model.Resource root
      • page

        protected org.apache.jena.rdf.model.Resource page
    • Constructor Detail

      • ResultPage

        public ResultPage​(PageInfo pageInfo,
                          List<org.apache.jena.rdf.model.Resource> results)
      • ResultPage

        public ResultPage​(PageInfo pageInfo,
                          org.apache.jena.rdf.model.Resource[] resultsArray)
    • Method Detail

      • getRoot

        public org.apache.jena.rdf.model.Resource getRoot()
        Return the resource representing the overall list.
      • getPage

        public org.apache.jena.rdf.model.Resource getPage()
        Return the resource representing this page of the list.
      • list

        public Iterable<org.apache.jena.rdf.model.Resource> list()
        Return all the content resources in this list
      • getModel

        public org.apache.jena.rdf.model.Model getModel()
        Return the model containing all the result data