Package com.optum.sourcehawk.core.result
Class ScanResult.ScanResultBuilder
- java.lang.Object
-
- com.optum.sourcehawk.core.result.ScanResult.ScanResultBuilder
-
- Enclosing class:
- ScanResult
public static class ScanResult.ScanResultBuilder extends Object
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ScanResultbuild()ScanResult.ScanResultBuildererrorCount(int errorCount)The number of errors encountered during the scanScanResult.ScanResultBuilderformattedMessages(Collection<String> formattedMessages)Messages formatted for reporting Format: [SEVERITY] repositoryFilePath :: messageScanResult.ScanResultBuildermessages(Map<String,Collection<ScanResult.MessageDescriptor>> messages)All of the messages associated with the scan Key: Repository File Path Value: Collection ofScanResult.MessageDescriptorScanResult.ScanResultBuilderpassed(boolean passed)Whether or not the scan passedStringtoString()ScanResult.ScanResultBuilderwarningCount(int warningCount)The number of warnings encountered during the scan
-
-
-
Method Detail
-
passed
public ScanResult.ScanResultBuilder passed(boolean passed)
Whether or not the scan passed- Returns:
this.
-
errorCount
public ScanResult.ScanResultBuilder errorCount(int errorCount)
The number of errors encountered during the scan- Returns:
this.
-
warningCount
public ScanResult.ScanResultBuilder warningCount(int warningCount)
The number of warnings encountered during the scan- Returns:
this.
-
messages
public ScanResult.ScanResultBuilder messages(Map<String,Collection<ScanResult.MessageDescriptor>> messages)
All of the messages associated with the scan Key: Repository File Path Value: Collection ofScanResult.MessageDescriptor- Returns:
this.
-
formattedMessages
public ScanResult.ScanResultBuilder formattedMessages(Collection<String> formattedMessages)
Messages formatted for reporting Format: [SEVERITY] repositoryFilePath :: message- Returns:
this.
-
build
public ScanResult build()
-
-