Uses of Interface
org.apache.cayenne.validation.ValidationFailure
-
Uses of ValidationFailure in org.apache.cayenne.configuration
Modifier and TypeFieldDescriptionprotected Collection
<ValidationFailure> ConfigurationTree.loadFailures
ModifierConstructorDescriptionConfigurationTree
(T rootNode, Collection<ValidationFailure> loadFailures) -
Uses of ValidationFailure in org.apache.cayenne.validation
Modifier and TypeClassDescriptionclass
ValidationFailure implementation that described a failure of a single named property of a Java Bean object.class
Represents a generic validation failure that contains failed object and a message describing the failure.Modifier and TypeMethodDescriptionstatic ValidationFailure
BeanValidationFailure.validateJavaClassName
(Object bean, String attribute, String identifier) A utility method that checks that a given string is a valid Java full class name, returning a non-null ValidationFailure if this is not so.static ValidationFailure
BeanValidationFailure.validateMandatory
(Object bean, String attribute) static ValidationFailure
BeanValidationFailure.validateMandatory
(Object bean, String attribute, Object value) static ValidationFailure
BeanValidationFailure.validateNotEmpty
(Object bean, String attribute, String value) A utility method that returns a ValidationFailure if a string is either null or has a length of zero; otherwise returns null.static ValidationFailure
BeanValidationFailure.validateNotEmpty
(Object bean, String attribute, Collection<?> value) Returns a ValidationFailure if a collection attribute of an object is null or empty.static ValidationFailure
BeanValidationFailure.validateNotNull
(Object bean, String attribute, Object value) Modifier and TypeMethodDescriptionValidationResult.getFailures()
Returns all failures added to this result, or empty list is result has no failures.ValidationResult.getFailures
(Object source) Returns all failures related to thesource
object, or an empty list if there are no such failures.Modifier and TypeMethodDescriptionvoid
ValidationResult.addFailure
(ValidationFailure failure) Add a failure to the validation result.