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

pack-priv Class Check

extends Object
implements Callable<Integer>
Class Inheritance
All Implemented Interfaces
java.util.concurrent.Callable
Annotations
@Command
name:check
description:Check the integrity and consistency of a library.
subcommands:CheckConsistency, CheckIntegrity
Imports
java.nio.file.Path, java.util.concurrent.Callable, org.jabref.logic.l10n.Localization, org.jabref.toolkit.converter.CygWinPathConverter, org.jabref.toolkit.exception.ImportServiceException

Field Summary

Modifier and TypeField and Description
pack-priv static final String
FORMAT_CSV

Output formats accepted by --output-format.

pack-priv static final String
pack-priv static final String
pack-priv static final String
private Path
inputFile

Optional positional input file.

protected JabKit
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.

private int
private int
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

FORMAT_CSVback to summary
pack-priv static final String FORMAT_CSV

Output formats accepted by --output-format. Kept lowercase so they can also serve as case labels for a switch over outputFormat.toLowerCase(...).

FORMAT_ERRORFORMATback to summary
pack-priv static final String FORMAT_ERRORFORMAT
FORMAT_GITHUB_ACTIONSback to summary
pack-priv static final String FORMAT_GITHUB_ACTIONS
FORMAT_TXTback to summary
pack-priv static final String FORMAT_TXT
inputFileback to summary
private Path inputFile

Optional positional input file. When supplied directly to check (without a consistency or integrity subcommand), both checks run against it.

Annotations
@Parameters
index:0
arity:0..1
paramLabel:FILE
converter:CygWinPathConverter
description:Input file. When given without a subcommand, both the consistency and integrity checks run.
jabKitback to summary
protected JabKit jabKit
Annotations
@ParentCommand
outputFormatback to summary
private String outputFormat
Annotations
@Option
names:--output-format
description:Output format: csv, errorformat, github-actions or txt
defaultValue:errorformat
sharedOptionsback to summary
private JabKit.SharedOptions sharedOptions
Annotations
@Mixin

Constructor Detail

Checkback to summary
pack-priv Check()

Method Detail

callback to summary
public Integer call()

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
checkConsistencyback to summary
private int checkConsistency()
checkIntegrityback to summary
private int checkIntegrity()