Package com.volantis.devrep.device.api.xml.definitions

Examples of com.volantis.devrep.device.api.xml.definitions.Category


            dumpTypeDeclaration(typeDeclaration, buffer);

        }
        Iterator categories = definitionSet.categories();
        while (categories.hasNext()) {
            Category category = (Category) categories.next();
            dumpCategory(category, buffer);
        }

    }
View Full Code Here


        List names = new ArrayList();
        Definitions definitions = createDefinitions();
        Iterator categories = definitions.categories();
        while (categories.hasNext()) {
            Category category = (Category) categories.next();
            extractCategoryPolicyNames(category, names);
        }

        // ... plus the fake fallback policy name.
        // Note that this will have a bit of a strange ordering, but I don't
View Full Code Here

            RepositoryConnection connection, String categoryName)
            throws RepositoryException {

        List names = new ArrayList();
        Definitions definitions = createDefinitions();
        Category category = definitions.getCategory(categoryName);
        if (category != null) {
            extractCategoryPolicyNames(category, names);
        }

        // ... plus the fake fallback policy name, if the category is the
View Full Code Here

        final Definitions definitions = createDefinitions();
        final Iterator categoriesIter = definitions.categories();
        final List categoryNames = new LinkedList();
        while (categoriesIter.hasNext()) {
            final Category category = (Category) categoriesIter.next();
            categoryNames.add(category.getName());
        }
        return new CollectionRepositoryEnumeration(categoryNames);
    }
View Full Code Here

    private void addDefinitionSetCategoriesToDefinitions(
            DefinitionSet definitionSet, Definitions definitions) {
        Iterator categories = definitionSet.categories();
        while (categories.hasNext()) {
            Category category = (Category) categories.next();
            definitions.addCategory(category);
        }
    }
View Full Code Here

                final Locale locale)
            throws RepositoryException {

        DefaultCategoryDescriptor descriptor = null;

        final Category category = definitions.getCategory(categoryName);
        if (category != null) {
            // Create the basic category descriptor
            descriptor = new DefaultCategoryDescriptor();

            // Set the descriptive name
View Full Code Here

    private Map nameToCategoryMap = new HashMap();

    private Map nameToPolicyMap;

    public void addCategory(Category category) {
        Category old = (Category)
                nameToCategoryMap.put(category.getName(), category);
        if (old != null) {
            throw new IllegalStateException("cannot merge categories");
        }
View Full Code Here

    public Policy getPolicy(String policyName) {
        if (nameToPolicyMap == null) {
            nameToPolicyMap = new HashMap();
            Iterator categories = categories();
            while (categories.hasNext()) {
                Category category = (Category) categories.next();
                Iterator policies = category.policies();
                while (policies.hasNext()) {
                    Policy policy = (Policy) policies.next();
                    nameToPolicyMap.put(policy.getName(), policy);
                }
            }
View Full Code Here

TOP

Related Classes of com.volantis.devrep.device.api.xml.definitions.Category

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.