Package com.volantis.mcs.policies.variants.selection

Examples of com.volantis.mcs.policies.variants.selection.CategoryReference


        List categoryValues = ((PolicyEditorContext) context).getCategoryValues();
        if (categoryValues != null && !categoryValues.isEmpty()) {
            Iterator it = categoryValues.iterator();
            while (it.hasNext()) {
                String value = (String) it.next();
                CategoryReference categoryRef =
                        POLICY_FACTORY.createCategoryReference(value);
                categories.add(categoryRef);
            }
        }
View Full Code Here


            // Append the categories
            List refs = selection.getModifiableCategoryReferences();
            if (refs != null && !refs.isEmpty()) {
                Iterator it = refs.iterator();
                while (it.hasNext()) {
                    CategoryReference categoryReference =
                            (CategoryReference) it.next();
                    appendText(categoryReference.getCategoryName());
                }
            }

            // Append the devices
            refs = selection.getModifiableDeviceReferences();
View Full Code Here

        List categoryValues = context.getCategoryValues();
        if (categoryValues != null && !categoryValues.isEmpty()) {
            Iterator it = categoryValues.iterator();
            while (it.hasNext()) {
                String value = (String) it.next();
                CategoryReference categoryRef =
                        policyFactory.createCategoryReference(value);
                categories.add(categoryRef);
            }
        }
        return categories;
View Full Code Here

     *         was null and an entry had to be added.
     */
    private Map targetVariantAtCategories(
            Variant variant, List categories, Map category2Variant) {
        for (int j = 0; j < categories.size(); j++) {
            CategoryReference reference = (CategoryReference) categories.get(j);
            String categoryName = reference.getCategoryName();
            if (category2Variant == null) {
                category2Variant = new HashMap();
            }
            category2Variant.put(categoryName, variant);
        }
View Full Code Here

TOP

Related Classes of com.volantis.mcs.policies.variants.selection.CategoryReference

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.