use of blue.tools.blueShare.instruments.BlueShareInstrumentCategory in project blue by kunstmusik.
the class BlueShareRemoteCaller method getSubCategories.
private static BlueShareInstrumentCategory[] getSubCategories(Element parent) {
Elements categories = parent.getElements();
BlueShareInstrumentCategory[] iCategories = new BlueShareInstrumentCategory[categories.size()];
int i = 0;
int catId;
String name;
Element temp;
BlueShareInstrumentCategory[] tempCategories;
while (categories.hasMoreElements()) {
temp = categories.next();
catId = Integer.parseInt(temp.getAttribute("instrumentCategoryId").getValue());
name = temp.getAttribute("name").getValue();
// description = temp.getElement("description").getTextString();
tempCategories = getSubCategories(temp);
iCategories[i] = new BlueShareInstrumentCategory(catId, name, null, tempCategories);
i++;
}
return iCategories;
}
Aggregations