| Modifier and Type | Class and Description |
|---|---|
| private static record | |
| private static enum |
| Modifier and Type | Field and Description |
|---|---|
| private final Map | |
| public static final String | |
| private final ImporterPreferences | |
| private static final Pattern | |
| private static final Pattern | |
| private static final String | |
| private static final Logger | |
| private static final int | |
| private static final String | |
| private static final String |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| private URL | buildSearchUrl(ScholarFetcher.
|
| private kong. | |
| private Page | |
| public Optional | |
| private Optional | |
| public Map | getDownloadHeaders()
Overrides default org. Returns HTTP headers required for downloading the PDF returned by |
| public String | getName()
Implements org. Returns the localized name of this fetcher. |
| private URL | |
| public TrustLevel | getTrustLevel()
Implements org. Returns the level of trust for this fetcher. |
| public boolean | isValidKey(String apiKey)
Overrides default org. Returns whether the API key is valid |
| public static BibEntry | Returns: the converted BibEntrythe JSONObject from search results scholarJsonEntryConvert a JSONObject obtained from the Scholar API to a BibEntry |
| public Page | performRawSearchQueryPaged(String rawQuery, int pageNumber)
Overrides default org.
|
| public Page | performSearchPaged(BaseQueryNode queryNode, int pageNumber)
Implements org.
|
| cursorCacheMap | back to summary |
|---|---|
| private final Map<ScholarFetcher. | |
| FETCHER_NAME | back to summary |
|---|---|
| public static final String FETCHER_NAME | |
| importerPreferences | back to summary |
|---|---|
| private final ImporterPreferences importerPreferences | |
| JOURNAL_ISSUE_NUMBER | back to summary |
|---|---|
| private static final Pattern JOURNAL_ISSUE_NUMBER | |
| JOURNAL_VOLUME | back to summary |
|---|---|
| private static final Pattern JOURNAL_VOLUME | |
| LIST_URL | back to summary |
|---|---|
| private static final String LIST_URL | |
| LOGGER | back to summary |
|---|---|
| private static final Logger LOGGER | |
| NO_YEAR_BOUND | back to summary |
|---|---|
| private static final int NO_YEAR_BOUND | |
| PDF_URL | back to summary |
|---|---|
| private static final String PDF_URL | |
| SEARCH_URL | back to summary |
|---|---|
| private static final String SEARCH_URL | |
| ScholarFetcher | back to summary |
|---|---|
| public ScholarFetcher(ImporterPreferences importerPreferences) | |
| buildSearchUrl | back to summary |
|---|---|
| private URL buildSearchUrl(ScholarFetcher. | |
| callApi | back to summary |
|---|---|
| private kong. | |
| fetchPage | back to summary |
|---|---|
| private Page | |
| findFullText | back to summary |
|---|---|
public Optional
| |
| getApiKey | back to summary |
|---|---|
| private Optional | |
| getDownloadHeaders | back to summary |
|---|---|
| public Map Overrides default org. Doc from org. Returns HTTP headers required for downloading the PDF returned by
| |
| getName | back to summary |
|---|---|
| public String getName() Implements org. Doc from org. Returns the localized name of this fetcher. The title can be used to display the fetcher in the menu and in the side pane. Todo This name is also used for identifying the fetcher in preferences for API keys. Thus, any switch of the language will "remove" API keys.
| |
| getTestUrl | back to summary |
|---|---|
| private URL getTestUrl() throws MalformedURLException | |
| getTrustLevel | back to summary |
|---|---|
| public TrustLevel getTrustLevel() Implements org. Doc from org. Returns the level of trust for this fetcher. We distinguish between publishers and meta search engines for example.
| |
| isValidKey | back to summary |
|---|---|
| public boolean isValidKey(String apiKey) Overrides default org. Doc from org. Returns whether the API key is valid
| |
| jsonItemToBibEntry | back to summary |
|---|---|
| public static BibEntry jsonItemToBibEntry(kong. Convert a JSONObject obtained from the Scholar API to a BibEntry
| |
| performRawSearchQueryPaged | back to summary |
|---|---|
| public Page Overrides default org.
| |
| performSearchPaged | back to summary |
|---|---|
| public Page Implements org.
| |
| Modifier and Type | Field and Description |
|---|---|
| private final ScholarFetcher. | endpoint
Record Component accessed by endpoint(). |
| private final int | |
| private final int | pageNumber
Record Component accessed by pageNumber(). |
| private final String | |
| private final int | startYear
Record Component accessed by startYear(). |
| Access | Constructor and Description |
|---|---|
| private | PageKey(ScholarFetcher.
|
| Modifier and Type | Method and Description |
|---|---|
| public ScholarFetcher. | |
| public int | |
| public final boolean | equals(Object o)
Implements abstract java. Indicates whether some other object is "equal to" this one. |
| public final int | |
| public int | |
| public String | |
| public int | |
| public final String | toString()
Implements abstract java. Returns a string representation of the record. |
| endpoint | back to summary |
|---|---|
| private final ScholarFetcher. Record Component accessed by endpoint(). | |
| endYear | back to summary |
|---|---|
| private final int endYear Record Component accessed by endYear(). | |
| pageNumber | back to summary |
|---|---|
| private final int pageNumber Record Component accessed by pageNumber(). | |
| query | back to summary |
|---|---|
| private final String query Record Component accessed by query(). | |
| startYear | back to summary |
|---|---|
| private final int startYear Record Component accessed by startYear(). | |
| PageKey | back to summary |
|---|---|
| private PageKey(ScholarFetcher. | |
| endpoint | back to summary |
|---|---|
| public ScholarFetcher. Record Component getter of endpoint. | |
| endYear | back to summary |
|---|---|
| public int endYear() Record Component getter of endYear. | |
| 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 | |
| pageNumber | back to summary |
|---|---|
| public int pageNumber() Record Component getter of pageNumber. | |
| query | back to summary |
|---|---|
| public String query() Record Component getter of query. | |
| startYear | back to summary |
|---|---|
| public int startYear() Record Component getter of startYear. | |
| 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. | |
| Modifier and Type | Field and Description |
|---|---|
| private final String | |
| public static final ScholarFetcher. | |
| private final String | |
| public static final ScholarFetcher. | |
| private final String |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| pack-priv String | |
| pack-priv String | |
| pack-priv String | |
| public static ScholarFetcher. | |
| public static ScholarFetcher. |
| cursorRequestParameter | back to summary |
|---|---|
| private final String cursorRequestParameter | |
| LIST | back to summary |
|---|---|
| public static final ScholarFetcher. | |
| nextCursorResponseParameter | back to summary |
|---|---|
| private final String nextCursorResponseParameter | |
| SEARCH | back to summary |
|---|---|
| public static final ScholarFetcher. | |
| url | back to summary |
|---|---|
| private final String url | |
| SearchEndpoint | back to summary |
|---|---|
| private SearchEndpoint(String url, String cursorRequestParameter, String nextCursorResponseParameter) | |
| cursorRequestParameter | back to summary |
|---|---|
| pack-priv String cursorRequestParameter() | |
| nextCursorResponseParameter | back to summary |
|---|---|
| pack-priv String nextCursorResponseParameter() | |
| url | back to summary |
|---|---|
| pack-priv String url() | |
| valueOf | back to summary |
|---|---|
| public static ScholarFetcher. | |
| values | back to summary |
|---|---|
| public static ScholarFetcher. | |