Class CitationList

java.lang.Object
io.goobi.viewer.model.citation.CitationList

public class CitationList extends Object
Contains a list of CitationLinks along with a viewManager state wich tracks current page number and logId The method isCurrent(ViewManager) checks whether this list reflects to same state as the given ViewManager regarding the level of the included citation links
  • Constructor Details

    • CitationList

      public CitationList(List<CitationLink> list, CitationLink.CitationLinkLevel level, ViewManager viewManager)
      Constructor creating state from a ViewManager
      Parameters:
      list - the list of citation links
      level - the level this list pertains to
      viewManager - the viewmanager providing the state
    • CitationList

      public CitationList(List<CitationLink> list, CitationLink.CitationLinkLevel level, String logId, int page)
      Constructor creating state from individual properties
      Parameters:
      list - the list of citation links
      level - the level this list pertains to
      logId - the logId for which this is was created
      page - the page for which this list was created
  • Method Details

    • getList

      public List<CitationLink> getList()
      get the actual list of citation links
      Returns:
      a list of CitationLinks
    • isCurrent

      public boolean isCurrent(ViewManager viewManager)
      Check whether the state of this list reflects the same state as the given ViewManager regarding the level for which the list was created
      Parameters:
      viewManager -
      Returns:
      true if the state of this list reflects the same state as the given ViewManager regarding the level for which the list was created; false otherwise