BibEntry
This interface is used for web resources which do NOT provide BibTeX data BibEntry.
JabRef's infrastructure to convert arbitrary input data to BibTeX is Parser.
This interface inherits SearchBasedFetcher, because the methods performSearch have to be provided by both.
As non-BibTeX web fetcher one could do "magic" stuff without this helper interface and directly use WebFetcher, but this is more work.
Note that this interface "should" be an abstract class.
However, Java does not support multi inheritance with classes (but with interfaces).
We need multi inheritance, because a fetcher might implement multiple query types (such as id fetching IdBasedFetcher), complete entry EntryBasedFetcher, and search-based fetcher (this class).
| Modifier and Type | Method and Description |
|---|---|
| private List | |
| public Parser | |
| public URL | getURLForQuery(BaseQueryNode
the list that contains the parsed nodes queryList)Constructs a URL based on the lucene query. |
| public default URL | getURLForRawQuery(String
catalog-native query string sent verbatim to the catalog rawQuery)Constructs a URL that sends the raw, catalog-native query verbatim to the catalog (bypassing the query transformer). |
| public default List | performRawSearchQuery(String rawQuery)
Overrides default org. Default implementation: builds the URL via |
| public default List | performSearch(BaseQueryNode
the first search node queryNode)Implements org. This method is used to send queries with advanced URL parameters. |
| getBibEntries | back to summary |
|---|---|
| private List | |
| getParser | back to summary |
|---|---|
| public Parser getParser() Returns the parser used to convert the response to a list of | |
| getURLForQuery | back to summary |
|---|---|
| public URL getURLForQuery(BaseQueryNode queryList) throws URISyntaxException, MalformedURLException, FetcherException Constructs a URL based on the lucene query.
| |
| getURLForRawQuery | back to summary |
|---|---|
| public default URL getURLForRawQuery(String rawQuery) throws URISyntaxException, MalformedURLException, FetcherException Constructs a URL that sends the raw, catalog-native query verbatim to the catalog (bypassing the query transformer).
| |
| performRawSearchQuery | back to summary |
|---|---|
| public default List Overrides default org. Default implementation: builds the URL via
| |
| performSearch | back to summary |
|---|---|
| public default List Implements org. This method is used to send queries with advanced URL parameters. This method is necessary as the performSearch method does not support certain URL parameters that are used for fielded search, such as a title, author, or year parameter.
| |