Search in sources :

Example 1 with BlueShareSoundObjectCategory

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

Aggregations

BlueShareSoundObjectCategory (blue.tools.blueShare.soundObjects.BlueShareSoundObjectCategory)1 Element (electric.xml.Element)1 Elements (electric.xml.Elements)1