Package edu.brown.catalog.special

Examples of edu.brown.catalog.special.MultiAttributeCatalogType


            assert (parent.getParent() != null);
            key = parent.getParent().getName() + PARENT_DELIMITER + parent.getName();

            // SPECIAL CASE: MultiAttributeCatalogType
        } else if (catalog_item instanceof MultiAttributeCatalogType) {
            MultiAttributeCatalogType multicatalog = (MultiAttributeCatalogType) catalog_item;
            key = parent.getName() + MULTIATTRIBUTE_DELIMITER + multicatalog.getPrefix();
        } else {
            key = parent.getName();
        }
        assert (key.isEmpty() == false);
        stringer.key(key);

        // SPECIAL CASE: MultiAttributeCatalogType
        if (catalog_item instanceof MultiAttributeCatalogType) {
            MultiAttributeCatalogType multicatalog = (MultiAttributeCatalogType) catalog_item;
            stringer.array();
            Iterator<? extends CatalogType> it = multicatalog.iterator();
            while (it.hasNext()) {
                // We support nested MultiAttribute objects...
                CatalogKey.createKey(it.next(), stringer);
            } // WHILE
            stringer.endArray();
View Full Code Here


        CatalogType parent = catalog_item.getParent();
        ret = parent.getName() + PARENT_DELIMITER;

        // Special Case: MultiAttributeCatalogType
        if (catalog_item instanceof MultiAttributeCatalogType) {
            MultiAttributeCatalogType multicatalog = (MultiAttributeCatalogType) catalog_item;
            ret += multicatalog.getPrefix();
            for (Object sub_item : multicatalog) {
                ret += MULTIATTRIBUTE_DELIMITER + ((CatalogType) sub_item).getName();
            } // FOR
        } else {
            ret += catalog_item.getName();
View Full Code Here

TOP

Related Classes of edu.brown.catalog.special.MultiAttributeCatalogType

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.