Search in sources :

Example 1 with BlueShareEffectCategory

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;
}
Also used : Element(electric.xml.Element) BlueShareEffectCategory(blue.tools.blueShare.effects.BlueShareEffectCategory) Elements(electric.xml.Elements)

Aggregations

BlueShareEffectCategory (blue.tools.blueShare.effects.BlueShareEffectCategory)1 Element (electric.xml.Element)1 Elements (electric.xml.Elements)1