Top Description Fields Constructors Methods
org.jabref.logic.importer.fetcher

public Class LibraryOfCongress

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
Imports
java.net.MalformedURLException, .URISyntaxException, .URL, org.jabref.logic.importer.FetcherException, .IdBasedParserFetcher, .ImportFormatPreferences, .Parser, org.jabref.logic.importer.fileformat.ModsImporter, org.apache.hc.core5.net.URIBuilder

Fetcher for the Library of Congress Control Number (LCCN) using https://lccn.loc.gov/

Field Summary

Modifier and TypeField and Description
private final ImportFormatPreferences

Constructor Summary

AccessConstructor and Description
public
LibraryOfCongress(ImportFormatPreferences importFormatPreferences)

Method Summary

Modifier and TypeMethod and Description
public String
getName()

Implements org.jabref.logic.importer.WebFetcher.getName.

Returns the localized name of 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.

public URL
getUrlForIdentifier(String
the ID
identifier
)

Implements org.jabref.logic.importer.IdBasedParserFetcher.getUrlForIdentifier.

Constructs a URL based on the query.

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

importFormatPreferencesback to summary
private final ImportFormatPreferences importFormatPreferences

Constructor Detail

LibraryOfCongressback to summary
public LibraryOfCongress(ImportFormatPreferences importFormatPreferences)

Method Detail

getNameback to summary
public String getName()

Implements org.jabref.logic.importer.WebFetcher.getName.

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

Returns the localized name of this fetcher. The title can be used to display the fetcher in the menu and in the side pane.

Returns:String

the localized name

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
getUrlForIdentifierback to summary
public URL getUrlForIdentifier(String identifier) throws URISyntaxException, MalformedURLException, FetcherException

Implements org.jabref.logic.importer.IdBasedParserFetcher.getUrlForIdentifier.

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

Constructs a URL based on the query.

Parameters
identifier:String

the ID

Annotations
@Override