Package eu.planets_project.pp.plato.validators

Examples of eu.planets_project.pp.plato.validators.ITreeValidator


    /**
     * @see AbstractWorkflowStep#validate(boolean)
     */
    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);

    }
View Full Code Here


        if (evaluationStatus != EvaluationStatus.COMPLETE) {
            FacesMessages.instance().add(FacesMessage.SEVERITY_ERROR, "Experiments have not been conducted.");
            return false;
        }
       
        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

Related Classes of eu.planets_project.pp.plato.validators.ITreeValidator

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.