Class CliScanParser<T extends CliScanResponse>

    • Constructor Detail

      • CliScanParser

        public CliScanParser​(com.google.gson.Gson gson)
    • Method Detail

      • getTypeToken

        public abstract com.google.gson.reflect.TypeToken<T> getTypeToken()
      • fromCliScan

        public abstract CliCommonResponseModel fromCliScan​(com.google.gson.JsonObject versionlessModel)
                                                    throws com.synopsys.integration.exception.IntegrationException
        Throws:
        com.synopsys.integration.exception.IntegrationException
      • fromJson

        protected T fromJson​(com.google.gson.JsonObject jsonObject)
      • populateScanInfo

        protected void populateScanInfo​(ScanInfoV1 scanInfoV1,
                                        java.util.function.Consumer<CommonScanInfo> consumer)
                                 throws com.synopsys.integration.exception.IntegrationException
        Throws:
        com.synopsys.integration.exception.IntegrationException
      • populateIssueSummary

        protected void populateIssueSummary​(IssueSummaryV1 issueSummaryV1,
                                            java.util.function.Consumer<CommonIssueSummary> consumer)
                                     throws com.synopsys.integration.exception.IntegrationException
        Throws:
        com.synopsys.integration.exception.IntegrationException
      • createCommonToolInfo

        protected CommonToolInfo createCommonToolInfo​(ToolInfoV1 toolInfoV1)
                                               throws com.synopsys.integration.exception.IntegrationException
        Throws:
        com.synopsys.integration.exception.IntegrationException