/*
* Licensed to the Apache Software Foundation (ASF) under one   *
* or more contributor license agreements.  See the NOTICE file *
* distributed with this work for additional information        *
* regarding copyright ownership.  The ASF licenses this file   *
* to you under the Apache License, Version 2.0 (the            *
* "License"); you may not use this file except in compliance   *
* with the License.  You may obtain a copy of the License at   *
*                                                              *
*   http://www.apache.org/licenses/LICENSE-2.0                 *
*                                                              *
* Unless required by applicable law or agreed to in writing,   *
* software distributed under the License is distributed on an  *
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY       *
* KIND, either express or implied.  See the License for the    *
* specific language governing permissions and limitations      *
* under the License.                                           *
*/

package org.apache.rat.report.claim;

import java.util.Map;


/**
 * This class provides a numerical overview about
 * the report.
 */
public class ClaimStatistic {
    private Map documentCategoryMap, licenseFamilyCodeMap, licenseFamilyNameMap;
    private int numApproved, numUnApproved, numGenerated, numUnknown;

    /**
     * Returns the number of files with approved licenses.
     */
    public int getNumApproved() {
        return numApproved;
    }

    /**
     * Sets the number of files with approved licenses.
     */
    public void setNumApproved(int pNumApproved) {
        numApproved = pNumApproved;
    }

    /**
     * Returns the number of files with unapproved licenses.
     * {@em Note:} This might include files with unknown
     * licenses.
     * @see #getNumUnknown()
     */
    public int getNumUnApproved() {
        return numUnApproved;
    }

    /**
     * Returns the number of files with unapproved licenses.
     * {@em Note:} This might include files with unknown
     * licenses.
     * @see #setNumUnknown(int)
     */
    public void setNumUnApproved(int pNumUnApproved) {
        numUnApproved = pNumUnApproved;
    }

    /**
     * Returns the number of generated files.
     */
    public int getNumGenerated() {
        return numGenerated;
    }

    /**
     * Returns the number of generated files.
     */
    public void setNumGenerated(int pNumGenerated) {
        numGenerated = pNumGenerated;
    }

    /**
     * Returns the number of files, which are neither
     * generated nor have a known license header.
     */
    public int getNumUnknown() {
        return numUnknown;
    }

    /**
     * Sets the number of files, which are neither
     * generated nor have a known license header.
     */
    public void setNumUnknown(int pNumUnknown) {
        numUnknown = pNumUnknown;
    }

    /**
     * Sets a map with the file types. The map keys
     * are file type names and the map values
     * are integers with the number of resources matching
     * the file type.
     */
    public void setDocumentCategoryMap(Map pDocumentCategoryMap) {
        documentCategoryMap = pDocumentCategoryMap;
    }

    /**
     * Returns a map with the file types. The map keys
     * are file type names and the map values
     * are integers with the number of resources matching
     * the file type.
     */
    public Map getDocumentCategoryMap() {
        return documentCategoryMap;
    }

    /**
     * Returns a map with the license family codes. The map
     * keys are license family category names,
     * the map values are integers with the number of resources
     * matching the license family code.
     */
    public Map getLicenseFileCodeMap() {
        return licenseFamilyCodeMap;
    }

    /**
     * Sets a map with the license family codes. The map
     * keys are instances of license family category names and
     * the map values are integers with the number of resources
     * matching the license family code.
     */
    public void setLicenseFileCodeMap(Map pLicenseFamilyCodeMap) {
        licenseFamilyCodeMap = pLicenseFamilyCodeMap;
    }

    /**
     * Returns a map with the license family codes. The map
     * keys are the names of the license families and
     * the map values are integers with the number of resources
     * matching the license family name.
     */
    public Map getLicenseFileNameMap() {
        return licenseFamilyNameMap;
    }

    /**
     * Returns a map with the license family codes. The map
     * keys are the name of the license families and
     * the map values are integers with the number of resources
     * matching the license family name.
     */
    public void setLicenseFileNameMap(Map pLicenseFamilyNameMap) {
        licenseFamilyNameMap = pLicenseFamilyNameMap;
    }
}

@@ -1739,35 +1739,38 @@
 ses.%0A     * 
-%7B@em 
+%3Cem%3E
 Note:
-%7D
+%3C/em%3E
  This might 
@@ -2003,19 +2003,22 @@
   * 
-%7B@em 
+%3Cem%3E
 Note:
-%7D
+%3C/em%3E
  Thi

Fix wrong Javadoc tags.