01: /*
02: *****************************************************************************
03: * Copyright (C) 2000-2004, International Business Machines Corporation and *
04: * others. All Rights Reserved. *
05: *****************************************************************************
06: */
07: package com.ibm.rbm;
08:
09: import java.util.*;
10:
11: /**
12: * This class represents the results found for each resource key while
13: * performing the code scan done by RBReporter.
14: *
15: * @author Jared Jackson
16: * @see com.ibm.rbm.RBReporter
17: */
18: public class ScanResult {
19: BundleItem item;
20: Vector occurances;
21:
22: ScanResult(BundleItem item) {
23: this .item = item;
24: occurances = new Vector();
25: }
26:
27: BundleItem getItem() {
28: return item;
29: }
30:
31: int getNumberOccurances() {
32: return occurances.size();
33: }
34:
35: Vector getOccurances() {
36: return occurances;
37: }
38:
39: void addOccurance(Occurance o) {
40: occurances.addElement(o);
41: }
42:
43: String getName() {
44: return item.getKey();
45: }
46:
47: String getGroupName() {
48: if (item.getParentGroup() != null)
49: return item.getParentGroup().getName();
50: return "Unknown";
51: }
52: }
|