| Modifier and Type | Field and Description |
|---|---|
| private final JournalAbbreviationRepository | abbreviationRepository
Record Component accessed by abbreviationRepository(). |
| private final LayoutFormatterPreferences | layoutFormatterPreferences
Record Component accessed by layoutFormatterPreferences(). |
| private final PreviewPreferences | previewPreferences
Record Component accessed by previewPreferences(). |
| Access | Constructor and Description |
|---|---|
| public | ClipboardContentGenerator(PreviewPreferences previewPreferences, LayoutFormatterPreferences layoutFormatterPreferences, JournalAbbreviationRepository abbreviationRepository)
|
| Modifier and Type | Method and Description |
|---|---|
| public JournalAbbreviationRepository | |
| public final boolean | equals(Object o)
Implements abstract java. Indicates whether some other object is "equal to" this one. |
| public ClipboardContent | generate(List<BibEntry> selectedEntries, CitationStyleOutputFormat outputFormat, BibDatabaseContext bibDatabaseContext)
|
| private List | generateCitations(List<BibEntry> selectedEntries, CitationStyleOutputFormat outputFormat, BibDatabaseContext bibDatabaseContext)
|
| private List | generateTextBasedPreviewLayoutCitations(List<BibEntry> selectedEntries, BibDatabaseContext bibDatabaseContext)
|
| public final int | |
| public LayoutFormatterPreferences | |
| public PreviewPreferences | |
| pack-priv static ClipboardContent | processHtml(List<String> citations)
Inserts each citation into a HTML body and copies it to the clipboard. |
| pack-priv static ClipboardContent | Returns: clipboard content containing the Markdown representation in its plain string flavorthe list of already-formatted citation strings to be combined as Markdown citations)Joins each citation using the platform-specific newline into a single Markdown string (from citeproc) and copies it to the clipboard. |
| pack-priv static ClipboardContent | processPreview(List<String> citations)
Generates a plain text string out of the preview (based on |
| pack-priv static ClipboardContent | |
| public final String | toString()
Implements abstract java. Returns a string representation of the record. |
| abbreviationRepository | back to summary |
|---|---|
| private final JournalAbbreviationRepository abbreviationRepository Record Component accessed by abbreviationRepository(). | |
| layoutFormatterPreferences | back to summary |
|---|---|
| private final LayoutFormatterPreferences layoutFormatterPreferences Record Component accessed by layoutFormatterPreferences(). | |
| previewPreferences | back to summary |
|---|---|
| private final PreviewPreferences previewPreferences Record Component accessed by previewPreferences(). | |
| ClipboardContentGenerator | back to summary |
|---|---|
| public ClipboardContentGenerator(PreviewPreferences previewPreferences, LayoutFormatterPreferences layoutFormatterPreferences, JournalAbbreviationRepository abbreviationRepository) | |
| abbreviationRepository | back to summary |
|---|---|
| public JournalAbbreviationRepository abbreviationRepository() Record Component getter of abbreviationRepository. | |
| equals | back to summary |
|---|---|
| public final boolean equals(Object o) Implements abstract java. Doc from java. Indicates whether some other object is "equal to" this one. In addition
to the general contract of
R copy = new R(r.c1(), r.c2(), ..., r.cn());
then it must be the case that r.equals(copy).
| |
| generate | back to summary |
|---|---|
| public ClipboardContent generate(List<BibEntry> selectedEntries, CitationStyleOutputFormat outputFormat, BibDatabaseContext bibDatabaseContext) throws IOException | |
| generateCitations | back to summary |
|---|---|
| private List | |
| generateTextBasedPreviewLayoutCitations | back to summary |
|---|---|
| private List | |
| hashCode | back to summary |
|---|---|
| public final int hashCode() Implements abstract java. Doc from java. Returns a hash code value for the record.
Obeys the general contract of | |
| layoutFormatterPreferences | back to summary |
|---|---|
| public LayoutFormatterPreferences layoutFormatterPreferences() Record Component getter of layoutFormatterPreferences. | |
| previewPreferences | back to summary |
|---|---|
| public PreviewPreferences previewPreferences() Record Component getter of previewPreferences. | |
| processHtml | back to summary |
|---|---|
| pack-priv static ClipboardContent processHtml(List<String> citations) Inserts each citation into a HTML body and copies it to the clipboard.
The given preview is based on
| |
| processMarkdown | back to summary |
|---|---|
| pack-priv static ClipboardContent processMarkdown(List<String> citations) Joins each citation using the platform-specific newline into a single Markdown string (from citeproc) and copies it to the clipboard. A trailing newline is appended if missing to keep the behavior consistent with other output formats and to satisfy tests expecting a newline-terminated string.
| |
| processPreview | back to summary |
|---|---|
| pack-priv static ClipboardContent processPreview(List<String> citations) Generates a plain text string out of the preview (based on
| |
| processText | back to summary |
|---|---|
| pack-priv static ClipboardContent processText(List<String> citations) Joins every citation with a newline and returns it.
| |
| toString | back to summary |
|---|---|
| public final String toString() Implements abstract java. Doc from java. Returns a string representation of the record.
In accordance with the general contract of In addition to this general contract, record classes must further participate in the invariant that any two records which are equal must produce equal strings. This invariant is necessarily relaxed in the rare case where corresponding equal component values might fail to produce equal strings for themselves. | |