KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > apache > roller > pojos > StatCount


1 /*
2 * Licensed to the Apache Software Foundation (ASF) under one or more
3 * contributor license agreements. The ASF licenses this file to You
4 * under the Apache License, Version 2.0 (the "License"); you may not
5 * use this file except in compliance with the License.
6 * You may obtain a copy of the License at
7 *
8 * http://www.apache.org/licenses/LICENSE-2.0
9 *
10 * Unless required by applicable law or agreed to in writing, software
11 * distributed under the License is distributed on an "AS IS" BASIS,
12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 * See the License for the specific language governing permissions and
14 * limitations under the License. For additional information regarding
15 * copyright in this work, please see the NOTICE file in the top level
16 * directory of this distribution.
17 */

18 package org.apache.roller.pojos;
19
20 /**
21  * Represents a statistical count.
22  */

23 public class StatCount {
24     /** Id of the subject of the statistic */
25     private String JavaDoc subjectId;
26     /** Short name of the subject of the statistic */
27     private String JavaDoc subjectNameShort;
28     /** Long name of the subject of the statistic */
29     private String JavaDoc subjectNameLong;
30     /** I18N key that describes the type of statistic */
31     private String JavaDoc typeKey;
32     /** The statistical count */
33     private long count;
34     
35     public StatCount(String JavaDoc subjectId, String JavaDoc subjectNameShort, String JavaDoc subjectNameLong, String JavaDoc typeKey, long count) {
36         this.setSubjectId(subjectId);
37         this.setSubjectNameShort(subjectNameShort);
38         this.setSubjectNameLong(subjectNameLong);
39         this.setTypeKey(typeKey);
40         this.setCount(count);
41     }
42     public String JavaDoc getTypeKey() {
43         return typeKey;
44     }
45     public void setTypeKey(String JavaDoc typeKey) {
46         this.typeKey = typeKey;
47     }
48     public long getCount() {
49         return count;
50     }
51     public void setCount(long count) {
52         this.count = count;
53     }
54     public String JavaDoc getSubjectId() {
55         return subjectId;
56     }
57     public void setSubjectId(String JavaDoc subjectId) {
58         this.subjectId = subjectId;
59     }
60     public String JavaDoc getSubjectNameShort() {
61         return subjectNameShort;
62     }
63     public void setSubjectNameShort(String JavaDoc subjectNameShort) {
64         this.subjectNameShort = subjectNameShort;
65     }
66     public String JavaDoc getSubjectNameLong() {
67         return subjectNameLong;
68     }
69     public void setSubjectNameLong(String JavaDoc subjectNameLong) {
70         this.subjectNameLong = subjectNameLong;
71     }
72 }
73
Popular Tags