Class CitationProcessorWrapper

java.lang.Object
io.goobi.viewer.model.citation.CitationProcessorWrapper
All Implemented Interfaces:
Serializable

public class CitationProcessorWrapper extends Object implements Serializable
Session-scoped wrapper that manages lazily created CSL citation processors, keyed by CSL style name, and provides shared access to the underlying CitationDataProvider.
See Also:
  • Constructor Details

    • CitationProcessorWrapper

      public CitationProcessorWrapper()
  • Method Details

    • getCitationProcessor

      public de.undercouch.citeproc.CSL getCitationProcessor(String style) throws IOException
      Parameters:
      style - CSL citation style name (e.g. "apa", "chicago-notes")
      Returns:
      the CSL citation processor for the given style, creating it if it does not yet exist
      Throws:
      IOException
    • getCitationItemDataProvider

      public CitationDataProvider getCitationItemDataProvider()