Package eu.planets_project.pp.plato.model.tree

Examples of eu.planets_project.pp.plato.model.tree.LibraryRequirement


       
    }
    private void addRequirementProperties(Element node, LibraryRequirement req) {
        addNodeAttributes(node, req);

        LibraryRequirement r = (LibraryRequirement) req;
        if (r.isPredefined()) {
            node.addAttribute("predefined", ""+r.isPredefined());
        }
        if (r.getCategory() != null) {
            node.addElement("category")
            .addAttribute("name", r.getCategory().name());
        }
       
        Element children = node.addElement("refinedBy");
        for(TreeNode n : r.getChildren()) {
            addTreeFragment(children, n);
        }
    }
View Full Code Here


        return true;
    }

    public void addCriterion(Object object) {
        if (object instanceof LibraryRequirement) {
            LibraryRequirement n = (LibraryRequirement)object;
            Leaf l = n.addCriterion();
            l.setName("<criterion name not set>");
            libraryTreeHelper.expand(n);
        }
    }
View Full Code Here

        }
    }

    public void addLibraryRequirement(Object object) {
        if (object instanceof LibraryRequirement) {
            LibraryRequirement n = (LibraryRequirement)object;
            LibraryRequirement node = n.addRequirement();
            node.setName("<requirement name not set>");
            libraryTreeHelper.expand(n);
        }
    }
View Full Code Here

TOP

Related Classes of eu.planets_project.pp.plato.model.tree.LibraryRequirement

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.