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