Package com.epimorphics.webapi
Class ResultPage
- java.lang.Object
-
- com.epimorphics.webapi.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
-
-
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)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description org.apache.jena.rdf.model.ModelgetModel()Return the model containing all the result dataorg.apache.jena.rdf.model.ResourcegetPage()Return the resource representing this page of the list.org.apache.jena.rdf.model.ResourcegetRoot()Return the resource representing the overall list.Iterable<org.apache.jena.rdf.model.Resource>list()Return all the content resources in this list
-
-
-
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
-
-