Class CommonParameters
- java.lang.Object
-
- de.gwdg.metadataqa.marc.cli.parameters.CommonParameters
-
- All Implemented Interfaces:
Serializable
- Direct Known Subclasses:
CompletenessParameters,FormatterParameters,MarcToSolrParameters,NetworkParameters,SerialScoreParameters,ShelfReadyCompletenessParameters,ThompsonTraillCompletenessParameters,ValidatorParameters
public class CommonParameters extends Object implements Serializable
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description protected booleanalephseqprotected String[]argsprotected org.apache.commons.cli.CommandLinecmdstatic StringDEFAULT_OUTPUT_DIRprotected Leader.TypedefaultRecordTypeprotected booleandoHelpprotected booleandoLogprotected booleanfixAlephseqprotected IgnorableFieldsignorableFieldsprotected IgnorableRecordsignorableRecordsprotected booleanlineSeparatedprotected MarcVersionmarcVersionprotected booleanmarcxmlprotected org.apache.commons.cli.Optionsoptionsprotected static org.apache.commons.cli.CommandLineParserparserprotected booleantrimId
-
Constructor Summary
Constructors Constructor Description CommonParameters()CommonParameters(String[] arguments)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleandoHelp()booleandoLog()booleanfixAlephseq()StringformatParameters()String[]getArgs()Leader.TypegetDefaultRecordType()StringgetId()IgnorableFieldsgetIgnorableFields()IgnorableRecordsgetIgnorableRecords()intgetLimit()MarcVersiongetMarcVersion()intgetOffset()org.apache.commons.cli.OptionsgetOptions()StringgetOutputDir()booleangetTrimId()booleanhasId()booleanisAlephseq()booleanisLineSeparated()booleanisMarcxml()protected voidsetOptions()
-
-
-
Field Detail
-
args
protected String[] args
-
DEFAULT_OUTPUT_DIR
public static final String DEFAULT_OUTPUT_DIR
- See Also:
- Constant Field Values
-
marcVersion
protected MarcVersion marcVersion
-
doHelp
protected boolean doHelp
-
doLog
protected boolean doLog
-
defaultRecordType
protected Leader.Type defaultRecordType
-
fixAlephseq
protected boolean fixAlephseq
-
alephseq
protected boolean alephseq
-
marcxml
protected boolean marcxml
-
lineSeparated
protected boolean lineSeparated
-
trimId
protected boolean trimId
-
ignorableRecords
protected IgnorableRecords ignorableRecords
-
ignorableFields
protected IgnorableFields ignorableFields
-
options
protected org.apache.commons.cli.Options options
-
parser
protected static final org.apache.commons.cli.CommandLineParser parser
-
cmd
protected org.apache.commons.cli.CommandLine cmd
-
-
Constructor Detail
-
CommonParameters
public CommonParameters()
-
CommonParameters
public CommonParameters(String[] arguments) throws org.apache.commons.cli.ParseException
- Throws:
org.apache.commons.cli.ParseException
-
-
Method Detail
-
setOptions
protected void setOptions()
-
getOptions
public org.apache.commons.cli.Options getOptions()
-
getMarcVersion
public MarcVersion getMarcVersion()
-
doHelp
public boolean doHelp()
-
doLog
public boolean doLog()
-
getArgs
public String[] getArgs()
-
getLimit
public int getLimit()
-
getOffset
public int getOffset()
-
hasId
public boolean hasId()
-
getId
public String getId()
-
getDefaultRecordType
public Leader.Type getDefaultRecordType()
-
fixAlephseq
public boolean fixAlephseq()
-
isAlephseq
public boolean isAlephseq()
-
isMarcxml
public boolean isMarcxml()
-
isLineSeparated
public boolean isLineSeparated()
-
getOutputDir
public String getOutputDir()
-
getTrimId
public boolean getTrimId()
-
getIgnorableFields
public IgnorableFields getIgnorableFields()
-
getIgnorableRecords
public IgnorableRecords getIgnorableRecords()
-
formatParameters
public String formatParameters()
-
-