public boolean loadMaster(String category){
if (categoryList == null || category == null) {
return false;
}
for (int i = 0; i < categoryList.size(); i++) {
if (category.equals(categoryList.get(i).categoryCode)) {
CategoryBloc categoryInfo = categoryList.get(i);
int len = categoryInfo.endIndex - categoryInfo.beginIndex + 1;
itemCodeArray = new String[len];
itemNameArray = new String[len];
itemMasterHash = new Hashtable();
int num = 0;
for (int index = categoryInfo.beginIndex; index <= categoryInfo.endIndex; index++, num++) {
itemCodeArray[num] = masterList.get(index).code;
itemNameArray[num] = masterList.get(index).name;
// HashTable作成
itemMasterHash.put(masterList.get(i).name, masterList.get(i).code);
}
break;
}
}
return true;
}
public boolean loadMaster(String... category){
String categoryStr = null;
int numberOfCategory = 0;