• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

knowledgepixels / nanodash / 19229148803

10 Nov 2025 10:52AM UTC coverage: 13.973% (-0.8%) from 14.759%
19229148803

push

github

web-flow
Merge pull request #280 from knowledgepixels/276-news-items

276 news items

514 of 4630 branches covered (11.1%)

Branch coverage included in aggregate %.

1333 of 8588 relevant lines covered (15.52%)

0.69 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

0.0
src/main/java/com/knowledgepixels/nanodash/ViewDisplay.java
1
package com.knowledgepixels.nanodash;
2

3
import org.nanopub.extra.services.ApiResponseEntry;
4

5
import java.io.Serializable;
6

7
/**
8
 * A class representing the display of a resource view associated with a Space.
9
 */
10
public class ViewDisplay implements Serializable {
11

12
    private ResourceView view;
13
    private String nanopubId;
14

15
    /**
16
     * Constructor for ViewDisplay.
17
     *
18
     * @param entry an ApiResponseEntry containing the view and nanopub ID.
19
     */
20
    public ViewDisplay(ApiResponseEntry entry) {
×
21
        this.view = ResourceView.get(entry.get("view"));
×
22
        if (view == null) throw new IllegalArgumentException("View not found: " + entry.get("view"));
×
23
        this.nanopubId = entry.get("np");
×
24
    }
×
25

26
    /**
27
     * Gets the ResourceView associated with this ViewDisplay.
28
     *
29
     * @return the ResourceView
30
     */
31
    public ResourceView getView() {
32
        return view;
×
33
    }
34

35
    /**
36
     * Gets the nanopub ID associated with this ViewDisplay.
37
     *
38
     * @return the nanopub ID
39
     */
40
    public String getNanopubId() {
41
        return nanopubId;
×
42
    }
43

44
}
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc