All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.octopusden.octopus.escrow.model.ValidationResult.groovy Maven / Gradle / Ivy

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
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy