Return-Path: X-Original-To: apmail-creadur-commits-archive@www.apache.org Delivered-To: apmail-creadur-commits-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id B0FBC10207 for ; Sun, 8 Dec 2013 21:29:18 +0000 (UTC) Received: (qmail 876 invoked by uid 500); 8 Dec 2013 21:29:18 -0000 Delivered-To: apmail-creadur-commits-archive@creadur.apache.org Received: (qmail 848 invoked by uid 500); 8 Dec 2013 21:29:18 -0000 Mailing-List: contact commits-help@creadur.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@creadur.apache.org Delivered-To: mailing list commits@creadur.apache.org Received: (qmail 841 invoked by uid 99); 8 Dec 2013 21:29:18 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 08 Dec 2013 21:29:18 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=5.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.4] (HELO eris.apache.org) (140.211.11.4) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 08 Dec 2013 21:29:16 +0000 Received: from eris.apache.org (localhost [127.0.0.1]) by eris.apache.org (Postfix) with ESMTP id DD7D2238888F; Sun, 8 Dec 2013 21:28:56 +0000 (UTC) Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: svn commit: r1549295 - /creadur/rat/branches/gsoc/apache-rat-core/src/main/java/org/apache/rat/report/claim/ClaimStatistic.java Date: Sun, 08 Dec 2013 21:28:56 -0000 To: commits@creadur.apache.org From: rdonkin@apache.org X-Mailer: svnmailer-1.0.9 Message-Id: <20131208212856.DD7D2238888F@eris.apache.org> X-Virus-Checked: Checked by ClamAV on apache.org Author: rdonkin Date: Sun Dec 8 21:28:56 2013 New Revision: 1549295 URL: http://svn.apache.org/r1549295 Log: Format Code. Modified: creadur/rat/branches/gsoc/apache-rat-core/src/main/java/org/apache/rat/report/claim/ClaimStatistic.java Modified: creadur/rat/branches/gsoc/apache-rat-core/src/main/java/org/apache/rat/report/claim/ClaimStatistic.java URL: http://svn.apache.org/viewvc/creadur/rat/branches/gsoc/apache-rat-core/src/main/java/org/apache/rat/report/claim/ClaimStatistic.java?rev=1549295&r1=1549294&r2=1549295&view=diff ============================================================================== --- creadur/rat/branches/gsoc/apache-rat-core/src/main/java/org/apache/rat/report/claim/ClaimStatistic.java (original) +++ creadur/rat/branches/gsoc/apache-rat-core/src/main/java/org/apache/rat/report/claim/ClaimStatistic.java Sun Dec 8 21:28:56 2013 @@ -1,156 +1,149 @@ /* -* 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. * -*/ + * 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. + * 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. - * Note: This might include files with unknown - * licenses. - * @see #getNumUnknown() - */ - public int getNumUnApproved() { - return numUnApproved; - } - - /** - * Returns the number of files with unapproved licenses. - * 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; - } + 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. Note: This + * might include files with unknown licenses. + * + * @see #getNumUnknown() + */ + public int getNumUnApproved() { + return numUnApproved; + } + + /** + * Returns the number of files with unapproved licenses. 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; + } }