Uses of Class
org.pipservices3.commons.validate.ValidationResult
Packages that use ValidationResult
-
Uses of ValidationResult in org.pipservices3.commons.commands
Methods in org.pipservices3.commons.commands that return types with arguments of type ValidationResultModifier and TypeMethodDescriptionCommand.validate
(Parameters args) Validates the command Parameters args before execution using the defined schema.CommandSet.validate
(String commandName, Parameters args) Validates Parameters args for command specified by its name using defined schema.ICommand.validate
(Parameters args) Validates command arguments before execution using defined schema.ICommandInterceptor.validate
(ICommand command, Parameters args) Validates arguments of the wrapped command before its execution.InterceptedCommand.validate
(Parameters args) Validates the Parameters args that are to be passed to the command that is next in the execution chain. -
Uses of ValidationResult in org.pipservices3.commons.validate
Methods in org.pipservices3.commons.validate that return types with arguments of type ValidationResultModifier and TypeMethodDescriptionValidates the given value and results validation results.Method parameters in org.pipservices3.commons.validate with type arguments of type ValidationResultModifier and TypeMethodDescriptionstatic String
ValidationException.composeMessage
(List<ValidationResult> results) Composes human readable error message based on validation results.static ValidationException
ValidationException.fromResults
(String correlationId, List<ValidationResult> results, boolean strict) Creates a new ValidationException based on errors in validation results.protected void
Schema.performTypeValidation
(String path, Object type, Object value, List<ValidationResult> results) Validates a given value to match specified type.protected void
ArraySchema.performValidation
(String path, Object value, List<ValidationResult> results) Validates a given value against the schema and configured validation rules.protected void
MapSchema.performValidation
(String path, Object value, List<ValidationResult> results) Validates a given value against the schema and configured validation rules.protected void
ObjectSchema.performValidation
(String path, Object value, List<ValidationResult> results) Validates a given value against the schema and configured validation rules.protected void
PropertySchema.performValidation
(String path, Object value, List<ValidationResult> results) Validates a given value against the schema and configured validation rules.protected void
Schema.performValidation
(String path, Object value, List<ValidationResult> results) Validates a given value against the schema and configured validation rules.static void
ValidationException.throwExceptionIfNeeded
(String correlationId, List<ValidationResult> results, boolean strict) Throws ValidationException based on errors in validation results.void
Validates a given value against this rule.void
AtLeastOneExistsRule.validate
(String path, Schema schema, Object value, List<ValidationResult> results) Validates a given value against this rule.void
Validates the given value.void
Validates a given value against this rule.void
Validates a given value against this rule.void
Validates a given value against this rule.void
OnlyOneExistsRule.validate
(String path, Schema schema, Object value, List<ValidationResult> results) Validates a given value against this rule.void
Validates a given value against this rule.void
PropertiesComparisonRule.validate
(String path, Schema schema, Object value, List<ValidationResult> results) Validates a given value against this rule.void
ValueComparisonRule.validate
(String path, Schema schema, Object value, List<ValidationResult> results) Validates a given value against this rule.Constructor parameters in org.pipservices3.commons.validate with type arguments of type ValidationResultModifierConstructorDescriptionValidationException
(String correlationId, List<ValidationResult> results) Creates a new instance of validation exception and assigns its values.