Class ReferenceManager

java.lang.Object
org.episteme.core.bibliography.ReferenceManager

public class ReferenceManager extends Object
Since:
1.0
Author:
Silvere Martin-Michiellot, Gemini AI (Google DeepMind)
  • Constructor Details

    • ReferenceManager

      public ReferenceManager()
  • Method Details

    • addFromBibTeX

      public void addFromBibTeX(String bibtex)
      Adds a reference from BibTeX entry.
    • addReference

      public void addReference(Map<String,String> entry)
      Adds a reference manually.
    • getAllReferences

      public List<Map<String,String>> getAllReferences()
      Gets all references.
    • findByAuthor

      public List<Map<String,String>> findByAuthor(String authorPattern)
      Finds references by author name.
    • findByYear

      public List<Map<String,String>> findByYear(String year)
      Finds references by year.
    • formatAll

      public List<String> formatAll(String style)
      Formats all references in the specified style.
    • formatReference

      public String formatReference(Map<String,String> entry, String style)
      Formats a single reference.
    • exportAsBibTeX

      public String exportAsBibTeX()
      Exports all references as BibTeX.
    • size

      public int size()
      Gets reference count.
    • clear

      public void clear()
      Clears all references.
    • setDefaultStyle

      public void setDefaultStyle(String style)
      Sets default citation style.
    • getDefaultStyle

      public String getDefaultStyle()
      Gets default citation style.
    • sortByAuthor

      public void sortByAuthor()
      Sorts references alphabetically by author.
    • sortByYear

      public void sortByYear()
      Sorts references by year (newest first).