Class ScanResult
java.lang.Object
org.sonatype.gradle.plugins.scan.nexus.iq.client.scan.ScanResult
Result of a scan operation.
Note: getScan() may return null when the instanceof Scan guard in the constructor fails,
which can occur during xstream relocation or deserialization problems. Callers must null-check the return value.
- Since:
- 1.0.1
-
Constructor Summary
ConstructorsConstructorDescriptionScanResult(Object scan, File scanFile) Constructs a ScanResult from a scan object and its serialized file. -
Method Summary
Modifier and TypeMethodDescriptioncom.sonatype.insight.scan.model.ScangetScan()Returns the scan model, which may be null if deserialization failed.Returns the file containing the serialized scan data.
-
Constructor Details
-
ScanResult
Constructs a ScanResult from a scan object and its serialized file.
-
-
Method Details
-
getScan
public com.sonatype.insight.scan.model.Scan getScan()Returns the scan model, which may be null if deserialization failed. -
getScanFile
Returns the file containing the serialized scan data.
-