Uses of Interface
org.apache.cayenne.validation.ValidationFailure
Packages that use ValidationFailure
-
Uses of ValidationFailure in org.apache.cayenne.configuration
Fields in org.apache.cayenne.configuration with type parameters of type ValidationFailureModifier and TypeFieldDescriptionprotected Collection<ValidationFailure>ConfigurationTree.loadFailuresMethods in org.apache.cayenne.configuration that return types with arguments of type ValidationFailureConstructor parameters in org.apache.cayenne.configuration with type arguments of type ValidationFailureModifierConstructorDescriptionConfigurationTree(T rootNode, Collection<ValidationFailure> loadFailures) -
Uses of ValidationFailure in org.apache.cayenne.validation
Classes in org.apache.cayenne.validation that implement ValidationFailureModifier and TypeClassDescriptionclassValidationFailure implementation that described a failure of a single named property of a Java Bean object.classRepresents a generic validation failure that contains failed object and a message describing the failure.Methods in org.apache.cayenne.validation that return ValidationFailureModifier and TypeMethodDescriptionstatic ValidationFailureBeanValidationFailure.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 ValidationFailureBeanValidationFailure.validateMandatory(Object bean, String attribute) static ValidationFailureBeanValidationFailure.validateMandatory(Object bean, String attribute, Object value) static ValidationFailureBeanValidationFailure.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 ValidationFailureBeanValidationFailure.validateNotEmpty(Object bean, String attribute, Collection<?> value) Returns a ValidationFailure if a collection attribute of an object is null or empty.static ValidationFailureBeanValidationFailure.validateNotNull(Object bean, String attribute, Object value) Methods in org.apache.cayenne.validation that return types with arguments of type ValidationFailureModifier 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 thesourceobject, or an empty list if there are no such failures.Methods in org.apache.cayenne.validation with parameters of type ValidationFailureModifier and TypeMethodDescriptionvoidValidationResult.addFailure(ValidationFailure failure) Add a failure to the validation result.