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

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


  /**
   * Checks that the validation result is REMOVING_REQUIRED_ATTRIBUTE.
   */
  private static void checkValidation_RRA(AttributeValidationResult result, String name) {
    assertEquals(Type.REMOVING_REQUIRED_ATTRIBUTE, result.getType());
    RemovingRequiredAttribute rra = result.asRemovingRequiredAttribute();
    assertEquals(name, rra.getName());
  }
View Full Code Here


        return new AttributeNotAllowed(name);
      }
      String value = update.getNewValue(i);
      if (value == null) {
        if (requiredAttributes.contains(name)) {
          return new RemovingRequiredAttribute(name);
        }
      } else {
        if (!validator.validate(value)) {
          return new InvalidAttributeValue(name, value);
        }
View Full Code Here

        return new AttributeNotAllowed(name);
      }
      String value = update.getNewValue(i);
      if (value == null) {
        if (requiredAttributes.contains(name)) {
          return new RemovingRequiredAttribute(name);
        }
      } else {
        if (!validator.validate(value)) {
          return new InvalidAttributeValue(name, value);
        }
View Full Code Here

TOP

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

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.