Package lu.kbra.modelizer_next.cmdline
Record Class CommandLineExportOptions
java.lang.Object
java.lang.Record
lu.kbra.modelizer_next.cmdline.CommandLineExportOptions
- Record Components:
inputFile- file to read or writeformat- export format to usescope- export scope to usepanelTypes- values for panel typesoutputDirectory- output directory value used by the operationfileNamePattern- text value for file name patternforce- whether force is enabledmultiple- whether multiple input files are allowedwildcard- whether wildcard path matching is enabledjobCount- count value to use
public record CommandLineExportOptions(String inputFile, ViewExportFormat format, ViewExportScope scope, List<PanelType> panelTypes, File outputDirectory, String fileNamePattern, boolean force, boolean multiple, boolean wildcard, int jobCount)
extends Record
Parsed command-line export request. It groups the input pattern, export type, output destination,
view scope, file naming pattern, overwrite flag, and glob behavior.
-
Constructor Summary
ConstructorsConstructorDescriptionCommandLineExportOptions(String inputFile, ViewExportFormat format, ViewExportScope scope, List<PanelType> panelTypes, File outputDirectory, String fileNamePattern, boolean force, boolean multiple, boolean wildcard, int jobCount) Creates an instance of aCommandLineExportOptionsrecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.Returns the value of thefileNamePatternrecord component.booleanforce()Returns the value of theforcerecord component.format()Returns the value of theformatrecord component.final inthashCode()Returns a hash code value for this object.Returns the value of theinputFilerecord component.intjobCount()Returns the value of thejobCountrecord component.booleanmultiple()Returns the value of themultiplerecord component.Returns the value of theoutputDirectoryrecord component.Returns the value of thepanelTypesrecord component.scope()Returns the value of thescoperecord component.final StringtoString()Returns a string representation of this record class.booleanwildcard()Returns the value of thewildcardrecord component.
-
Constructor Details
-
CommandLineExportOptions
public CommandLineExportOptions(String inputFile, ViewExportFormat format, ViewExportScope scope, List<PanelType> panelTypes, File outputDirectory, String fileNamePattern, boolean force, boolean multiple, boolean wildcard, int jobCount) Creates an instance of aCommandLineExportOptionsrecord class.- Parameters:
inputFile- the value for theinputFilerecord componentformat- the value for theformatrecord componentscope- the value for thescoperecord componentpanelTypes- the value for thepanelTypesrecord componentoutputDirectory- the value for theoutputDirectoryrecord componentfileNamePattern- the value for thefileNamePatternrecord componentforce- the value for theforcerecord componentmultiple- the value for themultiplerecord componentwildcard- the value for thewildcardrecord componentjobCount- the value for thejobCountrecord component
-
-
Method Details
-
toString
Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components. -
hashCode
public final int hashCode()Returns a hash code value for this object. The value is derived from the hash code of each of the record components. -
equals
Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with '=='. -
inputFile
Returns the value of theinputFilerecord component.- Returns:
- the value of the
inputFilerecord component
-
format
Returns the value of theformatrecord component.- Returns:
- the value of the
formatrecord component
-
scope
Returns the value of thescoperecord component.- Returns:
- the value of the
scoperecord component
-
panelTypes
Returns the value of thepanelTypesrecord component.- Returns:
- the value of the
panelTypesrecord component
-
outputDirectory
Returns the value of theoutputDirectoryrecord component.- Returns:
- the value of the
outputDirectoryrecord component
-
fileNamePattern
Returns the value of thefileNamePatternrecord component.- Returns:
- the value of the
fileNamePatternrecord component
-
force
public boolean force()Returns the value of theforcerecord component.- Returns:
- the value of the
forcerecord component
-
multiple
public boolean multiple()Returns the value of themultiplerecord component.- Returns:
- the value of the
multiplerecord component
-
wildcard
public boolean wildcard()Returns the value of thewildcardrecord component.- Returns:
- the value of the
wildcardrecord component
-
jobCount
public int jobCount()Returns the value of thejobCountrecord component.- Returns:
- the value of the
jobCountrecord component
-