Class ValidationResult
java.lang.Object
com.thoughtworks.go.plugin.api.response.validation.ValidationResult
Deprecated.
Represents result of validation
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddError(ValidationError validationError) Deprecated.Adds provided ValidationError to error containervoidaddErrors(Collection<ValidationError> validationErrors) Deprecated.Adds collection of ValidationError to the error containerDeprecated.Gets list of errors for containerDeprecated.Collects error message string as list from all the errors in the containerbooleanDeprecated.Checks if result of the validation is successful based on the size of error containervoidremoveError(ValidationError validationError) Deprecated.Removes specified validation error from the error containervoidremoveErrors(Collection<ValidationError> validationErrors) Deprecated.Removes specified collection of validation errors from the container
-
Constructor Details
-
ValidationResult
public ValidationResult()Deprecated.
-
-
Method Details
-
addError
Deprecated.Adds provided ValidationError to error container- Parameters:
validationError- the validation error to be added
-
addErrors
Deprecated.Adds collection of ValidationError to the error container- Parameters:
validationErrors- collection of errors to be added to container
-
removeError
Deprecated.Removes specified validation error from the error container- Parameters:
validationError- the validation error to be removed from error container
-
removeErrors
Deprecated.Removes specified collection of validation errors from the container- Parameters:
validationErrors- collection of validations errors to be removed
-
isSuccessful
public boolean isSuccessful()Deprecated.Checks if result of the validation is successful based on the size of error container- Returns:
- if error container is empty returns true, else returns false
-
getErrors
Deprecated.Gets list of errors for container- Returns:
- list of errors for container
-
getMessages
Deprecated.Collects error message string as list from all the errors in the container- Returns:
- error message as list of string
-