Verified Owner
Top Fields Constructors Methods
org.jabref.logic.importer.fetcher

public abstract Class AbstractIsbnFetcher

extends Object
implements IdBasedParserFetcher
Class Inheritance
All Implemented Interfaces
org.jabref.logic.importer.IdBasedParserFetcher, org.jabref.logic.importer.ParserFetcher, org.jabref.logic.importer.IdBasedFetcher, org.jabref.logic.importer.WebFetcher
Known Direct Subclasses
org.jabref.logic.importer.fetcher.DnbFetcher, org.jabref.logic.importer.fetcher.GvkFetcher, org.jabref.logic.importer.fetcher.isbntobibtex.EbookDeIsbnFetcher, org.jabref.logic.importer.fetcher.isbntobibtex.LOBIDIsbnFetcher, org.jabref.logic.importer.fetcher.isbntobibtex.OpenLibraryIsbnFetcher
Imports
java.net.URISyntaxException, java.util.Optional, org.jabref.logic.help.HelpFile, org.jabref.logic.importer.IdBasedParserFetcher, .ImportFormatPreferences, .Parser, org.jabref.logic.importer.fileformat.BibtexParser, org.jabref.model.entry.identifier.ISBN

Field Summary

Modifier and TypeField and Description
protected final ImportFormatPreferences

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
protected void
public Optional<HelpFile>
getHelpPage()

Overrides default org.jabref.logic.importer.WebFetcher.getHelpPage.

Returns the help page for this fetcher.

public Parser
getParser()

Implements org.jabref.logic.importer.IdBasedParserFetcher.getParser.

Returns the parser used to convert the response to a list of BibEntry.

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

importFormatPreferencesback to summary
protected final ImportFormatPreferences importFormatPreferences

Constructor Detail

AbstractIsbnFetcherback to summary
public AbstractIsbnFetcher(ImportFormatPreferences importFormatPreferences)

Method Detail

ensureThatIsbnIsValidback to summary
protected void ensureThatIsbnIsValid(String identifier) throws URISyntaxException

Implementation Note

We could have created a new exception (which causes much implementation efforts) or we could have used "FetcherException", which is currently more used for I/O errors than syntax errors (thus also more WTF). Moreover, a ISBN is "kind of" an URI (even if the isbn: prefix is missing)

Exceptions
URISyntaxException:
if the ISBN is invalid
getHelpPageback to summary
public Optional<HelpFile> getHelpPage()

Overrides default org.jabref.logic.importer.WebFetcher.getHelpPage.

Doc from org.jabref.logic.importer.WebFetcher.getHelpPage.

Returns the help page for this fetcher.

Annotations
@Override
getParserback to summary
public Parser getParser()

Implements org.jabref.logic.importer.IdBasedParserFetcher.getParser.

Doc from org.jabref.logic.importer.IdBasedParserFetcher.getParser.

Returns the parser used to convert the response to a list of BibEntry.

Annotations
@Override