类 ValidationErrors

java.lang.Object
cn.taketoday.context.properties.bind.validation.ValidationErrors
所有已实现的接口:
Iterable<ObjectError>

public class ValidationErrors extends Object implements Iterable<ObjectError>
A collection of ObjectErrors caused by bind validation failures. Where possible, included FieldErrors will be OriginProvider.
从以下版本开始:
4.0
作者:
Phillip Webb, Madhura Bhave, Harry Yang
  • 方法详细资料

    • getName

      public ConfigurationPropertyName getName()
      Return the name of the item that was being validated.
      返回:
      the name of the item
    • getBoundProperties

      public Set<ConfigurationProperty> getBoundProperties()
      Return the properties that were bound before validation failed.
      返回:
      the boundProperties
    • hasErrors

      public boolean hasErrors()
    • getAllErrors

      public List<ObjectError> getAllErrors()
      Return the list of all validation errors.
      返回:
      the errors
    • iterator

      public Iterator<ObjectError> iterator()
      指定者:
      iterator 在接口中 Iterable<ObjectError>