Package com.google.api.explorer.client.editors.Validator

Examples of com.google.api.explorer.client.editors.Validator.ValidationResult


    this.innerEditor = innerEditor;
  }

  @Override
  ValidationResult isValid() {
    ValidationResult innerValid = innerEditor.isValid();
    if (innerValid.getType() != ValidationResult.Type.VALID) {
      return innerValid;
    } else {
      return super.isValid();
    }
  }
View Full Code Here


  }

  /** Whether all the values are valid for all the validators. */
  ValidationResult isValid() {
    for (Validator validator : validators) {
      ValidationResult result = validator.isValid(getValue());
      if (result.getType() != ValidationResult.Type.VALID) {
        return result;
      }
    }
    return SimpleValidationResult.STATUS_VALID;
  }
View Full Code Here

TOP

Related Classes of com.google.api.explorer.client.editors.Validator.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.