net.fortuna.ical4j.model.Property.validate()方法的使用及代码示例

x33g5p2x  于2022-01-26 转载在 其他  
字(4.3k)|赞(0)|评价(0)|浏览(100)

本文整理了Java中net.fortuna.ical4j.model.Property.validate()方法的一些代码示例,展示了Property.validate()的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Property.validate()方法的具体详情如下:
包路径:net.fortuna.ical4j.model.Property
类名称:Property
方法名:validate

Property.validate介绍

[英]Perform validation on a property.
[中]对属性执行验证。

代码示例

代码示例来源:origin: org.bedework.ical4j/ical4j

/**
 * Invoke validation on the calendar properties in its current state.
 * @throws ValidationException where any of the calendar properties is not in a valid state
 */
private void validateProperties() throws ValidationException {
  for (final Property property : getProperties()) {
    property.validate();
  }
}

代码示例来源:origin: org.mnode.ical4j/ical4j

/**
 * Invoke validation on the component properties in its current state.
 *
 * @throws ValidationException where any of the component properties is not in a valid state
 */
protected final void validateProperties() throws ValidationException {
  for (final Property property : getProperties()) {
    property.validate();
  }
}

代码示例来源:origin: ical4j/ical4j

/**
 * Invoke validation on the component properties in its current state.
 *
 * @throws ValidationException where any of the component properties is not in a valid state
 */
protected final void validateProperties() throws ValidationException {
  for (final Property property : getProperties()) {
    property.validate();
  }
}

代码示例来源:origin: ical4j/ical4j

/**
 * Invoke validation on the calendar properties in its current state.
 * @throws ValidationException where any of the calendar properties is not in a valid state
 */
private void validateProperties() throws ValidationException {
  for (final Property property : getProperties()) {
    property.validate();
  }
}

代码示例来源:origin: ical4j/ical4j

/**
 * @throws ValidationException
 */
public final void testValidation() throws ValidationException {
  property.validate();
}

代码示例来源:origin: org.mnode.ical4j/ical4j

/**
 * Invoke validation on the calendar properties in its current state.
 * @throws ValidationException where any of the calendar properties is not in a valid state
 */
private void validateProperties() throws ValidationException {
  for (final Property property : getProperties()) {
    property.validate();
  }
}

代码示例来源:origin: org.bedework.ical4j/ical4j

/**
 * Invoke validation on the component properties in its current state.
 *
 * @throws ValidationException where any of the component properties is not in a valid state
 */
protected final void validateProperties() throws ValidationException {
  for (final Property property : getProperties()) {
    property.validate();
  }
}

代码示例来源:origin: net.oneandone.ical4j/ical4j

/**
 * Invoke validation on the component properties in its current state.
 *
 * @throws ValidationException where any of the component properties is not in a valid state
 */
protected final void validateProperties() throws ValidationException {
  for (final Property property : getProperties()) {
    property.validate();
  }
}

代码示例来源:origin: net.oneandone.ical4j/ical4j

/**
 * Invoke validation on the calendar properties in its current state.
 * @throws ValidationException where any of the calendar properties is not in a valid state
 */
private void validateProperties() throws ValidationException {
  for (final Property property : getProperties()) {
    property.validate();
  }
}

代码示例来源:origin: org.bedework/bw-ical4j-cl

/**
 * Invoke validation on the calendar properties in its current state.
 * @throws ValidationException where any of the calendar properties is not in a valid state
 */
private void validateProperties() throws ValidationException {
  for (final Iterator i = getProperties().iterator(); i.hasNext();) {
    final Property property = (Property) i.next();
    property.validate();
  }
}

代码示例来源:origin: org.bedework/bw-ical4j-cl

/**
 * Invoke validation on the component properties in its current state.
 * @throws ValidationException where any of the component properties is not in a valid state
 */
protected final void validateProperties() throws ValidationException {
  for (final Iterator i = getProperties().iterator(); i.hasNext();) {
    final Property property = (Property) i.next();
    property.validate();
  }
}

代码示例来源:origin: ical4j/ical4j

/**
   * @param property
   */
  protected void assertValidationException(final Property property) {
    try {
      property.validate();
    } catch (ValidationException ve) {
      LOG.debug("Exception caught", ve);
      return;
    }
    fail("ValidationException should be thrown!");
  }
}

代码示例来源:origin: ical4j/ical4j

/**
 * @throws ValidationException
 */
public final void testRelaxedValidation() throws ValidationException {
  CompatibilityHints.setHintEnabled(
      CompatibilityHints.KEY_RELAXED_VALIDATION, true);
  property.validate();
}

代码示例来源:origin: ical4j/ical4j

/**
 * 
 */
public final void testValidationException() {
  try {
    property.validate();
    fail("Should throw ValidationException");
  }
  catch (ValidationException e) {
    e.printStackTrace();
  }
}

相关文章