Record Class ViewExportRequest

java.lang.Object
java.lang.Record
lu.kbra.modelizer_next.ui.export.ViewExportRequest
Record Components:
format - export format to use
scope - export scope to use
panelTypes - values for panel types
outputDirectory - output directory value used by the operation
fileNamePattern - text value for file name pattern
multiple - whether multiple input files are allowed
wildcard - whether wildcard path matching is enabled

public record ViewExportRequest(ViewExportFormat format, ViewExportScope scope, List<PanelType> panelTypes, File outputDirectory, String fileNamePattern, boolean multiple, boolean wildcard) extends Record
Immutable request object passed to the exporter.
  • Constructor Details

    • ViewExportRequest

      public ViewExportRequest(ViewExportFormat format, ViewExportScope scope, List<PanelType> panelTypes, File outputDirectory, String fileNamePattern, boolean multiple, boolean wildcard)
      Creates an instance of a ViewExportRequest record class.
      Parameters:
      format - the value for the format record component
      scope - the value for the scope record component
      panelTypes - the value for the panelTypes record component
      outputDirectory - the value for the outputDirectory record component
      fileNamePattern - the value for the fileNamePattern record component
      multiple - the value for the multiple record component
      wildcard - the value for the wildcard record component
  • Method Details

    • toString

      public final String 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.
      Specified by:
      toString in class Record
      Returns:
      a string representation of this object
    • 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.
      Specified by:
      hashCode in class Record
      Returns:
      a hash code value for this object
    • equals

      public final boolean equals(Object o)
      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 with Objects::equals(Object,Object); primitive components are compared with '=='.
      Specified by:
      equals in class Record
      Parameters:
      o - the object with which to compare
      Returns:
      true if this object is the same as the o argument; false otherwise.
    • format

      public ViewExportFormat format()
      Returns the value of the format record component.
      Returns:
      the value of the format record component
    • scope

      public ViewExportScope scope()
      Returns the value of the scope record component.
      Returns:
      the value of the scope record component
    • panelTypes

      public List<PanelType> panelTypes()
      Returns the value of the panelTypes record component.
      Returns:
      the value of the panelTypes record component
    • outputDirectory

      public File outputDirectory()
      Returns the value of the outputDirectory record component.
      Returns:
      the value of the outputDirectory record component
    • fileNamePattern

      public String fileNamePattern()
      Returns the value of the fileNamePattern record component.
      Returns:
      the value of the fileNamePattern record component
    • multiple

      public boolean multiple()
      Returns the value of the multiple record component.
      Returns:
      the value of the multiple record component
    • wildcard

      public boolean wildcard()
      Returns the value of the wildcard record component.
      Returns:
      the value of the wildcard record component