01: /*
02: * Licensed to the Apache Software Foundation (ASF) under one or more
03: * contributor license agreements. The ASF licenses this file to You
04: * under the Apache License, Version 2.0 (the "License"); you may not
05: * use this file except in compliance with the License.
06: * You may obtain a copy of the License at
07: *
08: * http://www.apache.org/licenses/LICENSE-2.0
09: *
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 subjectId;
26: /** Short name of the subject of the statistic */
27: private String subjectNameShort;
28: /** Long name of the subject of the statistic */
29: private String subjectNameLong;
30: /** I18N key that describes the type of statistic */
31: private String typeKey;
32: /** The statistical count */
33: private long count;
34:
35: public StatCount(String subjectId, String subjectNameShort,
36: String subjectNameLong, String typeKey, long count) {
37: this .setSubjectId(subjectId);
38: this .setSubjectNameShort(subjectNameShort);
39: this .setSubjectNameLong(subjectNameLong);
40: this .setTypeKey(typeKey);
41: this .setCount(count);
42: }
43:
44: public String getTypeKey() {
45: return typeKey;
46: }
47:
48: public void setTypeKey(String typeKey) {
49: this .typeKey = typeKey;
50: }
51:
52: public long getCount() {
53: return count;
54: }
55:
56: public void setCount(long count) {
57: this .count = count;
58: }
59:
60: public String getSubjectId() {
61: return subjectId;
62: }
63:
64: public void setSubjectId(String subjectId) {
65: this .subjectId = subjectId;
66: }
67:
68: public String getSubjectNameShort() {
69: return subjectNameShort;
70: }
71:
72: public void setSubjectNameShort(String subjectNameShort) {
73: this .subjectNameShort = subjectNameShort;
74: }
75:
76: public String getSubjectNameLong() {
77: return subjectNameLong;
78: }
79:
80: public void setSubjectNameLong(String subjectNameLong) {
81: this.subjectNameLong = subjectNameLong;
82: }
83: }
|