org.octopusden.octopus.escrow.model.ValidationResult.groovy Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of component-resolver-api Show documentation
Show all versions of component-resolver-api Show documentation
Octopus module: component-resolver-api
The newest version!
package org.octopusden.octopus.escrow.model
class ValidationResult implements IValidationResult, Serializable {
private static final long serialVersionUID = -661232368456812121L;
Set errors = new HashSet<>()
def containsMavenPublish = false
void handleError(String message) {
errors.add(message)
}
void handleErrors(List errors) {
this.errors.addAll(errors)
}
Set getErrors() {
return errors;
}
boolean isValid() {
return errors.size() == 0
}
void componentContainsMavenPublish(boolean value) {
containsMavenPublish = value
}
@Override
boolean componentContainsMavenPublish() {
return containsMavenPublish
}
}