01: /*
02: * Hammurapi
03: * Automated Java code review system.
04: * Copyright (C) 2004 Johannes Bellert
05: *
06: * This program is free software; you can redistribute it and/or modify
07: * it under the terms of the GNU General Public License as published by
08: * the Free Software Foundation; either version 2 of the License, or
09: * (at your option) any later version.
10: *
11: * This program is distributed in the hope that it will be useful,
12: * but WITHOUT ANY WARRANTY; without even the implied warranty of
13: * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14: * GNU General Public License for more details.
15: *
16: * You should have received a copy of the GNU General Public License
17: * along with this program; if not, write to the Free Software
18: * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
19: *
20: * URL: http://www.hammurapi.com
21: * e-Mail: Johannes.Bellert@ercgroup.com
22: *
23: * * Created on Apr 26, 2004
24: *
25: */
26: package org.hammurapi.inspectors.metrics;
27:
28: import java.util.Vector;
29:
30: /**
31: * @author Johannes Bellert
32: *
33: */
34: public class PackageOccuranceInLayer {
35:
36: private String packageName = "";
37: private int occurance = 1;
38: private Vector layerList = new Vector();
39:
40: public PackageOccuranceInLayer(String _name) {
41: super ();
42: packageName = _name;
43: }
44:
45: public boolean equals(Object poil) {
46:
47: return packageName
48: .equals(((PackageOccuranceInLayer) poil).packageName);
49: }
50:
51: public String toString() {
52: return packageName + " - " + occurance;
53: }
54:
55: /**
56: * @return Returns the occurance.
57: */
58: public int getOccurance() {
59: return occurance;
60: }
61:
62: /**
63: * @param occurance The occurance to set.
64: */
65: public void setOccurance(int occurance) {
66: this .occurance = occurance;
67: }
68:
69: /**
70: * @return Returns the packageName.
71: */
72: public String getPackageName() {
73: return packageName;
74: }
75:
76: /**
77: * @param packageName The packageName to set.
78: */
79: public void setPackageName(String packageName) {
80: this .packageName = packageName;
81: }
82:
83: /**
84: * @return Returns the layerList.
85: */
86: public Vector getLayerList() {
87: return layerList;
88: }
89:
90: /**
91: * @param layerList The layerList to set.
92: */
93: public void setLayerList(Vector layerList) {
94: this.layerList = layerList;
95: }
96: }
|