Package lu.kbra.modelizer_next.ui.export
Record Class ViewExportContext
java.lang.Object
java.lang.Record
lu.kbra.modelizer_next.ui.export.ViewExportContext
- Record Components:
sourceFile- source document file, when availablepanelType- exported panel typeoutputFile- file being written
public record ViewExportContext(Optional<File> sourceFile, PanelType panelType, File outputFile)
extends Record
Context values available to format-specific exporters and text fields.
-
Constructor Summary
ConstructorsConstructorDescriptionViewExportContext(Optional<File> sourceFile, PanelType panelType, File outputFile) Creates an instance of aViewExportContextrecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.Returns the value of theoutputFilerecord component.Returns the value of thepanelTyperecord component.Returns the value of thesourceFilerecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
ViewExportContext
Creates an instance of aViewExportContextrecord class.- Parameters:
sourceFile- the value for thesourceFilerecord componentpanelType- the value for thepanelTyperecord componentoutputFile- the value for theoutputFilerecord 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. All components in this record class are compared withObjects::equals(Object,Object). -
sourceFile
Returns the value of thesourceFilerecord component.- Returns:
- the value of the
sourceFilerecord component
-
panelType
Returns the value of thepanelTyperecord component.- Returns:
- the value of the
panelTyperecord component
-
outputFile
Returns the value of theoutputFilerecord component.- Returns:
- the value of the
outputFilerecord component
-