Package eu.planets_project.pp.plato.validators

Examples of eu.planets_project.pp.plato.validators.TreeValidator.validate()


     */
    public boolean validate(boolean showValidationErrors) {
        // make sure that the sum of all subnodes/leaves of each node is 1.0
        ITreeValidator validator = new TreeValidator();
        // We don't need the last parameter because all nodes are expanded anyway
        return validator.validate(selectedPlan.getTree().getRoot(), this, null, showValidationErrors);

    }

    /**
     * @see INodeValidator#validateNode(TreeNode, List, List)
View Full Code Here


        }
       
        ITreeValidator validator = new TreeValidator();
        List<TreeNode> nodes = new ArrayList<TreeNode>();
       
        boolean valid = validator.validate(selectedPlan.getTree().getRoot(),
                this, nodes, showValidationErrors);
        if (!valid) {
            if (leaves == null) {
                leaves = new ArrayList<Leaf>();
            } else {
View Full Code Here

     * @see eu.planets_project.pp.plato.action.workflow.AbstractWorkflowStep#validate()
     */
    public boolean validate(boolean showValidationErrors) {
        ITreeValidator validator = new TreeValidator();
        List<TreeNode> nodes = new ArrayList<TreeNode>();
        boolean validate = validator.validate(selectedPlan.getTree().getRoot(),
                this, nodes, showValidationErrors);
        if (!validate) {
            initLeafLists();
            //All non-validating leaves should be in the list nodes
            for (TreeNode node : nodes) {
View Full Code Here

     * @see eu.planets_project.pp.plato.action.workflow.AbstractWorkflowStep#validate()
     */
    public boolean validate(boolean showValidationErrors) {
        ITreeValidator validator = new TreeValidator();
        List<TreeNode> nodes = new ArrayList<TreeNode>();
        boolean valid = validator.validate(selectedPlan.getTree().getRoot(),
                this, nodes, showValidationErrors);
        if (!valid) {
            if (leaves == null) {
                leaves = new ArrayList<Leaf>();
            } else {
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. 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.