java.lang.Object
org.sonatype.gradle.plugins.scan.nexus.iq.client.scan.ScanResult

public class ScanResult extends Object
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

    Constructors
    Constructor
    Description
    ScanResult(Object scan, File scanFile)
    Constructs a ScanResult from a scan object and its serialized file.
  • Method Summary

    Modifier and Type
    Method
    Description
    com.sonatype.insight.scan.model.Scan
    Returns the scan model, which may be null if deserialization failed.
    Returns the file containing the serialized scan data.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • ScanResult

      public ScanResult(Object scan, File scanFile)
      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

      public File getScanFile()
      Returns the file containing the serialized scan data.