| Modifier and Type | Class and Description |
|---|---|
| private static record | MrDLibImporter.
Small pair-class to ensure the right order of the recommendations. |
| Modifier and Type | Field and Description |
|---|---|
| private static final Logger | |
| public ParserResult | |
| private String | |
| private String | |
| private String |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public String | getDescription()
Implements abstract org. Returns the description of the import format. |
| public StandardFileType | getFileType()
Implements abstract org. Returns the type of files that this importer can read |
| public String | getId()
Implements abstract org. Returns a slug, which identifies this importer. |
| public String | getName()
Implements abstract org. Returns the name of this import format. |
| public ParserResult | |
| public String | |
| public String | |
| public String | |
| public ParserResult | importDatabase(@NonNull BufferedReader input)
Implements abstract org. Parse the database in the source. |
| public boolean | isRecognizedFormat(@NonNull Reader input)
Overrides org. #isRecognizedFormat(BufferedReader) without the requirement to reset |
| private Boolean | |
| private void | parse(BufferedReader
A BufferedReader with a reference to a string with the server's response input)Parses the input from the server to a ParserResult |
| private MrDLibImporter. | Returns: A ranked bib entry created from the recommendation inputJSON object of a single recommendation returned by Mr. DLib recommendationParses the JSON recommendations into bib entries |
| LOGGER | back to summary |
|---|---|
| private static final Logger LOGGER | |
| parserResult | back to summary |
|---|---|
| public ParserResult parserResult | |
| recommendationsDescription | back to summary |
|---|---|
| private String recommendationsDescription | |
| recommendationSetId | back to summary |
|---|---|
| private String recommendationSetId | |
| recommendationsHeading | back to summary |
|---|---|
| private String recommendationsHeading | |
| MrDLibImporter | back to summary |
|---|---|
| public MrDLibImporter() | |
| getDescription | back to summary |
|---|---|
| public String getDescription() Implements abstract org. Doc from org. Returns the description of the import format. The description should specifywhat kind of entries from what sources and based on what specification it is able to importby what criteria it
| |
| getFileType | back to summary |
|---|---|
| public StandardFileType getFileType() Implements abstract org. Doc from org. Returns the type of files that this importer can read
| |
| getId | back to summary |
|---|---|
| public String getId() Implements abstract org. Doc from org. Returns a slug, which identifies this importer. Used, for example, to identify the importer in CLI. Typically, this name should be short, in English, and should not contain special characters like #, %, etc.
| |
| getName | back to summary |
|---|---|
| public String getName() Implements abstract org. Doc from org. Returns the name of this import format. Typically, this is a string that denotes file type or format. It can also be localized, like "XMP-annotated PDF".
| |
| getParserResult | back to summary |
|---|---|
| public ParserResult getParserResult() | |
| getRecommendationsDescription | back to summary |
|---|---|
| public String getRecommendationsDescription() | |
| getRecommendationSetId | back to summary |
|---|---|
| public String getRecommendationSetId() | |
| getRecommendationsHeading | back to summary |
|---|---|
| public String getRecommendationsHeading() | |
| importDatabase | back to summary |
|---|---|
| public ParserResult importDatabase(@NonNull BufferedReader input) throws IOException Implements abstract org. Doc from org. Parse the database in the source. This method can be called in two different contexts - either when importing in a specified format, or when importing in unknown format. In the latter case, JabRef cycles through all available import formats. No error messages or feedback is displayed from individual import formats in this case. If importing in a specified format and an empty library is returned, JabRef reports that no entries were found. If your format is binary-based (PDF, ZIP-based, or others), then you should not solely override this method. For binary formats do this:
| |
| isRecognizedFormat | back to summary |
|---|---|
| public boolean isRecognizedFormat(@NonNull Reader input) throws IOException Overrides org. Doc from org. #isRecognizedFormat(BufferedReader) without the requirement to reset
| |
| isRecommendationFieldPresent | back to summary |
|---|---|
| private Boolean isRecommendationFieldPresent(kong. | |
| parse | back to summary |
|---|---|
| private void parse(BufferedReader input) Parses the input from the server to a ParserResult
| |
| populateBibEntry | back to summary |
|---|---|
| private MrDLibImporter. Parses the JSON recommendations into bib entries
| |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| public BibEntry | |
| public final boolean | equals(Object o)
Implements abstract java. Indicates whether some other object is "equal to" this one. |
| public final int | |
| public Integer | |
| public final String | toString()
Implements abstract java. Returns a string representation of the record. |
| entry | back to summary |
|---|---|
| private final BibEntry entry Record Component accessed by entry(). | |
| rank | back to summary |
|---|---|
| private final Integer rank Record Component accessed by rank(). | |
| RankedBibEntry | back to summary |
|---|---|
| private RankedBibEntry(BibEntry entry, Integer rank) | |
| entry | back to summary |
|---|---|
| public BibEntry entry() Record Component getter of entry. | |
| 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).
| |
| 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 | |
| rank | back to summary |
|---|---|
| public Integer rank() Record Component getter of rank. | |
| 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. | |