Class PageReference
java.lang.Object
io.goobi.viewer.api.rest.model.ner.PageReference
- All Implemented Interfaces:
TagGroup,Comparable<TagGroup>
REST API model representing a single page of a digitized document and the NER tag counts found on it.
Implements
TagGroup to allow uniform handling alongside multi-page references.-
Constructor Summary
ConstructorsConstructorDescriptionCreates a new PageReference instance.PageReference(int pageOrder) Creates a new PageReference instance. -
Method Summary
-
Constructor Details
-
PageReference
public PageReference()Creates a new PageReference instance. -
PageReference
public PageReference(int pageOrder) Creates a new PageReference instance.- Parameters:
pageOrder- display order number of the referenced page
-
-
Method Details
-
getPageOrder
getPageOrder.- Specified by:
getPageOrderin interfaceTagGroup- Returns:
- the page order of the first (or only) page in this group
-
getTags
getTags. -
setTags
Setter for the fieldtags.- Parameters:
nerTags- list of NER tag counts to assign to this page reference
-
compareTo
- Specified by:
compareToin interfaceComparable<TagGroup>
-
hashCode
public int hashCode() -
equals
-
getPages
public int getPages()getPages. -
addTags
addTags.
-