public class PageRef extends Ref implements Comparable<PageRef>
Modifier and Type | Field and Description |
---|---|
protected boolean |
isCoveredByDependency
An integer, showing the ID of the REQ-to-REQ dependency covering this PageRef.
|
protected Integer |
occurrence
The occurrence # on the page.
|
protected Long |
pageId |
protected Long |
version
The version of the page.
|
Constructor and Description |
---|
PageRef() |
PageRef(Long pageId,
Long version,
Integer occurrence,
boolean isCoveredByDependency) |
Modifier and Type | Method and Description |
---|---|
int |
compareTo(PageRef o)
Natural ordering: by type, then by page, then by occurrence.
|
Integer |
getOccurrence() |
Long |
getPageId() |
Long |
getVersion() |
boolean |
isCoveredByDependency() |
void |
set(String url,
Long pageId,
String type,
String title) |
void |
setOccurrence(Integer occurrence) |
void |
setPageId(Long pageId) |
void |
setTitle(String title) |
void |
setType(String type) |
void |
setUrl(String url) |
void |
setVersion(Long version) |
String |
toString() |
protected Long pageId
protected Long version
protected Integer occurrence
Since 2.5.1, the default value is null for original links, and 1 for dependent links. It was modified like this because some algo needed to know whether 'null' was because it was the first dependency, or null because it was an original. However, the 'null' value didn't change in the DB.
Before 2.5.1, the spec was that the first is null, and second is 2, 3, 4... There is no 0, no 1, although they would display properly if there were some.
protected boolean isCoveredByDependency
public Long getPageId()
public void setPageId(Long pageId)
public void setUrl(String url)
public void setTitle(String title)
public void setType(String type)
public Long getVersion()
public void setVersion(Long version)
public Integer getOccurrence()
public void setOccurrence(Integer occurrence)
public boolean isCoveredByDependency()
public int compareTo(PageRef o)
compareTo
in interface Comparable<PageRef>
Copyright © 2022 Requirement Yogi. All rights reserved.