Package ubic.gemma.cli.options
Class DataFileOptionValue
java.lang.Object
ubic.gemma.cli.options.DataFileOptionValue
- Direct Known Subclasses:
CellMetadataFileOptionValue,DesignFileOptionValue,ExpressionDataFileOptionValue
Shared option values for commands that write data files.
- Author:
- poirigui
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected final PathWrite the file to the given output directory.protected final PathWrite the file to the given output file.protected final booleanWrite the file to the standard location in the${gemma.appdata.home}/dataFilesdirectory.protected final booleanWrite the file to standard output. -
Constructor Summary
ConstructorsConstructorDescriptionDataFileOptionValue(boolean standardLocation, boolean standardOutput, Path outputFile, Path outputDir, String forceOption, boolean force) Creates a newDataFileOptionValueinstance. -
Method Summary
Modifier and TypeMethodDescriptionName of the force option.Write the file to the given output directory.Write the file to the given output file.getOutputFile(String filenameToUseIfDirectory) booleanisForce()Indicate if existing files should be overwritten.booleanWrite the file to the standard location in the${gemma.appdata.home}/dataFilesdirectory.booleanWrite the file to standard output.
-
Field Details
-
standardLocation
protected final boolean standardLocationWrite the file to the standard location in the${gemma.appdata.home}/dataFilesdirectory. -
standardOutput
protected final boolean standardOutputWrite the file to standard output. -
outputFile
Write the file to the given output file. -
outputDir
Write the file to the given output directory.
-
-
Constructor Details
-
DataFileOptionValue
public DataFileOptionValue(boolean standardLocation, boolean standardOutput, @Nullable Path outputFile, @Nullable Path outputDir, @Nullable String forceOption, boolean force) Creates a newDataFileOptionValueinstance.- Parameters:
standardLocation- Write the file to the standard location in the${gemma.appdata.home}/dataFilesdirectory.standardOutput- Write the file to standard output.outputFile- Write the file to the given output file.outputDir- Write the file to the given output directory.forceOption- Name of the force option.force- Indicate if existing files should be overwritten.
-
-
Method Details
-
getOutputFile
- Parameters:
filenameToUseIfDirectory- if the output directory is set, this filename will be used to create the output file. Use utilities inExpressionDataFileUtilsto generate the filename.
-
isStandardLocation
public boolean isStandardLocation()Write the file to the standard location in the${gemma.appdata.home}/dataFilesdirectory. -
isStandardOutput
public boolean isStandardOutput()Write the file to standard output. -
getOutputFile
Write the file to the given output file. -
getOutputDir
Write the file to the given output directory. -
getForceOption
Name of the force option. -
isForce
public boolean isForce()Indicate if existing files should be overwritten.
-