Package org.openbel.framework.core.compiler

Examples of org.openbel.framework.core.compiler.ValidationResult


                numWarnings += numAnnoDefErrors;
            } else {
                numErrors += numAnnoDefErrors;
            }

            ValidationResult vr = validationService.validate(document);
            for (String e : vr.getErrors()) {
                if (permissive) {
                    numWarnings++;
                    if (!quiet) {
                        reportable.warning("VALIDATION WARNING: " + e);
                    }
                } else {
                    numErrors++;
                    if (!quiet) {
                        reportable.error("VALIDATION ERROR: " + e);
                    }
                }
            }

            for (String w : vr.getWarnings()) {
                if (pedantic) {
                    numErrors++;
                    if (!quiet) {
                        reportable.error("VALIDATION ERROR: " + w);
                    }
View Full Code Here

TOP

Related Classes of org.openbel.framework.core.compiler.ValidationResult

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.