001/*-------------------------------------------------------------------------+ 002| | 003| Copyright (c) 2009-2019 CQSE GmbH | 004| | 005+-------------------------------------------------------------------------*/ 006package org.conqat.engine.index.shared; 007 008import java.io.Serializable; 009 010import com.fasterxml.jackson.annotation.JsonProperty; 011import org.conqat.lib.commons.js_export.ExportToJavaScript; 012 013/** 014 * Base class for finding summary info objects. 015 */ 016@ExportToJavaScript 017public abstract class FindingsSummaryInfoBase implements Serializable { 018 019 private static final long serialVersionUID = 1L; 020 021 /** The overall number of findings in the contained group infos */ 022 @JsonProperty("count") 023 protected int count = 0; 024 025 /** The number of red findings */ 026 @JsonProperty("countRed") 027 protected int countRed = 0; 028 029 /** @see #count */ 030 public int getCount() { 031 return count; 032 } 033 034 /** @see #countRed */ 035 public int getCountRed() { 036 return countRed; 037 } 038 039}