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
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description void
addError(ValidationError validationError)
Deprecated.Adds provided ValidationError to error containervoid
addErrors(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 containerboolean
isSuccessful()
Deprecated.Checks if result of the validation is successful based on the size of error containervoid
removeError(ValidationError validationError)
Deprecated.Removes specified validation error from the error containervoid
removeErrors(java.util.Collection<ValidationError> validationErrors)
Deprecated.Removes specified collection of validation errors from the container
-
-
-
Method Detail
-
addError
public void addError(ValidationError validationError)
Deprecated.Adds provided ValidationError to error container- Parameters:
validationError
- the validation error to be added
-
addErrors
public void addErrors(java.util.Collection<ValidationError> validationErrors)
Deprecated.Adds collection of ValidationError to the error container- Parameters:
validationErrors
- collection of errors to be added to container
-
removeError
public void removeError(ValidationError validationError)
Deprecated.Removes specified validation error from the error container- Parameters:
validationError
- the validation error to be removed from error container
-
removeErrors
public void removeErrors(java.util.Collection<ValidationError> validationErrors)
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
public java.util.List<ValidationError> 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
-
-