Record Class CaptureGenerationResult
java.lang.Object
java.lang.Record
com.shaft.capture.generate.CaptureGenerationResult
- Record Components:
sourcePath- generated Java sourcetestDataPath- generated JSON test datareportPath- generation reportenrichmentPreviewPath- optional enrichment previewreport- generation report
-
Constructor Summary
ConstructorsConstructorDescriptionCaptureGenerationResult(Path sourcePath, Path testDataPath, Path reportPath, Path enrichmentPreviewPath, CaptureGenerationReport report) Creates an instance of aCaptureGenerationResultrecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of theenrichmentPreviewPathrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.report()Returns the value of thereportrecord component.Returns the value of thereportPathrecord component.Returns the deterministic review path beside the generation report.Returns the local Capture workbench HTML path beside the review artifact.Returns the value of thesourcePathrecord component.booleanReturns whether generation and all requested validations succeeded.Returns the value of thetestDataPathrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
CaptureGenerationResult
public CaptureGenerationResult(Path sourcePath, Path testDataPath, Path reportPath, Path enrichmentPreviewPath, CaptureGenerationReport report) Creates an instance of aCaptureGenerationResultrecord class.- Parameters:
sourcePath- the value for thesourcePathrecord componenttestDataPath- the value for thetestDataPathrecord componentreportPath- the value for thereportPathrecord componentenrichmentPreviewPath- the value for theenrichmentPreviewPathrecord componentreport- the value for thereportrecord component
-
-
Method Details
-
successful
public boolean successful()Returns whether generation and all requested validations succeeded.- Returns:
- true for a successful report
-
reviewPath
Returns the deterministic review path beside the generation report.- Returns:
- review artifact path
-
reviewUiPath
Returns the local Capture workbench HTML path beside the review artifact.- Returns:
- review UI artifact path
-
toString
-
hashCode
-
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). -
sourcePath
Returns the value of thesourcePathrecord component.- Returns:
- the value of the
sourcePathrecord component
-
testDataPath
Returns the value of thetestDataPathrecord component.- Returns:
- the value of the
testDataPathrecord component
-
reportPath
Returns the value of thereportPathrecord component.- Returns:
- the value of the
reportPathrecord component
-
enrichmentPreviewPath
Returns the value of theenrichmentPreviewPathrecord component.- Returns:
- the value of the
enrichmentPreviewPathrecord component
-
report
-