blob: 91a2c0108474427d4f2f8d9928758d3eb6466571 [file] [log] [blame]
/*
*****************************************************************************
* Copyright (C) 2000-2004, International Business Machines Corporation and *
* others. All Rights Reserved. *
*****************************************************************************
*/
package com.ibm.rbm;
import java.util.*;
/**
* This class represents the results found for each resource key while
* performing the code scan done by RBReporter.
*
* @author Jared Jackson
* @see com.ibm.rbm.RBReporter
*/
public class ScanResult {
BundleItem item;
Vector occurances;
ScanResult(BundleItem item) {
this.item = item;
occurances = new Vector();
}
BundleItem getItem() {
return item;
}
int getNumberOccurances() {
return occurances.size();
}
Vector getOccurances() {
return occurances;
}
void addOccurance(Occurance o) {
occurances.addElement(o);
}
String getName() {
return item.getKey();
}
String getGroupName() {
if (item.getParentGroup() != null) return item.getParentGroup().getName();
return "Unknown";
}
}