public class Page extends CommonNodeWrapper
api:Page
.Modifier and Type | Field and Description |
---|---|
static String |
DEFAULT_VIEW_NAME
By default, we assume we're seeing the basic view
|
static int |
NO_VALUE
Indicate no available numeric value
|
Constructor and Description |
---|
Page(com.epimorphics.rdfutil.ModelWrapper mw,
com.hp.hpl.jena.rdf.model.Resource root)
Construct a new page object corresponding to the
root object
in model mw . |
Modifier and Type | Method and Description |
---|---|
protected Link |
createRemovalLink(EldaURL pageURL,
String paramName,
String paramHTML,
String paramValue,
String paramValueHTML) |
List<PropertyPath> |
currentPropertyPaths()
Return a list of all of the property paths that are explicitly defined
for this page.
|
EldaView |
currentView()
Return the current view, if we can determine what it is.
|
com.hp.hpl.jena.rdf.model.Resource |
definition() |
String |
extendedMetadataURL() |
List<Link> |
filterRemovalLinks() |
EldaView |
findViewByName(String viewName)
Return the view that has the given name
|
com.hp.hpl.jena.rdf.model.Resource |
firstPage() |
List<PageFormat> |
formats() |
boolean |
hasPageData() |
void |
initialiseShortNameRenderer(ShortnameService sns)
Initialise the short-name renderer that this page has access to, basing
it on an existing short name service
|
boolean |
isItemEndpoint() |
com.hp.hpl.jena.rdf.model.Resource |
isPartOf() |
boolean |
itemHasAllProperties(List<Object> properties) |
boolean |
itemHasAllProperties(Object... properties) |
List<DisplayRdfNode> |
items() |
int |
itemsPerPage() |
com.hp.hpl.jena.rdf.model.Resource |
lastPage() |
PageMetadata |
metadata()
Return a facade object providing a convenience API onto the page metadata
|
com.hp.hpl.jena.rdf.model.Resource |
nextPage() |
int |
pageNumber() |
String |
pageTitle()
Synthesise an informative title for this page
|
EldaURL |
pageURL() |
com.hp.hpl.jena.rdf.model.Resource |
prevPage() |
protected List<PropertyPath> |
queryParamPropertyPaths() |
List<DisplayRdfNode> |
resourcesWithAllProperties(List<Object> properties) |
ShortNameRenderer |
shortNameRenderer() |
List<Link> |
sortRemovalLinks() |
int |
startIndex() |
List<Binding<com.hp.hpl.jena.rdf.model.Resource>> |
termBindings()
Return a list of the term bindings, which associate a short name with a
resource.
|
List<Binding<String>> |
varBindings()
Return a list of the variable bindings, which associate a variable name
with a textual value
|
Map<String,String> |
varBindingsMap() |
List<EldaView> |
views() |
getInt, getResource, isXmlLiteral, page
asList, asLiteral, asRDFNode, asResource, asTurtle, asTurtle, closure, closure, connectedNodes, equals, firstValueOf, get, getDatatype, getLanguage, getLexicalForm, getLocalizedValue, getModelW, getName, getPropertyValue, getShortURI, getURI, getValue, hashCode, hasResourceValue, isAnon, isList, isLiteral, isResource, listInLinks, listInLinks, listProperties, listPropertyValues, tokeniseWords, toProperty, toString
public static final int NO_VALUE
public static final String DEFAULT_VIEW_NAME
public Page(com.epimorphics.rdfutil.ModelWrapper mw, com.hp.hpl.jena.rdf.model.Resource root)
root
object
in model mw
.mw
- A wrapper around the model containing the results from the APIroot
- The root resource of this pagepublic void initialiseShortNameRenderer(ShortnameService sns)
sns
- public ShortNameRenderer shortNameRenderer()
public EldaURL pageURL()
public boolean isItemEndpoint()
public int pageNumber()
public int itemsPerPage()
public int startIndex()
public com.hp.hpl.jena.rdf.model.Resource isPartOf()
public com.hp.hpl.jena.rdf.model.Resource definition()
public String extendedMetadataURL()
public com.hp.hpl.jena.rdf.model.Resource firstPage()
public com.hp.hpl.jena.rdf.model.Resource prevPage()
public com.hp.hpl.jena.rdf.model.Resource nextPage()
public com.hp.hpl.jena.rdf.model.Resource lastPage()
public boolean hasPageData()
public List<PageFormat> formats()
public List<Binding<com.hp.hpl.jena.rdf.model.Resource>> termBindings()
public List<Binding<String>> varBindings()
public Map<String,String> varBindingsMap()
varBindings()
as a map. Cached for performance.public List<DisplayRdfNode> items()
DisplayRdfNode
public EldaView currentView()
public EldaView findViewByName(String viewName)
viewName
- The name of the view to look forEldaView
object that has the name
viewName
EldaException
- if there is no such viewpublic PageMetadata metadata()
public List<PropertyPath> currentPropertyPaths()
api:properties
on the view specification, or the _properties
variable, or
both.public String pageTitle()
public boolean itemHasAllProperties(List<Object> properties)
hasAllProperties
test with the given propertiespublic boolean itemHasAllProperties(Object... properties)
hasAllProperties
test with the given propertiespublic List<DisplayRdfNode> resourcesWithAllProperties(List<Object> properties)
public List<Link> filterRemovalLinks()
public List<Link> sortRemovalLinks()
protected List<PropertyPath> queryParamPropertyPaths()
Copyright © 2014. All Rights Reserved.