Package org.apache.cayenne.project.validator

Examples of org.apache.cayenne.project.validator.Validator.validate()


        performAction(ValidationDisplayHandler.WARNING);
    }

    public synchronized void performAction(int warningLevel) {
        Validator val = getCurrentProject().getValidator();
        int validationCode = val.validate();

        // If no serious errors, perform save.
        if (validationCode < ValidationDisplayHandler.ERROR) {
            try {
                if (!saveAll()) {
View Full Code Here


    /**
   * Validates project for possible conflicts and incomplete mappings.
   */
  public void performAction(ActionEvent e) {
    Validator val = getCurrentProject().getValidator();
    int validationCode = val.validate();

    // If there were errors or warnings at validation, display them
    if (validationCode >= ValidationDisplayHandler.WARNING) {
      ValidatorDialog.showDialog(Application.getFrame(), val);
    }
View Full Code Here

        // instead of doing it on the whole project

        Validator validator = ((ProjectController) getParent())
                .getProject()
                .getValidator();
        int validationCode = validator.validate();
        if (validationCode >= ValidationDisplayHandler.WARNING) {

            Iterator it = validator.validationResults().iterator();
            while (it.hasNext()) {
                ValidationInfo nextProblem = (ValidationInfo) it.next();
View Full Code Here

    /**
   * Validates project for possible conflicts and incomplete mappings.
   */
  public void performAction(ActionEvent e) {
    Validator val = getCurrentProject().getValidator();
    int validationCode = val.validate();

    // If there were errors or warnings at validation, display them
    if (validationCode >= ValidationDisplayHandler.WARNING) {
      ValidatorDialog.showDialog(Application.getFrame(), val);
    }
View Full Code Here

        performAction(ValidationDisplayHandler.WARNING);
    }

    public synchronized void performAction(int warningLevel) {
        Validator val = getCurrentProject().getValidator();
        int validationCode = val.validate();

        // If no serious errors, perform save.
        if (validationCode < ValidationDisplayHandler.ERROR) {
            try {
                if (!saveAll()) {
View Full Code Here

        // instead of doing it on the whole project

        Validator validator = ((ProjectController) getParent())
                .getProject()
                .getValidator();
        int validationCode = validator.validate();
        if (validationCode >= ValidationDisplayHandler.WARNING) {

            for (ValidationInfo nextProblem : validator.validationResults()) {
                Entity failedEntity = null;
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.