Package ai.pipestream.api.validation
Interface ValidationResult
- All Known Implementing Classes:
DefaultValidationResult,EmptyValidationResult
public interface ValidationResult
Interface for validation results in the pipeline system.
Contains validation status, errors, and warnings.
-
Method Summary
Modifier and TypeMethodDescriptioncombine(ValidationResult other) Combines this result with another, taking the most restrictive validity.errors()Returns the list of validation errors.booleanReturns true if there are any errors.booleanReturns true if there are any issues (errors or warnings).booleanReturns true if there are any warnings.booleanvalid()Returns whether the validation was successful.warnings()Returns the list of validation warnings.
-
Method Details
-
valid
boolean valid()Returns whether the validation was successful.- Returns:
- true if valid, false otherwise
-
errors
Returns the list of validation errors.- Returns:
- list of error messages
-
warnings
Returns the list of validation warnings.- Returns:
- list of warning messages
-
combine
Combines this result with another, taking the most restrictive validity. Accumulates all errors and warnings from both results.- Parameters:
other- the other validation result to combine with- Returns:
- a new combined validation result
-
hasIssues
boolean hasIssues()Returns true if there are any issues (errors or warnings).- Returns:
- true if there are any issues
-
hasErrors
boolean hasErrors()Returns true if there are any errors.- Returns:
- true if there are any errors
-
hasWarnings
boolean hasWarnings()Returns true if there are any warnings.- Returns:
- true if there are any warnings
-