@Test public void testItems() { List<DisplayRdfNode> items = page.items(); assertEquals( 10, items.size() ); assertEquals( "http: }
public List<DisplayRdfNode> items() { List<DisplayRdfNode> items = new ArrayList<DisplayRdfNode>(); if (isItemEndpoint()) { Resource item = getPropertyValue( FOAF.primaryTopic ).asResource(); items.add( new DisplayRdfNode( this, item ) ); } else { RDFList itemList = getPropertyValue( API.items ).asResource().as( RDFList.class ); for (RDFNode n : itemList.asJavaList()) { Resource item = n.asResource(); items.add( new DisplayRdfNode( this, item ) ); } } return items; }
Page extends CommonNodeWrapper { public List<DisplayRdfNode> items() { List<DisplayRdfNode> items = new ArrayList<DisplayRdfNode>(); if (isItemEndpoint()) { Resource item = getPropertyValue( FOAF.primaryTopic ).asResource(); items.add( new DisplayRdfNode( this, item ) ); } else { RDFList itemList = getPropertyValue( API.items ).asResource().as( RDFList.class ); for (RDFNode n : itemList.asJavaList()) { Resource item = n.asResource(); items.add( new DisplayRdfNode( this, item ) ); } } return items; } }
Page extends CommonNodeWrapper { public List<DisplayRdfNode> items() { List<DisplayRdfNode> items = new ArrayList<DisplayRdfNode>(); if (isItemEndpoint()) { Resource item = getPropertyValue( FOAF.primaryTopic ).asResource(); items.add( new DisplayRdfNode( this, item ) ); } else { RDFList itemList = getPropertyValue( API.items ).asResource().as( RDFList.class ); for (RDFNode n : itemList.asJavaList()) { Resource item = n.asResource(); items.add( new DisplayRdfNode( this, item ) ); } } return items; } Page( ResultsModel mw, Resource root ); }
Page extends CommonNodeWrapper { public List<DisplayRdfNode> items() { List<DisplayRdfNode> items = new ArrayList<DisplayRdfNode>(); if (isItemEndpoint()) { Resource item = getPropertyValue( FOAF.primaryTopic ).asResource(); items.add( new DisplayRdfNode( this, item ) ); } else { RDFList itemList = getPropertyValue( API.items ).asResource().as( RDFList.class ); for (RDFNode n : itemList.asJavaList()) { Resource item = n.asResource(); items.add( new DisplayRdfNode( this, item ) ); } } return items; } Page( ResultsModel mw, Resource root ); void initialiseShortNameRenderer( ShortnameService sns ); ShortNameRenderer shortNameRenderer(); EldaURL pageURL(); boolean isItemEndpoint(); int pageNumber(); int itemsPerPage(); int totalResults(); String resultsCountSummary(); int startIndex(); Resource isPartOf(); Resource definition(); String extendedMetadataURL(); Resource firstPage(); Resource prevPage(); Resource nextPage(); Resource lastPage(); boolean hasPageData(); List<PageFormat> formats(); List<EldaView> views(); List<Binding<Resource>> termBindings(); List<Binding<String>> varBindings(); Map<String, String> varBindingsMap(); List<DisplayRdfNode> items(); Model pageObjectModel(); EldaView currentView(); EldaView findViewByName( String viewName ); PageMetadata metadata(); List<PropertyPath> currentPropertyPaths(); String pageTitle(); boolean itemHasAllProperties( List<Object> properties ); boolean itemHasAllProperties( Object... properties ); List<DisplayRdfNode> resourcesWithAllProperties( List<Object> properties ); List<Link> filterRemovalLinks(); List<Link> sortRemovalLinks(); }
Page extends CommonNodeWrapper { public List<DisplayRdfNode> items() { List<DisplayRdfNode> items = new ArrayList<DisplayRdfNode>(); if (isItemEndpoint()) { Resource item = getPropertyValue( FOAF.primaryTopic ).asResource(); items.add( new DisplayRdfNode( this, item ) ); } else { RDFList itemList = getPropertyValue( API.items ).asResource().as( RDFList.class ); for (RDFNode n : itemList.asJavaList()) { Resource item = n.asResource(); items.add( new DisplayRdfNode( this, item ) ); } } return items; } Page( ResultsModel mw, Resource root ); void initialiseShortNameRenderer( ShortnameService sns ); ShortNameRenderer shortNameRenderer(); EldaURL pageURL(); boolean isItemEndpoint(); int pageNumber(); int itemsPerPage(); int totalResults(); String resultsCountSummary(); int startIndex(); Resource isPartOf(); Resource definition(); String extendedMetadataURL(); Resource firstPage(); Resource prevPage(); Resource nextPage(); Resource lastPage(); boolean hasPageData(); List<PageFormat> formats(); List<EldaView> views(); List<Binding<Resource>> termBindings(); List<Binding<String>> varBindings(); Map<String, String> varBindingsMap(); List<DisplayRdfNode> items(); Model pageObjectModel(); EldaView currentView(); EldaView findViewByName( String viewName ); PageMetadata metadata(); List<PropertyPath> currentPropertyPaths(); String pageTitle(); boolean itemHasAllProperties( List<Object> properties ); boolean itemHasAllProperties( Object... properties ); List<DisplayRdfNode> resourcesWithAllProperties( List<Object> properties ); List<Link> filterRemovalLinks(); List<Link> sortRemovalLinks(); static final int NO_VALUE; static final String DEFAULT_VIEW_NAME; }