Class DocumentReference

java.lang.Object
io.goobi.viewer.api.rest.model.ner.DocumentReference

public class DocumentReference extends Object

DocumentReference class.

  • Constructor Details

    • DocumentReference

      public DocumentReference()

      Constructor for DocumentReference.

    • DocumentReference

      public DocumentReference(String piTopStruct)

      Constructor for DocumentReference.

      Parameters:
      piTopStruct - a String object.
  • Method Details

    • getPi

      public String getPi()

      Getter for the field pi.

      Returns:
      a String object.
    • setPageRanges

      public void setPageRanges(List<TagGroup> ranges)

      Setter for the field pageRanges.

      Parameters:
      ranges - a List object.
    • addPageRange

      public void addPageRange(TagGroup range)

      addPageRange.

      Parameters:
      range - a TagGroup object.
    • addPageRanges

      public void addPageRanges(Collection<TagGroup> ranges)

      addPageRanges.

      Parameters:
      ranges - a Collection object.
    • getPageRanges

      public List<TagGroup> getPageRanges()

      Getter for the field pageRanges.

      Returns:
      a List object.
    • getPageRange

      public TagGroup getPageRange(int startPage)

      getPageRange.

      Parameters:
      startPage - a int.
      Returns:
      a TagGroup object.
    • getRangeSize

      public int getRangeSize()

      getRangeSize.

      Returns:
      a int.
    • hashCode

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

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