Package org.waveprotocol.wave.model.experimental.schema.AttributeValidationResult

Examples of org.waveprotocol.wave.model.experimental.schema.AttributeValidationResult.MissingRequiredAttribute


  /**
   * Checks that the validation result is MISSING_REQUIRED_ATTRIBUTE.
   */
  private static void checkValidation_MRA(AttributeValidationResult result, String name) {
    assertEquals(Type.MISSING_REQUIRED_ATTRIBUTE, result.getType());
    MissingRequiredAttribute mra = result.asMissingRequiredAttribute();
    assertEquals(name, mra.getName());
  }
View Full Code Here


   *         if not, why it is not
   */
  AttributeValidationResult validate(Attributes attributes) {
    for (String name : requiredAttributes) {
      if (!attributes.containsKey(name)) {
        return new MissingRequiredAttribute(name);
      }
    }
    for (Map.Entry<String, String> attribute : attributes.entrySet()) {
      String name = attribute.getKey();
      ValueValidator validator = valueValidators.get(name);
View Full Code Here

   *         if not, why it is not
   */
  AttributeValidationResult validate(Attributes attributes) {
    for (String name : requiredAttributes) {
      if (!attributes.containsKey(name)) {
        return new MissingRequiredAttribute(name);
      }
    }
    for (Map.Entry<String, String> attribute : attributes.entrySet()) {
      String name = attribute.getKey();
      ValueValidator validator = valueValidators.get(name);
View Full Code Here

TOP

Related Classes of org.waveprotocol.wave.model.experimental.schema.AttributeValidationResult.MissingRequiredAttribute

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.