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