scuffed-code/tools/unicodetools/com/ibm/rbm/ScanResult.java

52 lines
1.2 KiB
Java
Raw Normal View History

/*
*****************************************************************************
* 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";
}
}