Class PageReference

java.lang.Object
io.goobi.viewer.api.rest.model.ner.PageReference
All Implemented Interfaces:
TagGroup, Comparable<TagGroup>

public class PageReference extends Object implements TagGroup

PageReference class.

  • Constructor Details

    • PageReference

      public PageReference()

      Constructor for PageReference.

    • PageReference

      public PageReference(int pageOrder)

      Constructor for PageReference.

      Parameters:
      pageOrder - a int.
  • Method Details

    • getPageOrder

      public Integer getPageOrder()

      getPageOrder.

      Specified by:
      getPageOrder in interface TagGroup
      Returns:
      the page order of the first (or only) page in this group
    • getTags

      public List<TagCount> getTags()

      getTags.

      Specified by:
      getTags in interface TagGroup
      Returns:
      a List object.
    • setTags

      public void setTags(List<TagCount> nerTags)

      Setter for the field tags.

      Parameters:
      nerTags - a List object.
    • compareTo

      public int compareTo(TagGroup o)
      Specified by:
      compareTo in interface Comparable<TagGroup>
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • equals

      public boolean equals(Object obj)
      Overrides:
      equals in class Object
    • getPages

      public int getPages()

      getPages.

      Specified by:
      getPages in interface TagGroup
      Returns:
      the number of pages in this group
    • addTags

      public void addTags(List<TagCount> tags)

      addTags.

      Specified by:
      addTags in interface TagGroup
      Parameters:
      tags - a List object.