2002-05-20 18:53:10 +00:00
|
|
|
/*
|
|
|
|
*****************************************************************************
|
2004-06-29 20:42:22 +00:00
|
|
|
* Copyright (C) 2000-2004, International Business Machines Corporation and *
|
2002-05-20 18:53:10 +00:00
|
|
|
* 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.
|
|
|
|
*
|
2004-06-29 20:42:22 +00:00
|
|
|
* @author Jared Jackson
|
2002-05-20 18:53:10 +00:00
|
|
|
* @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";
|
|
|
|
}
|
|
|
|
}
|