| Modifier and Type | Class and Description |
|---|---|
| private static class | 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 |
|---|---|
| private String | Returns: Returns an String containing the JSON document.Takes a BufferedReader with a reference to the JSON document delivered by mdl server. input)Convert Buffered Reader response to string for JSON parsing. |
| 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 | getName()
Implements abstract org. Returns the name of this import format. |
| public ParserResult | |
| public String | |
| public String | |
| public String | |
| public ParserResult | importDatabase(BufferedReader
the input to read from input)Implements abstract org. Parse the database in the source. |
| public boolean | isRecognizedFormat(BufferedReader input)
Implements abstract org. Check whether the source is in the correct format for this importer. |
| 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() | |
| convertToString | back to summary |
|---|---|
| private String convertToString(BufferedReader input) Convert Buffered Reader response to string for JSON parsing.
| |
| getDescription | back to summary |
|---|---|
| public String getDescription() Implements abstract org. Doc from org. Returns the description of the import format. The description should specify
| |
| getFileType | back to summary |
|---|---|
| public StandardFileType getFileType() Implements abstract org. Doc from org. Returns the type of files that this importer can read
| |
| getName | back to summary |
|---|---|
| public String getName() Implements abstract org. Doc from org. Returns the name of this import format. The name must be unique. | |
| 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(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. This method should never return null.
| |
| isRecognizedFormat | back to summary |
|---|---|
| public boolean isRecognizedFormat(BufferedReader input) throws IOException Implements abstract org. Doc from org. Check whether the source is in the correct format for this importer. The effect of this method is primarily to avoid unnecessary processing of files when searching for a suitable import format. If this method returns false, the import routine will move on to the next import format. Thus, the correct behaviour is to return false if it is certain that the file is not of the suitable type, and true otherwise. Returning true is the safe choice if not certain.
| |
| isRecommendationFieldPresent | back to summary |
|---|---|
| private Boolean isRecommendationFieldPresent(kong. | |
| parse | back to summary |
|---|---|
| private void parse(BufferedReader input) throws IOException 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 |
|---|---|
| public |
| RankedBibEntry | back to summary |
|---|---|
| public RankedBibEntry(BibEntry entry, Integer rank) | |