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

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


   * Checks that the validation result is INVALID_ATTRIBUTE_VALUE.
   */
  private static void checkValidation_IAV(AttributeValidationResult result,
      String name, String value) {
    assertEquals(Type.INVALID_ATTRIBUTE_VALUE, result.getType());
    InvalidAttributeValue iav = result.asInvalidAttributeValue();
    assertEquals(name, iav.getName());
    assertEquals(value, iav.getValue());
  }
View Full Code Here


      if (validator == null) {
        return new AttributeNotAllowed(name);
      }
      String value = attribute.getValue();
      if (!validator.validate(value)) {
        return new InvalidAttributeValue(name, value);
      }
    }
    return AttributeValidationResult.VALID;
  }
View Full Code Here

        if (requiredAttributes.contains(name)) {
          return new RemovingRequiredAttribute(name);
        }
      } else {
        if (!validator.validate(value)) {
          return new InvalidAttributeValue(name, value);
        }
      }
    }
    return AttributeValidationResult.VALID;
  }
View Full Code Here

      if (validator == null) {
        return new AttributeNotAllowed(name);
      }
      String value = attribute.getValue();
      if (!validator.validate(value)) {
        return new InvalidAttributeValue(name, value);
      }
    }
    return AttributeValidationResult.VALID;
  }
View Full Code Here

        if (requiredAttributes.contains(name)) {
          return new RemovingRequiredAttribute(name);
        }
      } else {
        if (!validator.validate(value)) {
          return new InvalidAttributeValue(name, value);
        }
      }
    }
    return AttributeValidationResult.VALID;
  }
View Full Code Here

TOP

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

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.