Class ValidationResult
java.lang.Object
com.thoughtworks.go.plugin.api.response.validation.ValidationResult
@Deprecated
public class ValidationResult
extends java.lang.Object
Deprecated.
Represents result of validation
-
Constructor Summary
Constructors Constructor Description ValidationResult()Deprecated. -
Method Summary
Modifier and Type Method Description voidaddError(ValidationError validationError)Deprecated.Adds provided ValidationError to error containervoidaddErrors(java.util.Collection<ValidationError> validationErrors)Deprecated.Adds collection of ValidationError to the error containerjava.util.List<ValidationError>getErrors()Deprecated.Gets list of errors for containerjava.util.List<java.lang.String>getMessages()Deprecated.Collects error message string as list from all the errors in the containerbooleanisSuccessful()Deprecated.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(java.util.Collection<ValidationError> validationErrors)Deprecated.Removes specified collection of validation errors from the containerMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
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
public java.util.List<java.lang.String> getMessages()Deprecated.Collects error message string as list from all the errors in the container- Returns:
- error message as list of string
-