Verified Owner
Top Inners Fields Constructors Methods
org.jabref.toolkit.commands

pack-priv Class Fetch

extends Object
implements Callable<Integer>
Class Inheritance
All Implemented Interfaces
java.util.concurrent.Callable
Annotations
@Command
name:fetch
description:Fetch entries from a provider.
Imports
java.nio.file.Path, java.util.List, .Set, java.util.concurrent.Callable, java.util.stream.Collectors, org.jabref.logic.importer.FetcherException, .SearchBasedFetcher, .WebFetchers, org.jabref.logic.l10n.Localization, org.jabref.model.database.BibDatabase, org.jabref.model.entry.BibEntry, org.jabref.toolkit.exception.CliException, org.jabref.toolkit.service.ExportService, org.slf4j.Logger, .LoggerFactory, picocli.CommandLine

Nested and Inner Type Summary

Modifier and TypeClass and Description
pack-priv static record

Field Summary

Modifier and TypeField and Description
private JabKit
private static final Logger
private Path
private String
private String
private JabKit.SharedOptions

Constructor Summary

AccessConstructor and Description
pack-priv

Method Summary

Modifier and TypeMethod and Description
public Integer
call()

Implements java.util.concurrent.Callable.call.

Computes a result, or throws an exception if unable to do so.

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

argumentProcessorback to summary
private JabKit argumentProcessor
Annotations
@ParentCommand
LOGGERback to summary
private static final Logger LOGGER
outputFileback to summary
private Path outputFile
Annotations
@Option
names:--output
providerback to summary
private String provider
Annotations
@Option
names:--provider
required:true
queryback to summary
private String query
Annotations
@Option
names:--query
sharedOptionsback to summary
private JabKit.SharedOptions sharedOptions
Annotations
@Mixin

Constructor Detail

Fetchback to summary
pack-priv Fetch()

Method Detail

callback to summary
public Integer call() throws CliException

Implements java.util.concurrent.Callable.call.

Doc from java.util.concurrent.Callable.call.

Computes a result, or throws an exception if unable to do so.

Annotations
@Override
org.jabref.toolkit.commands back to summary

pack-priv final Record Fetch.Provider

extends Record
Class Inheritance
Record Components
name:String 
query:String 

Field Summary

Modifier and TypeField and Description
private final String
name

Record Component accessed by name().

private final String
query

Record Component accessed by query().

Constructor Summary

AccessConstructor and Description
pack-priv
Provider(String name, String query)

Method Summary

Modifier and TypeMethod and Description
public final boolean
equals(Object o)

Implements abstract java.lang.Record.equals.

Indicates whether some other object is "equal to" this one.

public final int
hashCode()

Implements abstract java.lang.Record.hashCode.

Returns a hash code value for the record.

public String
name()

Record Component getter of name.

public String
query()

Record Component getter of query.

public final String
toString()

Implements abstract java.lang.Record.toString.

Returns a string representation of the record.

Field Detail

nameback to summary
private final String name

Record Component accessed by name().

queryback to summary
private final String query

Record Component accessed by query().

Constructor Detail

Providerback to summary
pack-priv Provider(String name, String query)

Method Detail

equalsback to summary
public final boolean equals(Object o)

Implements abstract java.lang.Record.equals.

Doc from java.lang.Record.equals.

Indicates whether some other object is "equal to" this one. In addition to the general contract of Object.equals, record classes must further obey the invariant that when a record instance is "copied" by passing the result of the record component accessor methods to the canonical constructor, as follows:

    R copy = new R(r.c1(), r.c2(), ..., r.cn());
then it must be the case that r.equals(copy).
hashCodeback to summary
public final int hashCode()

Implements abstract java.lang.Record.hashCode.

Doc from java.lang.Record.hashCode.

Returns a hash code value for the record. Obeys the general contract of Object.hashCode. For records, hashing behavior is constrained by the refined contract of Record.equals, so that any two records created from the same components must have the same hash code.

nameback to summary
public String name()

Record Component getter of name.

queryback to summary
public String query()

Record Component getter of query.

toStringback to summary
public final String toString()

Implements abstract java.lang.Record.toString.

Doc from java.lang.Record.toString.

Returns a string representation of the record. In accordance with the general contract of Object#toString(), the toString method returns a string that "textually represents" this record. The result should be a concise but informative representation that is easy for a person to read.

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.